Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
arrayresult.php
1<?php
2namespace Bitrix\Main\DB;
9class ArrayResult extends Result
10{
12 protected $resource;
13
17 public function __construct($result)
18 {
19 parent::__construct($result);
20 }
21
27 public function getSelectedRowsCount()
28 {
29 return count($this->resource);
30 }
31
37 public function getFields()
38 {
39 return null;
40 }
41
47 protected function fetchRowInternal()
48 {
49 $val = current($this->resource);
50 next($this->resource);
51 return $val;
52 }
53}