class Collection

Key value pair collection object

Hierarchy

  • class \Guzzle\Common\Collection implements \Guzzle\Common\ArrayAccess, \Guzzle\Common\IteratorAggregate, \Guzzle\Common\Countable, ToArrayInterface

Expanded class hierarchy of Collection

12 files declare their use of Collection

File

drupal/core/vendor/guzzle/common/Guzzle/Common/Collection.php, line 10

Namespace

Guzzle\Common
View source

Members

Namesort descending Modifiers Type Description Overrides
Collection::$data protected property
Collection::add public function Add a value to a key. If a key of the same name has already been added, the key value will be converted into an array and the new value will be pushed to the end of the array.
Collection::clear public function Removes all key value pairs
Collection::count public function Return the number of keys
Collection::filter public function Iterates over each key value pair in the collection passing them to the Closure. If the Closure function returns true, the current value from input is returned into the result Collection. The Closure must accept three parameters: (string) $key,…
Collection::fromConfig public static function Create a new collection from an array, validate the keys, and add default values where missing
Collection::get public function Get a specific key value.
Collection::getAll public function Get all or a subset of matching key value pairs
Collection::getIterator public function Get an iterator object
Collection::getKeys public function Get all keys in the collection
Collection::getPregMatchValue public function Return a collection value for a match array of a preg_replace function
Collection::hasKey public function Returns whether or not the specified key is present.
Collection::hasValue public function Checks if any keys contains a certain value
Collection::inject public function Inject configuration settings into an input string
Collection::keySearch public function Case insensitive search the keys in the collection
Collection::map public function Returns a Collection containing all the elements of the collection after applying the callback function to each one. The Closure should accept three parameters: (string) $key, (string) $value, (array) $context and return a modified value
Collection::merge public function Add and merge in a Collection or array of key value pair data.
Collection::offsetExists public function ArrayAccess implementation of offsetExists()
Collection::offsetGet public function ArrayAccess implementation of offsetGet()
Collection::offsetSet public function ArrayAccess implementation of offsetGet()
Collection::offsetUnset public function ArrayAccess implementation of offsetUnset()
Collection::remove public function Remove a specific key value pair
Collection::replace public function Replace the data of the object with the value of an array
Collection::set public function Set a key value pair
Collection::toArray public function Get the array representation of an object Overrides ToArrayInterface::toArray
Collection::__construct public function Constructor