-
Notifications
You must be signed in to change notification settings - Fork 74
ArrayObject
Andrea Zoellner edited this page Jul 30, 2015
·
2 revisions
- Class name: ArrayObject
- Namespace: Crew\Unsplash
- Parent class: ArrayObject
const LAST = 'last'
const PREV = 'prev'
const NEXT = 'next'
const FIRST = 'first'
const LINK = 'Link'
const TOTAL = 'X-Total'
const PER_PAGE = 'X-Per-Page'
private mixed $headers
- Visibility: private
private mixed $pages
- Visibility: private
private mixed $basePages = array(self::LAST => null, self::PREV => null, self::NEXT => null, self::FIRST => null)
- Visibility: private
mixed Crew\Unsplash\ArrayObject::__construct($input, $headers)
- Visibility: public
- $input mixed
- $headers mixed
integer Crew\Unsplash\ArrayObject::totalPages()
Total page for this call.
- Visibility: public
integer Crew\Unsplash\ArrayObject::currentPage()
Current page number base on the Link header.
- Visibility: public
array Crew\Unsplash\ArrayObject::getPages()
Retrieve array containing all pages for each position.
- Visibility: public
array Crew\Unsplash\ArrayObject::generatePages()
Return an array containing the page number for all positions: last, previous, next, first. If the page number for a specific position doesn't exist (i.e it is the current page), the position will return null.
- Visibility: private