Example #1
0
 public function __construct($db)
 {
     if (get_class($db) === 'Database') {
         parent::__construct($db);
     } else {
         throw new InvalidDatabaseException('Undefined', get_class($db));
     }
 }
Example #2
0
 public function __construct(array $data = null)
 {
     $this->db = DB::getConnection();
     if (!$this->table) {
         $this->table = $this->generateTableName();
     }
     parent::__construct($this->table);
     if ($data) {
         $this->fill($data);
     }
 }
 public function __construct($tableName, $column, $mask)
 {
     parent::__construct($tableName, $column);
     $this->mask = $mask;
 }
Example #4
0
 /**
  * {@inheritDoc}
  */
 public function __construct($type, $options = array())
 {
     $this->eventQuery = GroupEvent::getQueryBuilder();
     parent::__construct($type, $options);
 }