lithium\data\Collection::_init PHP Method

_init() protected method

protected _init ( )
    protected function _init()
    {
        $data = $this->_config['data'];
        parent::_init();
        $this->set($data);
        foreach (array('classes', 'model', 'result', 'query') as $key) {
            unset($this->_config[$key]);
        }
    }

Usage Example

Example #1
0
 protected function _init()
 {
     parent::_init();
     $this->_original = $this->_data;
     $this->_handlers += array('MongoId' => function ($value) {
         return (string) $value;
     }, 'MongoDate' => function ($value) {
         return $value->sec;
     });
 }
All Usage Examples Of lithium\data\Collection::_init