예제 #1
0
파일: Log.php 프로젝트: chenyongze/d-a-m
 protected function beforeSave()
 {
     if (parent::beforeSave()) {
         $this->uid = Yii::app()->user->id;
         $this->uname = Yii::app()->user->name;
         $this->acttime = time();
         return true;
     } else {
         return false;
     }
 }
예제 #2
0
파일: CardDs.php 프로젝트: chenyongze/d-a-m
 protected function beforeSave()
 {
     if (parent::beforeSave()) {
         $this->id = (int) $this->id;
         $this->database_id = (int) $this->database_id;
         return true;
     } else {
         return false;
     }
 }