* $query->sort('column_name ASC') * * * @param string $col Column, may contain direction separated by space * @param int $dir Sort direction * * @return self */ public function order($col, $dir = null); /** * Limit the result set * * @param int $count Return not more than that many rows * @param int $offset Result starts with this row * * @return self */ public function limit($count = null, $offset = null); /** * Wheter at least one order column has been applied to this Query * * @return bool */ public function hasOrder(); /** * Wheter a limit has been applied to this Query * * @return bool */ public function hasLimit(); /** * Wheter a starting offset been applied to this Query * * @return bool */ public function hasOffset(); /** * Get the query limit * * @return int|null */ public function getLimit(); /** * Get the query starting offset * * @return int|null */ public function getOffset(); /** * Get the columns that have been asked for with this query * * @return array */ public function listColumns(); public function getColumns(); /** * Get the filters that have been applied to this query * * @return array */ public function listFilters(); /** * Fetch result as an array of objects * * @return array */ public function fetchAll(); /** * Fetch first result row * * @return object */ public function fetchRow(); /** * Fetch first result column * * @return array */ public function fetchColumn(); /** * Fetch first column value from first result row * * @return mixed */ public function fetchOne(); /** * Fetch result as a key/value pair array * * @return array */ public function fetchPairs(); /** * Return a pagination adapter for this query * * @return \Zend_Paginator */ public function paginate($limit = null, $page = null); }