Ejemplo n.º 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.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('aliases' => array('person' => 'nodeA', 'package' => 'nodeB'), 'relationships' => array('person' => array('parent' => 'com:people.domain.entity.person'), 'package' => array('parent' => 'com:subscriptions.domain.entity.package')), 'behaviors' => array('expirable', 'dictionariable')));
     parent::_initialize($config);
 }
Ejemplo n.º 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('relationships' => array('owner' => array('parent' => 'com:actors.domain.entity.actor'), 'ownable' => array('parent' => 'com:base.domain.entity.node')), 'aliases' => array('owner' => 'nodeA', 'ownable' => 'nodeB')));
     parent::_initialize($config);
 }
Ejemplo n.º 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('aliases' => array('voter' => 'nodeA', 'votee' => 'nodeB')));
     parent::_initialize($config);
 }
Ejemplo n.º 4
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('relationships' => array('administrator' => array('parent' => 'com:people.domain.entity.person'), 'administrable' => array('parent' => 'com:actors.domain.entity.actor')), 'aliases' => array('administrator' => 'nodeA', 'administrable' => 'nodeB')));
     parent::_initialize($config);
 }
Ejemplo n.º 5
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.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('behaviors' => array('dictionariable'), 'aliases' => array('person' => 'nodeA', 'actor' => 'nodeB')));
     parent::_initialize($config);
 }
Ejemplo n.º 6
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('aliases' => array('photo' => 'nodeA', 'set' => 'nodeB'), 'attributes' => array('ordering')));
     parent::_initialize($config);
 }
Ejemplo n.º 7
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.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('inheritance' => array('abstract' => $this->getIdentifier()->classname === __CLASS__), 'aliases' => array('tag' => 'nodeA', 'tagable' => 'nodeB')));
     parent::_initialize($config);
 }