Exemplo n.º 1
0
 /**
  * Returns the static model of the specified AR class.
  * @param string $className active record class name.
  * @return Reference the static model class
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }
Exemplo n.º 2
0
 public function beforeSave()
 {
     if ($this->userManager() != null) {
         $this->i_account_manager = 1;
     } else {
         $this->i_account_manager = 0;
     }
     return parent::beforeSave();
 }