public function __construct($db) { if (get_class($db) === 'Database') { parent::__construct($db); } else { throw new InvalidDatabaseException('Undefined', get_class($db)); } }
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; }
/** * {@inheritDoc} */ public function __construct($type, $options = array()) { $this->eventQuery = GroupEvent::getQueryBuilder(); parent::__construct($type, $options); }