Changeset 535 for trunk/app/models
- Timestamp:
- 05/20/08 15:46:39 (7 months ago)
- Location:
- trunk/app/models
- Files:
-
- 38 modified
-
entry.php (modified) (1 diff)
-
event.php (modified) (1 diff)
-
faq.php (modified) (1 diff)
-
forum.php (modified) (2 diffs)
-
gallery.php (modified) (2 diffs)
-
glossary.php (modified) (1 diff)
-
group.php (modified) (1 diff)
-
help.php (modified) (1 diff)
-
image.php (modified) (1 diff)
-
lang.php (modified) (1 diff)
-
lesson.php (modified) (1 diff)
-
media.php (modified) (1 diff)
-
message.php (modified) (1 diff)
-
news.php (modified) (1 diff)
-
newsletter.php (modified) (1 diff)
-
participation.php (modified) (1 diff)
-
permission.php (modified) (1 diff)
-
podcast.php (modified) (1 diff)
-
poll.php (modified) (1 diff)
-
pollrow.php (modified) (1 diff)
-
promotion.php (modified) (1 diff)
-
question.php (modified) (1 diff)
-
quote.php (modified) (1 diff)
-
recover.php (modified) (1 diff)
-
reply.php (modified) (1 diff)
-
result.php (modified) (1 diff)
-
result_treasure.php (modified) (1 diff)
-
result_webquest.php (modified) (1 diff)
-
share.php (modified) (1 diff)
-
subject.php (modified) (2 diffs)
-
test.php (modified) (1 diff)
-
theme.php (modified) (1 diff)
-
themeblog.php (modified) (1 diff)
-
topic.php (modified) (1 diff)
-
treasure.php (modified) (2 diffs)
-
vclassroom.php (modified) (1 diff)
-
webquest.php (modified) (4 diffs)
-
wiki.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/entry.php
r292 r535 37 37 'status' => VALID_NOT_EMPTY 38 38 ); 39 /* 40 public $validate = array( 41 'login' => array('alphanumeric' => array( 42 'rule' => 'alphaNumeric', 43 'required' => true, 44 'message' => 'Alphabets and numbers only' 45 ), 46 'between' => array( 47 'rule' => array('between', 5, 15), 48 'message' => 'Between 5 to 15 characters' 49 ) 50 ), 51 'password' => array( 52 'rule' => array('minLength', '8'), 53 'message' => 'Mimimum 8 characters long' 54 ), 55 'email' => 'email', 56 'born' => array( 57 'rule' => 'date', 58 'message' => 'Enter a valid date', 59 'allowEmpty' => true 60 ) 61 ); */ 39 62 } 40 63 -
trunk/app/models/event.php
r113 r535 48 48 'date' => VALID_NOT_EMPTY 49 49 ); 50 /* 51 public $validate = array( 52 'login' => array('alphanumeric' => array( 53 'rule' => 'alphaNumeric', 54 'required' => true, 55 'message' => 'Alphabets and numbers only' 56 ), 57 'between' => array( 58 'rule' => array('between', 5, 15), 59 'message' => 'Between 5 to 15 characters' 60 ) 61 ), 62 'password' => array( 63 'rule' => array('minLength', '8'), 64 'message' => 'Mimimum 8 characters long' 65 ), 66 'email' => 'email', 67 'born' => array( 68 'rule' => 'date', 69 'message' => 'Enter a valid date', 70 'allowEmpty' => true 71 ) 72 ); */ 50 73 } 51 74 -
trunk/app/models/faq.php
r282 r535 17 17 'answer' => VALID_NOT_EMPTY 18 18 ); 19 /* 20 public $validate = array( 21 'login' => array('alphanumeric' => array( 22 'rule' => 'alphaNumeric', 23 'required' => true, 24 'message' => 'Alphabets and numbers only' 25 ), 26 'between' => array( 27 'rule' => array('between', 5, 15), 28 'message' => 'Between 5 to 15 characters' 29 ) 30 ), 31 'password' => array( 32 'rule' => array('minLength', '8'), 33 'message' => 'Mimimum 8 characters long' 34 ), 35 'email' => 'email', 36 'born' => array( 37 'rule' => 'date', 38 'message' => 'Enter a valid date', 39 'allowEmpty' => true 40 ) 41 ); */ 19 42 } 20 21 43 ?> -
trunk/app/models/forum.php
r449 r535 7 7 */ 8 8 9 class Forum extends AppModel 10 { 9 class Forum extends AppModel { 11 10 12 11 public $hasMany = array('Topic' => … … 34 33 'catforum_id' => VALID_NOT_EMPTY 35 34 ); 36 35 /* 36 public $validate = array( 37 'login' => array('alphanumeric' => array( 38 'rule' => 'alphaNumeric', 39 'required' => true, 40 'message' => 'Alphabets and numbers only' 41 ), 42 'between' => array( 43 'rule' => array('between', 5, 15), 44 'message' => 'Between 5 to 15 characters' 45 ) 46 ), 47 'password' => array( 48 'rule' => array('minLength', '8'), 49 'message' => 'Mimimum 8 characters long' 50 ), 51 'email' => 'email', 52 'born' => array( 53 'rule' => 'date', 54 'message' => 'Enter a valid date', 55 'allowEmpty' => true 56 ) 57 ); */ 37 58 public function getVclassrooms($user_id) 38 59 { -
trunk/app/models/gallery.php
r282 r535 6 6 */ 7 7 8 9 class Gallery extends AppModel 10 { 8 class Gallery extends AppModel { 11 9 // Its always good practice to include this variable. 12 10 public $name = 'Gallery'; … … 17 15 'user_id' => VALID_NOT_EMPTY 18 16 ); 17 /* 18 public $validate = array( 19 'login' => array('alphanumeric' => array( 20 'rule' => 'alphaNumeric', 21 'required' => true, 22 'message' => 'Alphabets and numbers only' 23 ), 24 'between' => array( 25 'rule' => array('between', 5, 15), 26 'message' => 'Between 5 to 15 characters' 27 ) 28 ), 29 'password' => array( 30 'rule' => array('minLength', '8'), 31 'message' => 'Mimimum 8 characters long' 32 ), 33 'email' => 'email', 34 'born' => array( 35 'rule' => 'date', 36 'message' => 'Enter a valid date', 37 'allowEmpty' => true 38 ) 39 ); */ 19 40 } 20 41 -
trunk/app/models/glossary.php
r282 r535 26 26 'definition' => VALID_NOT_EMPTY 27 27 ); 28 /* 29 public $validate = array( 30 'login' => array('alphanumeric' => array( 31 'rule' => 'alphaNumeric', 32 'required' => true, 33 'message' => 'Alphabets and numbers only' 34 ), 35 'between' => array( 36 'rule' => array('between', 5, 15), 37 'message' => 'Between 5 to 15 characters' 38 ) 39 ), 40 'password' => array( 41 'rule' => array('minLength', '8'), 42 'message' => 'Mimimum 8 characters long' 43 ), 44 'email' => 'email', 45 'born' => array( 46 'rule' => 'date', 47 'message' => 'Enter a valid date', 48 'allowEmpty' => true 49 ) 50 ); */ 28 51 } 29 52 -
trunk/app/models/group.php
r342 r535 18 18 ) 19 19 ); 20 20 /* 21 public $validate = array( 22 'login' => array('alphanumeric' => array( 23 'rule' => 'alphaNumeric', 24 'required' => true, 25 'message' => 'Alphabets and numbers only' 26 ), 27 'between' => array( 28 'rule' => array('between', 5, 15), 29 'message' => 'Between 5 to 15 characters' 30 ) 31 ), 32 'password' => array( 33 'rule' => array('minLength', '8'), 34 'message' => 'Mimimum 8 characters long' 35 ), 36 'email' => 'email', 37 'born' => array( 38 'rule' => 'date', 39 'message' => 'Enter a valid date', 40 'allowEmpty' => true 41 ) 42 ); */ 21 43 } 22 44 ?> -
trunk/app/models/help.php
r282 r535 16 16 'lang' => VALID_NOT_EMPTY 17 17 ); 18 /* 19 public $validate = array( 20 'login' => array('alphanumeric' => array( 21 'rule' => 'alphaNumeric', 22 'required' => true, 23 'message' => 'Alphabets and numbers only' 24 ), 25 'between' => array( 26 'rule' => array('between', 5, 15), 27 'message' => 'Between 5 to 15 characters' 28 ) 29 ), 30 'password' => array( 31 'rule' => array('minLength', '8'), 32 'message' => 'Mimimum 8 characters long' 33 ), 34 'email' => 'email', 35 'born' => array( 36 'rule' => 'date', 37 'message' => 'Enter a valid date', 38 'allowEmpty' => true 39 ) 40 ); */ 18 41 } 19 20 42 ?> -
trunk/app/models/image.php
r282 r535 16 16 'user_id' => VALID_NOT_EMPTY 17 17 ); 18 /* 19 public $validate = array( 20 'login' => array('alphanumeric' => array( 21 'rule' => 'alphaNumeric', 22 'required' => true, 23 'message' => 'Alphabets and numbers only' 24 ), 25 'between' => array( 26 'rule' => array('between', 5, 15), 27 'message' => 'Between 5 to 15 characters' 28 ) 29 ), 30 'password' => array( 31 'rule' => array('minLength', '8'), 32 'message' => 'Mimimum 8 characters long' 33 ), 34 'email' => 'email', 35 'born' => array( 36 'rule' => 'date', 37 'message' => 'Enter a valid date', 38 'allowEmpty' => true 39 ) 40 ); */ 18 41 } 19 20 42 ?> -
trunk/app/models/lang.php
r142 r535 15 15 'code' => VALID_NOT_EMPTY 16 16 ); 17 /* 18 public $validate = array( 19 'login' => array('alphanumeric' => array( 20 'rule' => 'alphaNumeric', 21 'required' => true, 22 'message' => 'Alphabets and numbers only' 23 ), 24 'between' => array( 25 'rule' => array('between', 5, 15), 26 'message' => 'Between 5 to 15 characters' 27 ) 28 ), 29 'password' => array( 30 'rule' => array('minLength', '8'), 31 'message' => 'Mimimum 8 characters long' 32 ), 33 'email' => 'email', 34 'born' => array( 35 'rule' => 'date', 36 'message' => 'Enter a valid date', 37 'allowEmpty' => true 38 ) 39 ); */ 17 40 } 18 41 ?> -
trunk/app/models/lesson.php
r352 r535 30 30 'user_id' => VALID_NOT_EMPTY 31 31 ); 32 /* 33 public $validate = array( 34 'login' => array('alphanumeric' => array( 35 'rule' => 'alphaNumeric', 36 'required' => true, 37 'message' => 'Alphabets and numbers only' 38 ), 39 'between' => array( 40 'rule' => array('between', 5, 15), 41 'message' => 'Between 5 to 15 characters' 42 ) 43 ), 44 'password' => array( 45 'rule' => array('minLength', '8'), 46 'message' => 'Mimimum 8 characters long' 47 ), 48 'email' => 'email', 49 'born' => array( 50 'rule' => 'date', 51 'message' => 'Enter a valid date', 52 'allowEmpty' => true 53 ) 54 ); */ 32 55 } 33 34 56 ?> -
trunk/app/models/media.php
r282 r535 16 16 'user_id' => VALID_NOT_EMPTY 17 17 ); 18 /* 19 public $validate = array( 20 'login' => array('alphanumeric' => array( 21 'rule' => 'alphaNumeric', 22 'required' => true, 23 'message' => 'Alphabets and numbers only' 24 ), 25 'between' => array( 26 'rule' => array('between', 5, 15), 27 'message' => 'Between 5 to 15 characters' 28 ) 29 ), 30 'password' => array( 31 'rule' => array('minLength', '8'), 32 'message' => 'Mimimum 8 characters long' 33 ), 34 'email' => 'email', 35 'born' => array( 36 'rule' => 'date', 37 'message' => 'Enter a valid date', 38 'allowEmpty' => true 39 ) 40 ); */ 18 41 } 19 20 42 ?> -
trunk/app/models/message.php
r490 r535 18 18 'sender_id' => VALID_NOT_EMPTY 19 19 ); 20 20 /* 21 public $validate = array( 22 'login' => array('alphanumeric' => array( 23 'rule' => 'alphaNumeric', 24 'required' => true, 25 'message' => 'Alphabets and numbers only' 26 ), 27 'between' => array( 28 'rule' => array('between', 5, 15), 29 'message' => 'Between 5 to 15 characters' 30 ) 31 ), 32 'password' => array( 33 'rule' => array('minLength', '8'), 34 'message' => 'Mimimum 8 characters long' 35 ), 36 'email' => 'email', 37 'born' => array( 38 'rule' => 'date', 39 'message' => 'Enter a valid date', 40 'allowEmpty' => true 41 ) 42 ); */ 21 43 public function inbox($user_id) 22 44 { -
trunk/app/models/news.php
r499 r535 37 37 'status' => VALID_NOT_EMPTY 38 38 ); 39 39 /* 40 public $validate = array( 41 'login' => array('alphanumeric' => array( 42 'rule' => 'alphaNumeric', 43 'required' => true, 44 'message' => 'Alphabets and numbers only' 45 ), 46 'between' => array( 47 'rule' => array('between', 5, 15), 48 'message' => 'Between 5 to 15 characters' 49 ) 50 ), 51 'password' => array( 52 'rule' => array('minLength', '8'), 53 'message' => 'Mimimum 8 characters long' 54 ), 55 'email' => 'email', 56 'born' => array( 57 'rule' => 'date', 58 'message' => 'Enter a valid date',
