PHP Class think\paginator\driver\Bootstrap

Inheritance: extends think\Paginator
Afficher le fichier Open project: top-think/framework Class Usage Examples

Méthodes publiques

Méthode Description
render ( ) : mixed 渲染分页html

Méthodes protégées

Méthode 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 méthode

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

getAvailablePageWrapper() protected méthode

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

getDisabledTextWrapper() protected méthode

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

getDots() protected méthode

生成省略号按钮
protected getDots ( ) : string
Résultat string

getNextButton() protected méthode

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

getPreviousButton() protected méthode

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

render() public méthode

渲染分页html
public render ( ) : mixed
Résultat mixed