lithium\util\Collection::_init PHP Method

_init() protected method

Initializes the collection object by merging in collection items and removing redundant object properties.
protected _init ( ) : void
return void
    protected function _init()
    {
        parent::_init();
        unset($this->_config['data']);
    }

Usage Example

Example #1
0
 /**
  * auto init for setting up items passed into constructor
  *
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $data = $this->_data;
     $this->_data = array();
     foreach ($data as $item) {
         $this->add($item);
     }
 }
All Usage Examples Of lithium\util\Collection::_init