Example #1
0
 /**
  * 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('type' => null, 'class' => null));
     parent::_initialize($config);
 }
Example #2
0
 /**
  * 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('attributes' => array('enabled' => array('default' => true))));
     parent::_initialize($config);
 }
Example #3
0
 /**
  * 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('profile_name' => ucfirst($this->getIdentifier()->package), 'profile_description' => JText::_('COM-' . $this->getIdentifier()->package . '-APP-DESCRIPTION'), 'profile_features' => array(), 'assignment_option' => self::OPTION_OPTIONAL, 'actor_identifiers' => array(), 'relationships' => array('assignments' => array('child' => 'com:components.domain.entity.assignment', 'child_key' => 'componentEntity'))));
     parent::_initialize($config);
 }