PHP Class Timber\Pagination

Afficher le fichier Open project: timber/timber Class Usage Examples

Méthodes publiques

Свойство Type Description
$current
$next
$pages
$prev
$total

Méthodes publiques

Méthode Description
__construct ( $prefs = [], $wp_query = null )
get_pagination ( array $prefs ) : array Get pagination.
is_search_query ( string $url ) : boolean Checks to see whether the given URL has a search query in it (s=*)
paginate_links ( array $args = [] ) : array

Méthodes protégées

Méthode Description
init ( $prefs = [], $wp_query = null )

Method Details

__construct() public méthode

public __construct ( $prefs = [], $wp_query = null )

get_pagination() public static méthode

Get pagination.
public static get_pagination ( array $prefs ) : array
$prefs array
Résultat array mixed

init() protected méthode

protected init ( $prefs = [], $wp_query = null )

is_search_query() public static méthode

Checks to see whether the given URL has a search query in it (s=*)
public static is_search_query ( string $url ) : boolean
$url string
Résultat boolean

Property Details

$current public_oe property

public $current

$next public_oe property

public $next

$pages public_oe property

public $pages

$prev public_oe property

public $prev

$total public_oe property

public $total