diff --git a/Model/CoGrouperLite.php b/Model/CoGrouperLite.php index 154c0e6..a0798e3 100644 --- a/Model/CoGrouperLite.php +++ b/Model/CoGrouperLite.php @@ -42,39 +42,33 @@ class CoGrouperLite extends CoDashboardWidgetBackend { public $hasMany = array( ); + /* + Not sure if will use public $duplicatableModels = array( "CoGrouperLite" => array( "parent" => "CoDashboardWidget", "fk" => "co_dashboard_widget_id" ) - ); + );*/ // Validation rules for table elements + //Tried adding rule to each field to make alphaNumeric, but keeps throwing errors. will research. public $validate = array( 'co_dashboard_widget_id' => array( 'rule' => 'numeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connUrl' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connVer' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connUser' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connPass' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), );