public function fieldsByKey($key)
	{
		$keys = array();

		if ($this->rows && $this->count())
		{
			foreach ($this->rows as $row)
			{
				$keys[] = $row->$key;
			}
		}

		return $keys;
	}
public function fieldsByKey($key)
	{
		$keys = array();

		if ($this->rows && $this->count())
		{
			foreach ($this->rows as $row)
			{
				$keys[] = $row->$key;
			}
		}

		return $keys;
	}
public function fieldsByKey ( $ key ) { $ keys = array ( ) ; if ( $ this -> rows && $ this -> count ( ) ) { foreach ( $ this -> rows as $ row ) { $ keys [ ] = $ row -> $ key ; } } return $ keys ; }
Returns the result keys for the current dataset

@param   string  $key  The key for which to pull all values
@return  array
@since   2.0.0
Returns the result keys for the current dataset