Changeset 692 for trunk/app/models

Show
Ignore:
Timestamp:
08/04/08 20:04:50 (4 months ago)
Author:
aarkerio
Message:

Update scavanger

Files:
1 modified

Legend:

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

    r691 r692  
    3636  public $validate = array( 
    3737        'title'  => array( 
    38                   array( 
    39                                     'rule'       => array('minLength', 4), 
    40                                     'required'   => true, 
    41                                     'allowEmpty' => false, 
    42                                     'message'    => 'Title can not be empty' 
    43                    ) 
     38                  'rule'       => array('minLength', 4), 
     39                              'required'   => true, 
     40                              'allowEmpty' => false, 
     41                              'message'    => 'Title can not be empty'   
    4442                  ), 
    45         'instructions'  => array( 
    46                   array( 
     43       'instructions' => array( 
    4744                                    'rule'       => array('minLength', 20), 
    4845                                    'required'   => true, 
    4946                                    'allowEmpty' => false, 
    5047                                    'message'    => 'Instructions at least 20 characters' 
    51                    ) 
    5248                  ), 
    5349         'secret' => array( 
    54                    'alphanumeric' => array( 
    55                                   'rule'       > 'alphanumeric', 
    56                               'message'    => 'Secret may only consist of letter and numbers', 
    57                                                       'required'   => true, 
    58                                                       'allowEmpty' => false 
    59                                                ), 
    60                    ) 
     50                     'rule'       => array('minLength', 4), 
     51                         'message'    => 'Secret can not be less than three characters', 
     52                                     'required'   => true, 
     53                                     'allowEmpty' => false 
     54                  ) 
    6155                ); 
    6256 public function getTest($user_id, $treasure_id)