PHP 클래스 CI_Pagination, TastyIgniter

저자: ExpressionEngine Dev Team
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cur_page integer Current page
$per_page integer Items per page

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__construct ( array $params = [] ) : void Constructor
create_links ( ) : string Generate the pagination links
initialize ( array $params = [] ) : CI_Pagination Initialize Preferences

보호된 메소드들

메소드 설명
_attr_rel ( string $type ) : string Add "rel" attribute
_parse_attributes ( array $attributes ) : void Parse attributes

메소드 상세

__construct() 공개 메소드

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

_attr_rel() 보호된 메소드

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

_parse_attributes() 보호된 메소드

Parse attributes
protected _parse_attributes ( array $attributes ) : void
$attributes array
리턴 void

initialize() 공개 메소드

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

프로퍼티 상세

$CI 보호되어 있는 프로퍼티

CI Singleton
protected object $CI
리턴 object

$_attributes 보호되어 있는 프로퍼티

Attributes
protected string $_attributes
리턴 string

$base_url 보호되어 있는 프로퍼티

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

$cur_page 공개적으로 프로퍼티

Current page
public int $cur_page
리턴 integer

$cur_tag_close 보호되어 있는 프로퍼티

Current tag close
protected string $cur_tag_close
리턴 string

$cur_tag_open 보호되어 있는 프로퍼티

Current tag open
protected string $cur_tag_open
리턴 string

$data_page_attr 보호되어 있는 프로퍼티

Data page attribute
protected string $data_page_attr
리턴 string

$display_pages 보호되어 있는 프로퍼티

Display pages flag
protected bool $display_pages
리턴 boolean

$first_tag_close 보호되어 있는 프로퍼티

First tag close
protected string $first_tag_close
리턴 string

$first_tag_open 보호되어 있는 프로퍼티

First tag open
protected string $first_tag_open
리턴 string

$first_url 보호되어 있는 프로퍼티

An alternative URL for the first page
protected string $first_url
리턴 string

$full_tag_close 보호되어 있는 프로퍼티

Full tag close
protected string $full_tag_close
리턴 string

$full_tag_open 보호되어 있는 프로퍼티

Full tag open
protected string $full_tag_open
리턴 string

$last_tag_close 보호되어 있는 프로퍼티

Last tag close
protected string $last_tag_close
리턴 string

$last_tag_open 보호되어 있는 프로퍼티

Last tag open
protected string $last_tag_open
리턴 string

$next_tag_close 보호되어 있는 프로퍼티

Next tag close
protected string $next_tag_close
리턴 string

$next_tag_open 보호되어 있는 프로퍼티

Next tag open
protected string $next_tag_open
리턴 string

$num_tag_close 보호되어 있는 프로퍼티

Number tag close
protected string $num_tag_close
리턴 string

$num_tag_open 보호되어 있는 프로퍼티

Number tag open
protected string $num_tag_open
리턴 string

$page_query_string 보호되어 있는 프로퍼티

Page query string flag
protected bool $page_query_string
리턴 boolean

$per_page 공개적으로 프로퍼티

Items per page
public int $per_page
리턴 integer

$prefix 보호되어 있는 프로퍼티

Prefix
protected string $prefix
리턴 string

$prev_tag_close 보호되어 있는 프로퍼티

Previous tag close
protected string $prev_tag_close
리턴 string

$prev_tag_open 보호되어 있는 프로퍼티

Previous tag open
protected string $prev_tag_open
리턴 string

$query_string_segment 보호되어 있는 프로퍼티

Query string segment
protected string $query_string_segment
리턴 string

$reuse_query_string 보호되어 있는 프로퍼티

Reuse query string flag
protected bool $reuse_query_string
리턴 boolean

$suffix 보호되어 있는 프로퍼티

Suffix
protected string $suffix
리턴 string

$total_rows 보호되어 있는 프로퍼티

Total number of items
protected int $total_rows
리턴 integer

$uri_segment 보호되어 있는 프로퍼티

URI Segment
protected int $uri_segment
리턴 integer

$use_global_url_suffix 보호되어 있는 프로퍼티

Use global URL suffix flag
protected bool $use_global_url_suffix
리턴 boolean

$use_page_numbers 보호되어 있는 프로퍼티

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