/** * @see DB_common::getCol * @deprecated */ public function getCol($query, $col = 0, $params = array()) { $query = $this->quoteSql($query, $params); $res = $this->db->getCol($query, $col, $params); $this->assertError($res); return $res; }
/** * Fetch the first column of data returned from a query. Takes care * of doing the query and freeing the results when finished. * * @param $query the SQL query * @param $col which column to return (integer [column number, * starting at 0] or string [column name]) * @param $data array if supplied, prepare/execute will be used * with this array as execute parameters * @param string $action type of request to perform, defaults to search (ldap_search()) * @param array $params array of additional parameters to pass to the PHP ldap function requested * @access public * @return array an indexed array with the data from the first * row at index 0, or a DB error code. * @see DB_common::getCol() * @access public */ function &getCol($query, $col = 0, $data = array(), $action = null, $params = array()) { $this->q_action = $action ? $action : $this->action; $this->q_params = $params; return parent::getCol($query, $col, $data); }