Changeset 770 for trunk/app/models
- Timestamp:
- 09/18/08 20:19:40 (2 months ago)
- Files:
-
- 1 modified
-
trunk/app/models/wiki.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/wiki.php
r597 r770 11 11 public $name = 'Wiki'; 12 12 13 public $belongsTo = array('User' =>13 public $belongsTo = array('User' => 14 14 array('className' => 'User', 15 15 'conditions' => '', … … 22 22 'order' => null, 23 23 'foreignKey' => 'subject_id' 24 ), 25 'Vclassroom' => 26 array('className' => 'Vclassroom', 27 'conditions' => '', 28 'order' => null, 29 'foreignKey' => 'vclassroom_id' 24 30 ) 25 ); 26 27 /* public $validate = array( 28 'login' => array('alphanumeric' => array( 29 'rule' => 'alphaNumeric', 30 'required' => true, 31 'message' => 'Alphabets and numbers only' 32 ), 33 'between' => array( 34 'rule' => array('between', 5, 15), 35 'message' => 'Between 5 to 15 characters' 36 ) 37 ), 38 'password' => array( 39 'rule' => array('minLength', '8'), 40 'message' => 'Mimimum 8 characters long' 41 ), 42 'email' => 'email', 43 'born' => array( 44 'rule' => 'date', 45 'message' => 'Enter a valid date', 46 'allowEmpty' => true 47 ) 48 ); */ 31 ); 49 32 } 50 33 ?>
