function define($object_name, $context = FALSE) { parent::define($context); $this->add_mixin('Mixin_GalleryStorage'); $this->wrap('I_GalleryStorage_Driver', array(&$this, '_get_driver'), array($object_name, $context)); $this->implement('I_Gallery_Storage'); }
function initialize() { parent::initialize(); $this->_gallery_mapper = $this->get_registry()->get_utility('I_Gallery_Mapper'); $this->_image_mapper = $this->get_registry()->get_utility('I_Image_Mapper'); }
public function initialize() { parent::initialize(); $this->_gallery_mapper = C_Gallery_Mapper::get_instance(); $this->_image_mapper = C_Image_Mapper::get_instance(); }