Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Enum
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • DnsIterator
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class DnsIterator

Class ResourceIterator is tasked with iterating over resource collections - many of which are paginated. Based on a base URL, the iterator will append elements based on further requests to the API. Each time this happens, query parameters (marker) are updated based on the current value.

OpenCloud\Common\ArrayAccess implements ArrayAccess
Extended by OpenCloud\Common\Collection\ArrayCollection implements Countable
Extended by OpenCloud\Common\Collection\ResourceIterator implements Iterator
Extended by OpenCloud\Common\Collection\PaginatedIterator implements Iterator
Extended by OpenCloud\DNS\Collection\DnsIterator
Namespace: OpenCloud\DNS\Collection
Package: OpenCloud\Common\Collection
Since: 1.8.0
Located at OpenCloud/DNS/Collection/DnsIterator.php
Methods summary
public
# updateMarkerToCurrent( )

Update the current marker based on the current element. The marker will be based on a particular property of this current element, so you must retrieve it first.

Update the current marker based on the current element. The marker will be based on a particular property of this current element, so you must retrieve it first.

Overrides

OpenCloud\Common\Collection\PaginatedIterator::updateMarkerToCurrent()
protected
# shouldAppend( )

Overrides

OpenCloud\Common\Collection\PaginatedIterator::shouldAppend()
Methods inherited from OpenCloud\Common\Collection\PaginatedIterator
appendElements(), appendNewCollection(), constructNextUrl(), current(), extractNextLink(), factory(), key(), next(), parseResponseBody(), populateAll(), rewind(), setBaseUrl(), valid()
Methods inherited from OpenCloud\Common\Collection\ResourceIterator
constructResource(), currentElement(), getElement(), getOption(), getOptions(), parseOptions(), search(), setOption(), setOptions(), setResourceParent(), sort()
Methods inherited from OpenCloud\Common\Collection\ArrayCollection
__construct(), append(), count(), setElements(), valueExists()
Methods inherited from OpenCloud\Common\ArrayAccess
offsetExists(), offsetGet(), offsetSet(), offsetUnset()
Constants inherited from OpenCloud\Common\Collection\PaginatedIterator
LIMIT, MARKER
Properties inherited from OpenCloud\Common\Collection\PaginatedIterator
$currentMarker, $defaults, $nextUrl, $required
Properties inherited from OpenCloud\Common\Collection\ResourceIterator
$options, $position, $resourceParent
Properties inherited from OpenCloud\Common\Collection\ArrayCollection
$elements
PHP OpenCloud API API documentation generated by ApiGen 2.8.0