| 19 | | public $validate = array( |
| 20 | | 'points' => VALID_NOT_EMPTY, |
| 21 | | 'user_id' => VALID_NOT_EMPTY, |
| 22 | | 'forum_id' => VALID_NOT_EMPTY, |
| 23 | | 'vlcassroom_id' => VALID_NOT_EMPTY |
| 24 | | ); |
| 25 | | /* |
| 26 | | public $validate = array( |
| 27 | | 'login' => array('alphanumeric' => array( |
| 28 | | 'rule' => 'alphaNumeric', |
| 29 | | 'required' => true, |
| 30 | | 'message' => 'Alphabets and numbers only' |
| 31 | | ), |
| 32 | | 'between' => array( |
| 33 | | 'rule' => array('between', 5, 15), |
| 34 | | 'message' => 'Between 5 to 15 characters' |
| 35 | | ) |
| 36 | | ), |
| 37 | | 'password' => array( |
| 38 | | 'rule' => array('minLength', '8'), |
| 39 | | 'message' => 'Mimimum 8 characters long' |
| 40 | | ), |
| 41 | | 'email' => 'email', |
| 42 | | 'born' => array( |
| 43 | | 'rule' => 'date', |
| 44 | | 'message' => 'Enter a valid date', |
| 45 | | 'allowEmpty' => true |
| 46 | | ) |
| 47 | | ); */ |
| | 19 | public $validate = array( |
| | 20 | 'title' => array( |
| | 21 | 'rule' => array('minLength', 4), |
| | 22 | 'message' => 'Title must be at least four characters long', |
| | 23 | 'allowEmpty' => false, |
| | 24 | 'required' => true |
| | 25 | ), |
| | 26 | |
| | 27 | 'participation' => array( |
| | 28 | 'rule' => array('minLength', 8), |
| | 29 | 'message' => 'Text must be at least 8 characters long', |
| | 30 | 'allowEmpty' => false, |
| | 31 | 'required' => true |
| | 32 | ) |
| | 33 | ); |