/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config An optional ObjectConfig object with configuration options. * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('parameters' => array(), 'filters' => array(), 'functions' => array('escape' => array($this, 'escape'), 'helper' => array($this, 'invoke'), 'parameters' => array($this, 'getParameters')), 'cache' => false, 'cache_namespace' => 'koowa')); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config An optional ObjectConfig object with configuration options */ protected function _initialize(KObjectConfig $config) { $config->append(array('debug' => false, 'cache' => false, 'cache_path' => '', 'cache_reload' => true, 'template' => 'default', 'functions' => array('object' => array($this, 'getObject'), 'translate' => array($this->getObject('translator'), 'translate'), 'json' => 'json_encode', 'format' => 'sprintf', 'replace' => 'strtr'))); parent::_initialize($config); }
/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KConfig $config An optional KConfig object with configuration options. * * @return void */ protected function _initialize(KConfig $config) { $config->append(array('data' => array())); parent::_initialize($config); }