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); }
/** * Возвращает индексированный массив ассоциативных массивов со строками БД. */ public static function getArray($query, $inputarr = false, ArrayQueryFetcher $fetcher = null) { return $fetcher ? $fetcher->fetchResult(self::executeQuery($query, $inputarr)->GetArray()) : self::executeQuery($query, $inputarr)->GetArray(); }
protected function __construct($idxCol) { parent::__construct(true, false); $this->idxCol = $idxCol; }