/** * Overwritten Method to get an array of values from the <var>$offset</var> field in each row of the result set from * the database query. * * @param integer $offset The row offset to use to build the result array. * * @return mixed The return value or null if the query failed. * * @since 11.1 * @throws DatabaseException */ function loadColumn($offset = 0, $translate = true, $language = null) { if (!$translate) { return parent::loadColumn($offset); } $results = array(); $ret = array(); $results = $this->loadObjectList('', 'stdClass', $translate, $language); $pfunc = $this->_profile(); if ($results != null && count($results) > 0) { foreach ($results as $row) { $fields = get_object_vars($row); $keycount = 0; foreach ($fields as $k => $v) { if ($keycount == $offset) { $key = $k; break; } } if (isset($key)) { $ret[] = $fields[$key]; } } } $pfunc = $this->_profile($pfunc); return $ret; }