/** * * @param Select $select Originating select object * @param Table $table Originating table * @param boolean $has_complete_record_definition */ public function __construct(Select $select, Table $table, $has_complete_record_definition = false) { $this->select = $select; $this->table = $table; $this->has_complete_record_definition = $has_complete_record_definition; $this->dataSource = $select->execute(); }
/** * Return an array version of the results * * @return array */ public function toArray() { return $this->select->execute()->toArray(); }