/usr/share/php/Horde/Db/Adapter/Mysqli/Result.php is in php-horde-db 2.3.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | <?php
/**
* Copyright 2007 Maintainable Software, LLC
* Copyright 2006-2016 Horde LLC (http://www.horde.org/)
*
* @author Mike Naberezny <mike@maintainable.com>
* @author Derek DeVries <derek@maintainable.com>
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Jan Schneider <jan@horde.org>
* @license http://www.horde.org/licenses/bsd
* @category Horde
* @package Db
* @subpackage Adapter
*/
/**
* This class represents the result set of a SELECT query from the MySQLi
* driver.
*
* @author Mike Naberezny <mike@maintainable.com>
* @author Derek DeVries <derek@maintainable.com>
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Jan Schneider <jan@horde.org>
* @license http://www.horde.org/licenses/bsd
* @category Horde
* @package Db
* @subpackage Adapter
*/
class Horde_Db_Adapter_Mysqli_Result extends Horde_Db_Adapter_Base_Result
{
/**
* Maps Horde_Db fetch mode constant to the extension constants.
*
* @var array
*/
protected $_map = array(
Horde_Db::FETCH_ASSOC => MYSQLI_ASSOC,
Horde_Db::FETCH_NUM => MYSQLI_NUM,
Horde_Db::FETCH_BOTH => MYSQLI_BOTH
);
/**
* Returns a row from a resultset.
*
* @return array|boolean The next row in the resultset or false if there
* are no more results.
*/
protected function _fetchArray()
{
return $this->_result->fetch_array($this->_map[$this->_fetchMode]);
}
/**
* Returns the number of columns in the result set.
*
* @return integer Number of columns.
*/
protected function _columnCount()
{
return $this->_result->field_count;
}
}
|