| 18 | | 'title' => VALID_NOT_EMPTY, |
| 19 | | 'access' => VALID_NOT_EMPTY, |
| 20 | | 'description' => VALID_NOT_EMPTY, |
| 21 | | 'lang_id' => VALID_NOT_EMPTY |
| 22 | | ); |
| | 18 | 'title' => array( |
| | 19 | 'alphanumeric' => array( |
| | 20 | 'rule' => array('minLength', 4), |
| | 21 | 'required' => true, |
| | 22 | 'allowEmpty' => false, |
| | 23 | 'message' => 'Mimimum 4 characters long in title' |
| | 24 | ) |
| | 25 | ), |
| | 26 | 'description' => array( |
| | 27 | 'rule' => array('minLength', 20), |
| | 28 | 'allowEmpty' => false, |
| | 29 | 'message' => 'Mimimum 8 characters long' |
| | 30 | ), |
| | 31 | 'code' => array( |
| | 32 | 'rule' => array('minLength', 4), |
| | 33 | 'allowEmpty' => false, |
| | 34 | 'message' => 'Mimimum 4 characters long' |
| | 35 | ), |
| | 36 | 'lang_id' => array( |
| | 37 | 'rule' => 'numeric', |
| | 38 | 'message' => 'Enter a valid lang', |
| | 39 | 'allowEmpty' => true |
| | 40 | ) |
| | 41 | ); |