PHP Class MY_Pagination, 68kb

Author: zhangwei
Inheritance: extends CI_Pagination
ファイルを表示 Open project: 68kb/68kb

Public Properties

Property Type Description
$cur_tag_close unknown_type Opening HTML tag for pagination string
$cur_tag_open string Opening HTML tag for pagination string
$first_link string Text for link to first page
$last_link string Text for link to last page
$num_links integer Number of links to show in pagination
$offset integer Pagination offset.
$pagination_selector string Pagination selector to be used in URI. Make sure to set this to a value that is never used elsewhere in the URI.

Public Methods

Method Description
__construct ( )
create_links ( ) : string Generate the pagination links
get_pagination ( integer $total_rows, integer $per_page ) : string Rturn HTML for pagination, based on count ($total_rows) and limit ($per_page)

Private Methods

Method Description
_set_pagination_offset ( ) : void Set dynamic pagination variables in $CI->data['pagvars']

Method Details

__construct() public method

public __construct ( )

get_pagination() public method

Rturn HTML for pagination, based on count ($total_rows) and limit ($per_page)
public get_pagination ( integer $total_rows, integer $per_page ) : string
$total_rows integer
$per_page integer
return string

Property Details

$cur_tag_close public_oe property

Opening HTML tag for pagination string
public unknown_type $cur_tag_close
return unknown_type

$cur_tag_open public_oe property

Opening HTML tag for pagination string
public string $cur_tag_open
return string

$offset public_oe property

Pagination offset.
public int $offset
return integer

$pagination_selector public_oe property

Pagination selector to be used in URI. Make sure to set this to a value that is never used elsewhere in the URI.
public string $pagination_selector
return string