• Модуль: biconnector
  • Путь к файлу: ~/bitrix/modules/biconnector/lib/db/mysqliresult.php
  • Класс: BitrixBIConnectorDBMysqliResult
  • Вызов: MysqliResult::fetchRowInternal
protected function fetchRowInternal()
{
	/** @var mysqli_stmt $stmt */
	$stmt = $this->resource;
	if (!$this->rowData)
	{
		$stmt->execute();

		$c = $stmt->field_count;
		$this->rowData = [];
		$this->rowDataReference = [];
		for ($i = 0; $i < $c; $i++)
		{
			$this->rowData[] = '';
			$this->rowDataReference[] = &$this->rowData[count($this->rowData) - 1];
		}

		call_user_func_array([ $stmt, 'bind_result'], $this->rowDataReference);
	}

	if ($stmt->fetch())
	{
		$row = [];
		foreach ($this->rowData as $v)
		{
			$row[] = $v; //dereference
		}

		return $row;
	}
	else
	{
		return false;
	}
}