Overview

Namespaces

  • Angelfon
    • SDK
      • Exceptions
      • Http
      • Rest
        • Api
          • V099
            • User

Classes

  • Domain
  • InstanceContext
  • InstanceResource
  • ListResource
  • Options
  • Page
  • Serialize
  • Values
  • Version
  • VersionInfo
  • Overview
  • Namespace
  • Class

Class Page

Angelfon\SDK\Page implements Iterator

Direct known subclasses

Angelfon\SDK\Rest\Api\V099\User\CallPage, Angelfon\SDK\Rest\Api\V099\User\SmsPage
Abstract
Namespace: Angelfon\SDK
Located at Page.php
Methods summary
abstract public
# buildInstance( array $payload )
public
# __construct( Angelfon\SDK\Version $version, Angelfon\SDK\Http\Response $response )
protected
# processResponse( Angelfon\SDK\Http\Response $response )
protected
# isPagingEol( $content )
protected
# loadPage( )
public
# getPreviousPageUrl( )
public
# getNextPageUrl( )
public
# nextPage( )
public
# previousPage( )
public mixed
# current( )

(PHP 5 >= 5.0.0)
Return the current element

(PHP 5 >= 5.0.0)
Return the current element

Returns

mixed
Can return any type.

Link

http://php.net/manual/en/iterator.current.php

Implementation of

Iterator::current()
public
# next( )

(PHP 5 >= 5.0.0)
Move forward to next element

(PHP 5 >= 5.0.0)
Move forward to next element

Returns


Any returned value is ignored.

Link

http://php.net/manual/en/iterator.next.php

Implementation of

Iterator::next()
public mixed
# key( )

(PHP 5 >= 5.0.0)
Return the key of the current element

(PHP 5 >= 5.0.0)
Return the key of the current element

Returns

mixed
scalar on success, or null on failure.

Link

http://php.net/manual/en/iterator.key.php

Implementation of

Iterator::key()
public boolean
# valid( )

(PHP 5 >= 5.0.0)
Checks if current position is valid

(PHP 5 >= 5.0.0)
Checks if current position is valid

Returns

boolean

The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

Link

http://php.net/manual/en/iterator.valid.php

Implementation of

Iterator::valid()
public
# rewind( )

(PHP 5 >= 5.0.0)
Rewind the Iterator to the first element

(PHP 5 >= 5.0.0)
Rewind the Iterator to the first element

Returns


Any returned value is ignored.

Link

http://php.net/manual/en/iterator.rewind.php

Implementation of

Iterator::rewind()
public Angelfon\SDK\Version
# getVersion( )

Returns

Angelfon\SDK\Version
public
# __toString( )
Properties summary
protected static array $metaKeys
# array( 'end', 'first_page_uri', 'next_page_uri', 'last_page_uri', 'page', 'page_size', 'previous_page_uri', 'total', 'num_pages', 'start', 'uri', )
protected $version
#
protected $payload
#
protected $solution
#
protected $records
#
API documentation generated by ApiGen