コード例 #1
0
ファイル: Login.php プロジェクト: porem/yupe-ext
 public function beforeSave()
 {
     if ($this->isNewRecord) {
         $this->creation_date = new CDbExpression('NOW()');
     }
     return parent::beforeSave();
 }
コード例 #2
0
ファイル: GeoCountry.php プロジェクト: porem/yupe-ext
 /**
  * Returns the static model of the specified AR class.
  * @param string $className
  * @return User the static model class
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }