/** * Initializes the default configuration 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( 'toolbar' => null, )); parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array( 'thumbnail_size' => array('x' => 64, 'y' => 64) )); 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( 'modules' => array('toolbar', 'title', 'submenu') )); parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array( 'priority' => self::PRIORITY_HIGH )); parent::_initialize($config); }
/** * Initializes the options for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options. */ protected function _initialize(KObjectConfig $config) { $config->append(array('priority' => self::PRIORITY_LOWEST, 'loggers' => array())); // Append the default logger if none is set. if (!count($config->loggers)) { $config->append(array('loggers' => array('com:activities.activity.logger'))); } parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array( 'redirect_schemes' => array('http', 'https'), 'redirect_unknown' => true, )); parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array( 'container' => 'docman-images', 'folder' => 'generated', 'thumbnail_size' => array('x' => 512, 'y' => 512) )); parent::_initialize($config); }
/** * Initializes the default configuration 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_HIGH, 'readonly' => false, 'auto_mixin' => true )); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('format' => 'csv', 'limit' => 50)); if (!$config->behavior) { $identifier = clone $this->getIdentifier(); $identifier->path = array('database', 'behavior'); $config->behavior = $identifier; } parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array( 'priority' => KCommandHandlerAbstract::PRIORITY_LOW )); if (empty($config->vars)) { $config->vars = array('sort'); } parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('og' => false, 'properties' => array('title' => 'title', 'description' => 'description', 'keywords' => '', 'og:title' => 'title'), 'values' => array('og:type' => 'article', 'og:url' => KRequest::url(), 'og:site_name' => JFactory::getConfig()->get('sitename')))); $this->properties = new KConfig($config->properties); $this->values = new KConfig($config->values); $this->og = $config->og; // Remove properties which are already set in the values: foreach ($this->values as $value) { foreach ($this->properties as $property) { if ($value == $property) { unset($this->properties[$value]); } } } parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('priority' => KCommand::PRIORITY_HIGHEST)); 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('base_url' => KRequest::url(), 'test_options' => array('enabled' => get_config_value('mailer.debug', false), 'email' => get_config_value('mailer.redirect_email'), 'log' => JFactory::getConfig()->getValue('tmp_path') . '/emails/'), 'template_view' => null)); parent::_initialize($config); }
/** * Initializes the default configuration 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('repository' => $config->mixer->getIdentifier()->name, 'priority' => KCommand::PRIORITY_HIGHEST)); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('priority' => KCommand::PRIORITY_LOWEST, 'actions' => array('after.edit', 'after.add', 'after.delete'), 'title_column' => array('title', 'name'))); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config A ObjectConfig object with configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('cookie_name' => 'referrer', 'cookie_path' => $this->getObject('request')->getBaseUrl()->toString(KHttpUrl::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) { $log = JLog::getInstance('system_log.php'); $config->append(array('log' => $log)); 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('modules' => array('toolbar', 'title', 'submenu', 'left'), 'force_cache' => false)); parent::_initialize($config); }
/** * Initializes the options 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('priority' => self::PRIORITY_LOW, 'package' => null, 'entity' => null, 'category_entity' => 'category'))->append(array('model' => KStringInflector::pluralize($config->entity))); parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array('actions' => array('delete'))); parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array('priority' => KCommandHandlerInterface::PRIORITY_HIGH)); 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()); 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('enabled' => KRequest::format() == 'html' && $config->mixer->isDispatched())); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('container' => 'attachments-attachments', 'file_controller' => 'com://admin/files.controller.file', 'attachment_controller' => 'com://admin/attachments.controller.attachment', 'populate_from_request' => true, 'attachment_limit' => false)); parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array('priority' => KCommandHandlerAbstract::PRIORITY_LOWEST)); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('token' => 'c7326a714a1275378a6d4608f547737b')); 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('actions' => array(), 'read_only' => false, 'except' => array())); parent::_initialize($config); }
/** * Initializes the default configuration 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('identifiable_key' => 'oid', 'default' => null, 'priority' => KCommand::PRIORITY_HIGHEST)); parent::_initialize($config); }
protected function _initialize(KObjectConfig $config) { $config->append(array('controller' => 'attachment')); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('priority' => KCommand::PRIORITY_LOWEST, 'actions' => array('after.edit', 'after.add', 'after.delete'), 'title_column' => array('title', 'name'), 'activity_controller' => array('identifier' => 'com://admin/activities.controller.activity', 'config' => array()))); parent::_initialize($config); }