protected function _initialize(KConfig $config) { if (empty($config->adapters)) { $config->adapters = array('image', 'finfo'); } parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array( 'path' => '' )); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options * @return void */ protected function _initialize(KConfig $config) { $config->append(array( 'state' => KFactory::get('koowa:config.state'), )); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options * @return void */ protected function _initialize(KConfig $config) { $config->append(array( 'priority' => KCommand::PRIORITY_NORMAL, )); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options * @return void */ protected function _initialize(KConfig $config) { $config->append(array( 'data' => array(), )); parent::_initialize($config); }
protected function _initialize($config) { try { $config->append(array('manifest' => null, 'translator' => $this->getService('translator'))); } catch (KServiceIdentifierException $e) { throw new KException('Please first upgrade EXTman to be able to use this extension.'); } parent::_initialize($config); }
protected function _initialize(KConfig $config) { // TODO: Set the database to be a singleton, use com:application.database $database = $this->getService('com://site/mongo.database.adapter.document'); $package = $this->getIdentifier()->package; $name = $this->getIdentifier()->name; $config->append(array('command_chain' => $this->getService('koowa:command.chain'), 'event_dispatcher' => $this->getService('koowa:event.dispatcher'), 'dispatch_events' => false, 'enable_callbacks' => false, 'database' => $database, 'behaviors' => array(), 'filters' => array(), 'name' => empty($package) ? $name : $package . '_' . $name)); parent::_initialize($config); }
protected function _initialize(KConfig $config) { if (empty($config->adapters)) { $config->adapters = array('finfo'); } elseif (is_string($config->adapters)) { $config->adapters = array($config->adapters); } parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param array Options * @return array Options */ protected function _initialize(KConfig $options) { $name = isset($options->name) ? $options->name : (string) $this->node['name']; $id = isset($options->id) ? $options->id : isset($this->node['id']) ? (string) $this->node['id'] : $name; $label = isset($this->node['label']) ? (string) $this->node['label'] : false; $label = $label ? $label : KInflector::humanize((string) $this->node['name']); $options->append(array('parent' => false, 'identifier' => null, 'group' => false, 'fetchTooltip' => true, 'name' => $name, 'id' => $id, 'label' => $label)); parent::_initialize($options); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. * @return void */ protected function _initialize(KConfig $config) { $config->append(array( 'dispatcher' => KFactory::get('koowa:event.dispatcher'), 'auto_connect' => true, 'priority' => KCommand::PRIORITY_NORMAL )); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array( 'storage_path' => 'docs', 'storage_name' => null, 'storage' => null, 'selector' => 'default', 'type' => $this->_identifier->name )); 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. */ protected function _initialize(KConfig $config) { $description = $this->_description; $properties = $description->getProperty(); $validations = array(); foreach ($properties as $property) { if ($property->isAttribute() && $property->getFormat()) { $validations[$property->getName()]['format'] = $property->getFormat(); } if ($property->isSerializable() && $property->isRequired()) { $validations[$property->getName()]['required'] = true; } if ($property->isSerializable() && $property->isUnique()) { $validations[$property->getName()]['uniqueness'] = array('scope' => array()); } } $config->append(array('validations' => $validations)); 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. * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('locale' => 'en-GB')); 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. */ protected function _initialize(KConfig $config) { $config->append(array('response' => null)); 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('folder' => 'assets')); 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) { $params = get_config_value('com_subscriptions'); $config->append(array('test_mode' => $params->get('test_mode', false), 'login' => $params->get('login'), 'password' => $params->get('password'), 'signature' => $params->get('signature'))); 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. */ protected function _initialize(KConfig $config) { $package = $this->getIdentifier()->package; $config->append(array('patterns' => array('' => array('view' => $package)))); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options * @return void */ protected function _initialize(KConfig $config) { $config->append(array('state' => new KConfigState())); parent::_initialize($config); }
/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options. * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('command_chain' => 'lib:command.chain', 'command_handlers' => array('lib:command.handler.event'), 'dispatched' => false, 'request' => 'lib:controller.request', 'response' => 'lib:controller.response', 'user' => 'lib:user', 'behaviors' => array('permissible'))); 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. */ protected function _initialize(KConfig $config) { if ($config->repository) { $config->append(array('identifier' => $config->repository->getDescription()->getInheritanceColumnValue()->getIdentifier(), 'node_type' => (string) $config->repository->getDescription()->getInheritanceColumnValue(), 'commentable' => $config->repository->isCommentable(), 'ownable' => $config->repository->isOwnable(), 'hashtagable' => $config->repository->isHashtagable(), 'geolocatable' => $config->repository->isGeolocatable())); } parent::_initialize($config); }
/** * Initializes the options for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. */ protected function _initialize(KConfig $config) { $config->append(array('name' => '', 'version' => '0.0', 'url' => '', 'key' => '')); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. * @return void */ protected function _initialize(KConfig $config) { $config->append(array('options' => array(), 'charset' => 'UTF-8', 'table_prefix' => 'jos_', 'table_needle' => '#__', 'command_chain' => new KCommandChain(), 'dispatch_events' => true, 'enable_callbacks' => false, 'connection' => null)); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. * @return void */ protected function _initialize(KConfig $config) { $config->append(array('date' => date('Y-m-d H:i:s'))); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. * @return void */ protected function _initialize(KConfig $config) { $config->append(array('adapter' => null, 'command_chain' => $this->getService('koowa:command.chain'), 'dispatch_events' => true, 'event_dispatcher' => $this->getService('koowa:event.dispatcher'), 'enable_callbacks' => false)); 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 * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('handler' => 'file', 'user' => null, 'name' => '', 'id' => 'KSESSIONID', 'lifetime' => ini_get('session.gc_maxlifetime'), 'namespace' => '__koowa', 'options' => array('auto_start' => 0, 'cache_limiter' => '', 'use_cookies' => 1, 'use_only_cookies' => 1, 'cookie_httponly' => 1, 'save_handler' => 'files', 'use_trans_sid' => 0, 'entropy_file' => '/dev/urandom', 'entropy_length' => 128, 'hash_function' => 'sha256', 'hash_bits_per_character' => 5))); parent::_initialize($config); }
/** * Initializes the config for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options * @return void */ protected function _initialize(KConfig $config) { $config->append(array('title' => KInflector::humanize($this->getName()), 'icon' => $this->getName(), 'controller' => null)); 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. */ protected function _initialize(KConfig $config) { $config->append(array('controller' => null)); parent::_initialize($config); }
/** * Initializes the config for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('data' => array(), 'command_chain' => 'lib:command.chain', 'command_handlers' => array('lib:command.handler.event'), 'model' => 'lib:model.empty', 'content' => '', 'mimetype' => '', 'url' => $this->getObject('lib:http.url'))); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. * @return void */ protected function _initialize(KConfig $config) { $config->append(array('stack' => $this->getService('koowa:template.stack'), 'view' => null, 'command_chain' => new KCommandChain(), 'dispatch_events' => false, 'enable_callbacks' => false)); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param array Options * @return array Options */ protected function _initialize(KConfig $config) { $config->append(array('group' => false, 'groups' => true, 'name' => 'params', 'data' => null, 'xml' => null, 'identifier' => null, 'render' => 'fieldset', 'grouptag' => 'params')); parent::_initialize($config); }