PHP Class CI_Pagination, TastyIgniter

Author: ExpressionEngine Dev Team
Datei anzeigen Open project: tastyigniter/tastyigniter Class Usage Examples

Public Properties

Property Type Description
$cur_page integer Current page
$per_page integer Items per page

Protected Properties

Property Type Description
$CI object CI Singleton
$_attributes string Attributes
$_link_types array "rel" attribute
$base_url string The page that we're linking to
$cur_tag_close string Current tag close
$cur_tag_open string Current tag open
$data_page_attr string Data page attribute
$display_pages boolean Display pages flag
$first_link string First link
$first_tag_close string First tag close
$first_tag_open string First tag open
$first_url string An alternative URL for the first page
$full_tag_close string Full tag close
$full_tag_open string Full tag open
$last_link string Last link
$last_tag_close string Last tag close
$last_tag_open string Last tag open
$next_link string Next link
$next_tag_close string Next tag close
$next_tag_open string Next tag open
$num_links integer Relates to "digit" type links shown before/after the currently viewed page.
$num_tag_close string Number tag close
$num_tag_open string Number tag open
$page_query_string boolean Page query string flag
$prefix string Prefix
$prev_link string Previous link
$prev_tag_close string Previous tag close
$prev_tag_open string Previous tag open
$query_string_segment string Query string segment
$reuse_query_string boolean Reuse query string flag
$suffix string Suffix
$total_rows integer Total number of items
$uri_segment integer URI Segment
$use_global_url_suffix boolean Use global URL suffix flag
$use_page_numbers boolean Whether to use actual page numbers instead of an offset

Public Methods

Method Description
__construct ( array $params = [] ) : void Constructor
create_links ( ) : string Generate the pagination links
initialize ( array $params = [] ) : CI_Pagination Initialize Preferences

Protected Methods

Method Description
_attr_rel ( string $type ) : string Add "rel" attribute
_parse_attributes ( array $attributes ) : void Parse attributes

Method Details

__construct() public method

Constructor
public __construct ( array $params = [] ) : void
$params array Initialization parameters
return void

_attr_rel() protected method

Add "rel" attribute
protected _attr_rel ( string $type ) : string
$type string
return string

_parse_attributes() protected method

Parse attributes
protected _parse_attributes ( array $attributes ) : void
$attributes array
return void

initialize() public method

Initialize Preferences
public initialize ( array $params = [] ) : CI_Pagination
$params array Initialization parameters
return CI_Pagination

Property Details

$CI protected_oe property

CI Singleton
protected object $CI
return object

$_attributes protected_oe property

Attributes
protected string $_attributes
return string

$base_url protected_oe property

The page that we're linking to
protected string $base_url
return string

$cur_page public_oe property

Current page
public int $cur_page
return integer

$cur_tag_close protected_oe property

Current tag close
protected string $cur_tag_close
return string

$cur_tag_open protected_oe property

Current tag open
protected string $cur_tag_open
return string

$data_page_attr protected_oe property

Data page attribute
protected string $data_page_attr
return string

$display_pages protected_oe property

Display pages flag
protected bool $display_pages
return boolean

$first_tag_close protected_oe property

First tag close
protected string $first_tag_close
return string

$first_tag_open protected_oe property

First tag open
protected string $first_tag_open
return string

$first_url protected_oe property

An alternative URL for the first page
protected string $first_url
return string

$full_tag_close protected_oe property

Full tag close
protected string $full_tag_close
return string

$full_tag_open protected_oe property

Full tag open
protected string $full_tag_open
return string

$last_tag_close protected_oe property

Last tag close
protected string $last_tag_close
return string

$last_tag_open protected_oe property

Last tag open
protected string $last_tag_open
return string

$next_tag_close protected_oe property

Next tag close
protected string $next_tag_close
return string

$next_tag_open protected_oe property

Next tag open
protected string $next_tag_open
return string

$num_tag_close protected_oe property

Number tag close
protected string $num_tag_close
return string

$num_tag_open protected_oe property

Number tag open
protected string $num_tag_open
return string

$page_query_string protected_oe property

Page query string flag
protected bool $page_query_string
return boolean

$per_page public_oe property

Items per page
public int $per_page
return integer

$prefix protected_oe property

Prefix
protected string $prefix
return string

$prev_tag_close protected_oe property

Previous tag close
protected string $prev_tag_close
return string

$prev_tag_open protected_oe property

Previous tag open
protected string $prev_tag_open
return string

$query_string_segment protected_oe property

Query string segment
protected string $query_string_segment
return string

$reuse_query_string protected_oe property

Reuse query string flag
protected bool $reuse_query_string
return boolean

$suffix protected_oe property

Suffix
protected string $suffix
return string

$total_rows protected_oe property

Total number of items
protected int $total_rows
return integer

$uri_segment protected_oe property

URI Segment
protected int $uri_segment
return integer

$use_global_url_suffix protected_oe property

Use global URL suffix flag
protected bool $use_global_url_suffix
return boolean

$use_page_numbers protected_oe property

Whether to use actual page numbers instead of an offset
protected bool $use_page_numbers
return boolean