Пример #1
0
 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);
     }
 }
Пример #2
0
 function __construct($name, $primaryKey = 'id', $uniqTextKey = 'uniq', $dataSource)
 {
     parent::__construct($name, $primaryKey, $uniqTextKey, $dataSource);
     $this->directoryIterator = new \DirectoryIterator($this->dataSource->getDirectory() . '/' . $this->name);
 }
Пример #3
0
 function __construct($name, $primaryKey = 'id', $uniqTextKey = 'uniq', $dataSource)
 {
     parent::__construct($name, $primaryKey, $uniqTextKey, $dataSource);
     $this->select = $this->createSelect();
 }