PHP 클래스 PDO4You\Pagination

부터: 2010-09-07
저자: Giovanni Ramos ([email protected])
파일 보기 프로젝트 열기: giovanniramos/pdo4you 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$buttons

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

buildQuery() 공개 정적인 메소드

Builds a query and sets the number of records per page
또한 보기: PDO4You::selectRecords()
public static buildQuery ( string $query, array $records ) : string
$query string SQL query
$records array Records of the query
리턴 string

getPagination() 공개 정적인 메소드

Displays the pagination
public static getPagination ( ) : null | string
리턴 null | string

getPaging() 공개 정적인 메소드

Gets the activation of pagination
또한 보기: PDO4You::selectRecords()
public static getPaging ( ) : boolean
리턴 boolean

getTotalOfRecords() 공개 정적인 메소드

Gets the total number of records
public static getTotalOfRecords ( ) : integer
리턴 integer

setFriendlyUrl() 공개 정적인 메소드

Enables navigation by URLs friendlies
public static setFriendlyUrl ( boolean $friendly_url )
$friendly_url boolean Enables URLs friendlies

setLimitPerPage() 공개 정적인 메소드

Sets the number of records per page
public static setLimitPerPage ( integer $limit )
$limit integer Maximum of records per page

setPagination() 공개 정적인 메소드

Sets the activation of paging
public static setPagination ( boolean $friendly_url = false )
$friendly_url boolean OPTIONAL Enables URLs friendlies

setPaginator() 공개 정적인 메소드

Sets the paginator
public static setPaginator ( string $paginator )
$paginator string Parameter used as paginator

프로퍼티 상세

$buttons 공개적으로 정적으로 프로퍼티

public static $buttons