Changeset 702 for trunk/app/models
- Timestamp:
- 08/08/08 18:58:10 (4 months ago)
- Location:
- trunk/app/models
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/acquaintance.php
r282 r702 3 3 * Chipotle Software TM 4 4 * Manuel Montoya 2002-2008 5 * GPLv3 manuel<a t>mononeurona<dot>org5 * GPLv3 manuel<arroba>mononeurona<punto>org 6 6 */ 7 7 class Acquaintance extends AppModel { 8 8 9 public $name = 'Acquaintance';9 public $name = 'Acquaintance'; 10 10 11 public $belongsTo = 'User'; 12 } 11 public $belongsTo = 'User'; 12 13 public $validate = array( 14 'name' => array( 15 'rule' => array('minLength', 4), 16 'message' => 'Title must be at least four characters long', 17 'allowEmpty' => false, 18 'required' => true 19 ), 20 21 'url' => array( 22 'rule' => 'url', 23 'message' => 'Entry must be at least 8 characters long', 24 'allowEmpty' => false, 25 'required' => true 26 ) 27 ); 28 29 } 13 30 ?> -
trunk/app/models/entry.php
r701 r702 1 1 <?php 2 //AppModel gives you all of Cake's Model functionality 2 /** 3 * Chipotle Software TM 4 * Karamelo Team 2002-2008 5 * GPLv3 manuel<arroba>mononeurona<punto>org 6 **/ 7 3 8 4 9 class Entry extends AppModel … … 62 67 63 68 return $data; 64 } 65 66 67 /* 68 public $validate = array( 69 'login' => array('alphanumeric' => array( 70 'rule' => 'alphaNumeric', 71 'required' => true, 72 'message' => 'Alphabets and numbers only' 73 ), 74 'between' => array( 75 'rule' => array('between', 5, 15), 76 'message' => 'Between 5 to 15 characters' 77 ) 78 ), 79 'password' => array( 80 'rule' => array('minLength', '8'), 81 'message' => 'Mimimum 8 characters long' 82 ), 83 'email' => 'email', 84 'born' => array( 85 'rule' => 'date', 86 'message' => 'Enter a valid date', 87 'allowEmpty' => true 88 ) 89 ); */ 69 } 90 70 } 91 71 ?> -
trunk/app/models/poll.php
r535 r702 22 22 ) 23 23 ); 24 /* 25 public $validate = array( 26 'login' => array('alphanumeric' => array( 27 'rule' => 'alphaNumeric', 28 'required' => true, 29 'message' => 'Alphabets and numbers only' 30 ), 31 'between' => array( 32 'rule' => array('between', 5, 15), 33 'message' => 'Between 5 to 15 characters' 34 ) 35 ), 36 'password' => array( 37 'rule' => array('minLength', '8'), 38 'message' => 'Mimimum 8 characters long' 39 ), 40 'email' => 'email', 41 'born' => array( 42 'rule' => 'date', 43 'message' => 'Enter a valid date', 44 'allowEmpty' => true 45 ) 46 ); */ 24 public $validate = array( 25 'question' => array( 26 'rule' => array('minLength', 4), 27 'message' => 'Title must be at least four characters long', 28 'allowEmpty' => false, 29 'required' => true 30 ) 31 ); 47 32 } 48 33 ?>
