PHP Класс Recurly_Pager, recurly-client-php

The pager moves forward only and can rewind to the first item.
Наследование: extends Recurly_Base, implements Iterator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_count position within the current page
$_objects total number of records

Открытые методы

Метод Описание
__toString ( )
count ( ) : integer Number of records in this list.
current ( ) : Recurly_Resource The current object
key ( ) : integer
next ( ) Increments the position to the next element
rewind ( ) Rewind to the beginning
valid ( ) : boolean

Защищенные методы

Метод Описание
_afterParseResponse ( $response, $uri )
_loadFrom ( $uri ) Load another page of results into this pager.
_setState ( $params, $state )
updateErrorAttributes ( )

Приватные методы

Метод Описание
_loadLinks ( $response ) The 'Links' header contains links to the next, previous, and starting pages.
_loadRecordCount ( $response ) Find the total number of results in the collection from the 'X-Records' header.

Описание методов

__toString() публичный Метод

public __toString ( )

_afterParseResponse() защищенный Метод

protected _afterParseResponse ( $response, $uri )

_loadFrom() защищенный Метод

Load another page of results into this pager.
protected _loadFrom ( $uri )

_setState() защищенный статический Метод

protected static _setState ( $params, $state )

count() публичный Метод

Number of records in this list.
public count ( ) : integer
Результат integer number of records in list

current() публичный Метод

The current object
public current ( ) : Recurly_Resource
Результат Recurly_Resource the current object

key() публичный Метод

public key ( ) : integer
Результат integer current position within the current page

next() публичный Метод

Increments the position to the next element
public next ( )

rewind() публичный Метод

Rewind to the beginning
public rewind ( )

updateErrorAttributes() защищенный Метод

protected updateErrorAttributes ( )

valid() публичный Метод

public valid ( ) : boolean
Результат boolean True if the current position is valid.

Описание свойств

$_count защищенное свойство

position within the current page
protected $_count

$_objects защищенное свойство

total number of records
protected $_objects