Property | Type | Description | |
---|---|---|---|
$buttons |
Method | Description | |
---|---|---|
buildQuery ( string $query, array $records ) : string | Builds a query and sets the number of records per page | |
getPagination ( ) : null | string | Displays the pagination | |
getPaging ( ) : boolean | Gets the activation of pagination | |
getTotalOfRecords ( ) : integer | Gets the total number of records | |
setFriendlyUrl ( boolean $friendly_url ) | Enables navigation by URLs friendlies | |
setLimitPerPage ( integer $limit ) | Sets the number of records per page | |
setPagination ( boolean $friendly_url = false ) | Sets the activation of paging | |
setPaginator ( string $paginator ) | Sets the paginator |
Method | Description | |
---|---|---|
buildPaginator ( integer $page ) : string | Builds the paginator | |
getCurrentPage ( ) : integer | Get the number of the current page | |
getLimitPerPage ( ) : integer | Gets the number of records per page | |
getTotalOfPages ( ) | Gets the total number of pages | |
setPaging ( boolean $paging ) | Enables paging of records | |
setTotalOfPages ( integer $limit ) | Sets the total number of pages | |
setTotalOfRecords ( array $records ) | Sets the total number of records |
public static getPagination ( ) : null | string | ||
return | null | string |
public static getTotalOfRecords ( ) : integer | ||
return | integer |
public static setFriendlyUrl ( boolean $friendly_url ) | ||
$friendly_url | boolean | Enables URLs friendlies |
public static setLimitPerPage ( integer $limit ) | ||
$limit | integer | Maximum of records per page |
public static setPagination ( boolean $friendly_url = false ) | ||
$friendly_url | boolean | OPTIONAL Enables URLs friendlies |
public static setPaginator ( string $paginator ) | ||
$paginator | string | Parameter used as paginator |