PHP Class Timber\Pagination

Exibir arquivo Open project: timber/timber Class Usage Examples

Public Properties

Property Type Description
$current
$next
$pages
$prev
$total

Public Methods

Method 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

Protected Methods

Method Description
init ( $prefs = [], $wp_query = null )

Method Details

__construct() public method

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

get_pagination() public static method

Get pagination.
public static get_pagination ( array $prefs ) : array
$prefs array
return array mixed

init() protected method

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

is_search_query() public static method

Checks to see whether the given URL has a search query in it (s=*)
public static is_search_query ( string $url ) : boolean
$url string
return 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