You are here

protected function AbstractLazyCollection::initialize in Plug 7

Initialize the collection

Return value

void

30 calls to AbstractLazyCollection::initialize()
AbstractLazyCollection::add in lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Adds an element at the end of the collection.
AbstractLazyCollection::clear in lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Clears the collection, removing all elements.
AbstractLazyCollection::contains in lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Checks whether an element is contained in the collection. This is an O(n) operation, where n is the size of the collection.
AbstractLazyCollection::containsKey in lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Checks whether the collection contains an element with the specified key/index.
AbstractLazyCollection::count in lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php

... See full list

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php, line 329

Class

AbstractLazyCollection
Lazy collection that is backed by a concrete collection

Namespace

Doctrine\Common\Collections

Code

protected function initialize() {
  if (!$this->initialized) {
    $this
      ->doInitialize();
    $this->initialized = true;
  }
}