示例#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('max_upload_limit' => ini_get('upload_max_filesize')));
     parent::_initialize($config);
     $config->append(array('behaviors' => to_hash(array('com://site/search.controller.behavior.searchable', 'com://site/stories.controller.behavior.publisher', 'com://site/notifications.controller.behavior.notifier', 'followable', 'administrable', 'ownable', 'privatable', 'enablable', 'verifiable', 'subscribable', 'com://site/hashtags.controller.behavior.hashtagable', 'com://site/locations.controller.behavior.geolocatable', 'coverable'))));
     JFactory::getLanguage()->load('com_actors');
 }
示例#2
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', 'votable', 'com://site/hashtags.controller.behavior.hashtagable', 'com://site/people.controller.behavior.mentionable')));
     parent::_initialize($config);
 }
示例#3
0
 protected function _initialize(\KConfig $config)
 {
     $config->append(array('request' => array('order' => 'ordering'), 'behaviors' => array('parentable', 'subscribable', 'privatable', 'lockable', 'com://site/forums.controller.behavior.recountable', 'enablable')));
     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.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('state' => array('viewer' => get_viewer()), 'request' => array('filter' => null, 'order' => null), 'behaviors' => array('com://site/search.controller.behavior.searchable', 'com://site/stories.controller.behavior.publisher', 'com://site/notifications.controller.behavior.notifier', 'composable', 'commentable', 'votable', 'privatable', 'subscribable', 'com://site/hashtags.controller.behavior.hashtagable', 'com://site/people.controller.behavior.mentionable', 'ownable')));
     parent::_initialize($config);
 }
示例#5
0
 protected function _initialize(\KConfig $config)
 {
     $config->append(array('behaviors' => array('parentable', 'subscribable', 'pinnable', 'enablable', 'mentionable', 'lockable', 'com://site/stories.controller.behavior.publisher', 'com://site/notifications.controller.behavior.notifier', 'com://site/forums.controller.behavior.hashtagable', 'com://site/forums.controller.behavior.repliable', 'ownable' => array('default' => get_viewer()))));
     parent::_initialize($config);
 }
示例#6
0
文件: story.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('behaviors' => array('serviceable' => array('except' => array('edit')), 'ownable' => array('default' => get_viewer()))));
     parent::_initialize($config);
 }
示例#7
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.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('request' => array('scope' => '', 'sort' => 'trending', 'days' => KRequest::get('get.days', 'int', 7))));
     parent::_initialize($config);
     JFactory::getLanguage()->load('com_tags');
 }
示例#8
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('request' => array('scope' => '', 'sort' => 'trending', 'days' => KRequest::get('get.days', 'int', 1))));
     parent::_initialize($config);
 }
示例#9
0
文件: order.php 项目: stonyyi/anahita
 /**
  * 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('behaviors' => array('ownable', 'serviceable' => array('read_only' => true))));
     parent::_initialize($config);
 }
示例#10
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.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('toolbars' => null));
     parent::_initialize($config);
 }
示例#11
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('serviceable' => array('except' => array('browse', 'read', 'edit')), 'behaviors' => array('com://site/mailer.controller.behavior.mailer'), 'gateway' => 'com://site/subscriptions.domain.payment.gateway.paypal'));
     parent::_initialize($config);
 }
示例#12
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('serviceable' => array('read_only' => true)), 'request' => array('sort' => 'order')));
     parent::_initialize($config);
 }
示例#13
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('ownable', 'serviceable' => array('except' => array('add', 'edit'))), 'request' => array('oid' => 'viewer')));
     parent::_initialize($config);
 }
示例#14
0
 protected function _initialize(KConfig $config)
 {
     $config->append(array('behaviors' => array('parentable', 'privatable')));
     parent::_initialize($config);
 }