예제 #1
0
 /**
  * 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('behaviors' => array('parentable')));
     parent::_initialize($config);
 }
예제 #2
0
파일: topic.php 프로젝트: stonyyi/anahita
 /**
  * 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('request' => array('sort' => null), 'behaviors' => array('pinnable')));
     parent::_initialize($config);
 }
예제 #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.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('behaviors' => array('com://site/shares.controller.behavior.sharable')));
     parent::_initialize($config);
 }
예제 #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.
  *
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('max_upload_limit' => get_config_value('photos.uploadlimit', 2)));
     parent::_initialize($config);
 }