Changeset 770 for trunk/app/models

Show
Ignore:
Timestamp:
09/18/08 20:19:40 (2 months ago)
Author:
aarkerio
Message:

Update wiki

Files:
1 modified

Legend:

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

    r597 r770  
    1111  public $name = 'Wiki'; 
    1212   
    13       public $belongsTo = array('User' => 
     13  public $belongsTo = array('User' => 
    1414                           array('className'  => 'User', 
    1515                                 'conditions' => '', 
     
    2222                                 'order'      => null, 
    2323                                 'foreignKey' => 'subject_id' 
     24                 ), 
     25                           'Vclassroom' => 
     26                               array('className'  => 'Vclassroom', 
     27                                     'conditions' => '', 
     28                                     'order'      => null, 
     29                                     'foreignKey' => 'vclassroom_id' 
    2430                           ) 
    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                  ); 
    4932} 
    5033?>