Exemplo n.º 1
0
 protected function __construct($class, $idxCol, array $constructorParams = null, $fetchType = self::FETCH_TYPE_ARRAY, callable $fetcher = null)
 {
     parent::__construct($idxCol, false);
     $this->RC = PsUtil::newReflectionClass($class);
     $this->idxCol = $idxCol;
     $this->constructorParams = $constructorParams;
     $this->fetchType = $fetchType;
     $this->fetcher = $fetcher;
     $this->useFetcher = is_callable($fetcher);
 }
Exemplo n.º 2
0
 /**
  * Возвращает индексированный массив ассоциативных массивов со строками БД.
  */
 public static function getArray($query, $inputarr = false, ArrayQueryFetcher $fetcher = null)
 {
     return $fetcher ? $fetcher->fetchResult(self::executeQuery($query, $inputarr)->GetArray()) : self::executeQuery($query, $inputarr)->GetArray();
 }
Exemplo n.º 3
0
 protected function __construct($idxCol)
 {
     parent::__construct(true, false);
     $this->idxCol = $idxCol;
 }