Changeset 636 for trunk/app/models

Show
Ignore:
Timestamp:
07/09/08 21:55:19 (5 months ago)
Author:
aarkerio
Message:

Updates genrali

Location:
trunk/app/models
Files:
2 modified

Legend:

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

    r282 r636  
    2525   
    2626 public $validate = array( 
    27       'comment' => VALID_NOT_EMPTY,         //'/[a-z0-9\_\-]{3,}$/i', 
    28       'user_id' => VALID_NOT_EMPTY, 
     27      'comment'  => VALID_NOT_EMPTY,         //'/[a-z0-9\_\-]{3,}$/i', 
     28      'user_id'  => VALID_NOT_EMPTY, 
    2929      'entry_id' => VALID_NOT_EMPTY, 
    3030      'username' => VALID_NOT_EMPTY 
  • trunk/app/models/discussion.php

    r537 r636  
    1111  public $name = 'Discussion'; 
    1212   
    13   /* public $belongsTo = array('News' => 
    14                          array('className'     => 'News', 
    15                                'conditions'    => null, 
    16                                'order'         => null, 
    17                                'limit'         => null, 
    18                                'foreignKey'    => 'new_id', 
    19                                'dependent'     => true, 
    20                                'exclusive'     => false, 
    21                                'finderQuery'   => '' 
    22                          ) 
    23                   ); */ 
     13  public $belongsTo = array( 
     14                           'News' => 
     15                            array('className'     => 'News', 
     16                                  'conditions'    => null, 
     17                                  'order'         => null, 
     18                                  'limit'         => null, 
     19                                  'foreignKey'    => 'new_id', 
     20                                  'dependent'     => true, 
     21                                  'exclusive'     => false, 
     22                                  'finderQuery'   => '' 
     23                   ), 
     24                          'User' => 
     25                            array('className'     => 'User', 
     26                                  'conditions'    => null, 
     27                                  'fields'        => 'id, username', 
     28                                  'order'         => null, 
     29                                  'limit'         => null, 
     30                                  'foreignKey'    => 'user_id', 
     31                                  'dependent'     => true, 
     32                                  'exclusive'     => false, 
     33                                  'finderQuery'   => '' 
     34                   ) 
     35                  ); 
    2436 
    2537  public $validate = array(