Changeset 535 for trunk/app/models

Show
Ignore:
Timestamp:
05/20/08 15:46:39 (7 months ago)
Author:
aarkerio
Message:

New test

Location:
trunk/app/models
Files:
38 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/models/entry.php

    r292 r535  
    3737      'status' => VALID_NOT_EMPTY 
    3838   ); 
     39/* 
     40public $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                       ); */ 
    3962} 
    4063 
  • trunk/app/models/event.php

    r113 r535  
    4848      'date' => VALID_NOT_EMPTY 
    4949   ); 
     50/* 
     51public $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                       ); */ 
    5073} 
    5174 
  • trunk/app/models/faq.php

    r282 r535  
    1717      'answer' => VALID_NOT_EMPTY 
    1818   ); 
     19/* 
     20public $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                       ); */ 
    1942} 
    20  
    2143?> 
  • trunk/app/models/forum.php

    r449 r535  
    77*/  
    88 
    9 class Forum extends AppModel 
    10 { 
     9class Forum extends AppModel { 
    1110 
    1211public $hasMany = array('Topic' =>  
     
    3433      'catforum_id' => VALID_NOT_EMPTY 
    3534      ); 
    36  
     35/* 
     36public $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                       ); */ 
    3758 public function getVclassrooms($user_id) 
    3859 { 
  • trunk/app/models/gallery.php

    r282 r535  
    66*/ 
    77 
    8  
    9 class Gallery extends AppModel 
    10 { 
     8class Gallery extends AppModel { 
    119    // Its always good practice to include this variable. 
    1210    public $name        = 'Gallery'; 
     
    1715      'user_id' => VALID_NOT_EMPTY 
    1816   ); 
     17/* 
     18public $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                       ); */ 
    1940} 
    2041 
  • trunk/app/models/glossary.php

    r282 r535  
    2626      'definition'     => VALID_NOT_EMPTY 
    2727   ); 
     28/* 
     29public $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                       ); */ 
    2851} 
    2952 
  • trunk/app/models/group.php

    r342 r535  
    1818       ) 
    1919  ); 
    20  
     20/* 
     21public $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                       ); */ 
    2143} 
    2244?> 
  • trunk/app/models/help.php

    r282 r535  
    1616      'lang' => VALID_NOT_EMPTY 
    1717   ); 
     18/* 
     19public $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                       ); */ 
    1841} 
    19  
    2042?> 
  • trunk/app/models/image.php

    r282 r535  
    1616      'user_id' => VALID_NOT_EMPTY 
    1717   ); 
     18/* 
     19public $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                       ); */ 
    1841} 
    19  
    2042?> 
  • trunk/app/models/lang.php

    r142 r535  
    1515        'code' => VALID_NOT_EMPTY 
    1616      ); 
     17/* 
     18public $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                       ); */ 
    1740} 
    1841?> 
  • trunk/app/models/lesson.php

    r352 r535  
    3030      'user_id' => VALID_NOT_EMPTY 
    3131   ); 
     32/* 
     33public $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                       ); */ 
    3255} 
    33  
    3456?> 
  • trunk/app/models/media.php

    r282 r535  
    1616      'user_id' => VALID_NOT_EMPTY 
    1717   ); 
     18/* 
     19public $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                       ); */ 
    1841} 
    19  
    2042?> 
  • trunk/app/models/message.php

    r490 r535  
    1818      'sender_id' => VALID_NOT_EMPTY 
    1919      ); 
    20  
     20/* 
     21public $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                       ); */ 
    2143 public function inbox($user_id)  
    2244 { 
  • trunk/app/models/news.php

    r499 r535  
    3737           'status' => VALID_NOT_EMPTY 
    3838     ); 
    39   
     39/* 
     40public $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',