Ejemplo n.º 1
0
 public function beforeSave()
 {
     parent::beforeSave();
     $dumper = new FlightCacheDumper();
     $dumper->model = $this;
     $dumper->save();
     Yii::log("FLIGHT CACHE DUMPER = \n" . CVarDumper::dumpAsString($dumper->model->attributes));
     return false;
 }
Ejemplo n.º 2
0
 /**
  * Returns the static model of the specified AR class.
  * @param string $className active record class name.
  * @return FlightCache the static model class
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }