PHP Class think\paginator\driver\Bootstrap

Inheritance: extends think\Paginator
Datei anzeigen Open project: top-think/framework Class Usage Examples

Public Methods

Method Description
render ( ) : mixed 渲染分页html

Protected Methods

Method Description
getActivePageWrapper ( string $text ) : string 生成一个激活的按钮
getAvailablePageWrapper ( string $url, integer $page ) : string 生成一个可点击的按钮
getDisabledTextWrapper ( string $text ) : string 生成一个禁用的按钮
getDots ( ) : string 生成省略号按钮
getLinks ( ) : string 页码按钮
getNextButton ( string $text = '»' ) : string 下一页按钮
getPageLinkWrapper ( string $url, integer $page ) : string 生成普通页码按钮
getPreviousButton ( string $text = "«" ) : string 上一页按钮
getUrlLinks ( array $urls ) : string 批量生成页码按钮.

Method Details

getActivePageWrapper() protected method

生成一个激活的按钮
protected getActivePageWrapper ( string $text ) : string
$text string
return string

getAvailablePageWrapper() protected method

生成一个可点击的按钮
protected getAvailablePageWrapper ( string $url, integer $page ) : string
$url string
$page integer
return string

getDisabledTextWrapper() protected method

生成一个禁用的按钮
protected getDisabledTextWrapper ( string $text ) : string
$text string
return string

getDots() protected method

生成省略号按钮
protected getDots ( ) : string
return string

getNextButton() protected method

下一页按钮
protected getNextButton ( string $text = '»' ) : string
$text string
return string

getPreviousButton() protected method

上一页按钮
protected getPreviousButton ( string $text = "«" ) : string
$text string
return string

render() public method

渲染分页html
public render ( ) : mixed
return mixed