Example #1
0
 /**
  * Load object properties
  * @param array $data Contains object properties
  * @return object itself
  */
 public function __construct($data)
 {
     parent::__construct($data);
 }
Example #2
0
 /**
  * Load object properties
  * @param array $data Contains object properties
  * @return object itself
  */
 public function __construct($data)
 {
     parent::__construct($data);
     $this->load_photos();
 }
Example #3
0
 /**
  * Load object properties
  * @param array $data Contains object properties
  * @return object itself
  */
 public function __construct($data)
 {
     parent::__construct($data);
     $this->load_sous_page();
 }
 /**
  * @see		SqlModel::model()
  */
 public static function model($class = __CLASS__)
 {
     return parent::model($class);
 }
Example #5
0
 public function getDbConnection()
 {
     if (self::$db !== null) {
         return self::$db;
     } else {
         self::$db = Yii::app()->getDb();
         if (self::$db instanceof CDbConnection) {
             self::$db->setActive(true);
             return self::$db;
         } else {
             throw new CDbException(Yii::t('core', 'Active Record requires a "db" CDbConnection application component.'));
         }
     }
 }