/** * 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'); }
/** * 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); }
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); }
/** * 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); }
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); }
/** * 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); }
/** * 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'); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
protected function _initialize(KConfig $config) { $config->append(array('behaviors' => array('parentable', 'privatable'))); parent::_initialize($config); }