[ Index ]

PHP Cross Reference of Akelos Framework

title

Body

[close]

/AkActionView/helpers/ -> pagination_helper.php (summary)

(no description)

File Size: 140 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 AkActionController/AkPaginator.php
 AkActionView/AkActionViewHelper.php

Defines 1 class

PaginationHelper:: (7 methods):
  sortable_link()
  getFindOptions()
  _getOrderColumnFromCurrentModel()
  _getOrderFromCustomDictionary()
  _getOrderFromAssociations()
  getSortDirection()
  getPaginator()


Class: PaginationHelper  - X-Ref


sortable_link($column, $url_options = array()   X-Ref
No description

getFindOptions(&$object)   X-Ref
No description

_getOrderColumnFromCurrentModel(&$object, $paginator_name)   X-Ref
No description

_getOrderFromCustomDictionary($paginator_name, &$find_options)   X-Ref
No description

_getOrderFromAssociations(&$object, $paginator_name, &$find_options)   X-Ref
No description

getSortDirection()   X-Ref
No description

getPaginator(&$object, $options = array()   X-Ref
Returns a paginator object

Options:
'items_per_page' => 15, // Number of items per page
'page_var_on_url' => 'page', // This var will be passed thru the url for pointing to current page
'count_method' => 'count' // This method will be called on selected model to get the total number of items.
'count_conditions' => null // A string that will be passed as the first parameter (conditions) to the count method
'count_joins' => null // A string that will be passed as the seccond parameter (join options) to the count method.
'column_dictionary' => array() // In case you need to map the sort key from the url to the database column you must define an array pair
'include' => array() // In case current sort column is not found on current model or in the column_dictionary this helper will look for the first associated model witrh a column named like given sort parameter.



Generated: Mon Oct 27 12:43:49 2008 Cross-referenced by PHPXref 0.6