function __construct($name, $primaryKey = 'id', $uniqTextKey = 'uniq', DataSourceSQL $dataSource) { parent::__construct($name, $primaryKey, $uniqTextKey, $dataSource); $this->tablePrefix = $dataSource->getTablePrefix(); $this->quoteCharacter = $dataSource->getQuoteCharacter(); $this->select = $this->selectQuery(); $this->select->select($this->getLoadColumns()); $readSnippet = $this->dataSource->getReadSnippetArray($name); if (!empty($readSnippet)) { $this->select->select($readSnippet); } }
function __construct($name, $primaryKey = 'id', $uniqTextKey = 'uniq', $dataSource) { parent::__construct($name, $primaryKey, $uniqTextKey, $dataSource); $this->directoryIterator = new \DirectoryIterator($this->dataSource->getDirectory() . '/' . $this->name); }
function __construct($name, $primaryKey = 'id', $uniqTextKey = 'uniq', $dataSource) { parent::__construct($name, $primaryKey, $uniqTextKey, $dataSource); $this->select = $this->createSelect(); }