Changeset 692 for trunk/app/models
- Timestamp:
- 08/04/08 20:04:50 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/models/treasure.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/treasure.php
r691 r692 36 36 public $validate = array( 37 37 'title' => array( 38 array( 39 'rule' => array('minLength', 4), 40 'required' => true, 41 'allowEmpty' => false, 42 'message' => 'Title can not be empty' 43 ) 38 'rule' => array('minLength', 4), 39 'required' => true, 40 'allowEmpty' => false, 41 'message' => 'Title can not be empty' 44 42 ), 45 'instructions' => array( 46 array( 43 'instructions' => array( 47 44 'rule' => array('minLength', 20), 48 45 'required' => true, 49 46 'allowEmpty' => false, 50 47 'message' => 'Instructions at least 20 characters' 51 )52 48 ), 53 49 'secret' => array( 54 'alphanumeric' => array( 55 'rule' > 'alphanumeric', 56 'message' => 'Secret may only consist of letter and numbers', 57 'required' => true, 58 'allowEmpty' => false 59 ), 60 ) 50 'rule' => array('minLength', 4), 51 'message' => 'Secret can not be less than three characters', 52 'required' => true, 53 'allowEmpty' => false 54 ) 61 55 ); 62 56 public function getTest($user_id, $treasure_id)
