public function AbstractLazyCollection::containsKey in Plug 7
Checks whether the collection contains an element with the specified key/index.
Parameters
string|integer $key The key/index to check for.:
Return value
boolean TRUE if the collection contains an element with the specified key/index, FALSE otherwise.
Overrides Collection::containsKey
File
- lib/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ AbstractLazyCollection.php, line 110
Class
- AbstractLazyCollection
- Lazy collection that is backed by a concrete collection
Namespace
Doctrine\Common\CollectionsCode
public function containsKey($key) {
$this
->initialize();
return $this->collection
->containsKey($key);
}