Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/application.php
Show First 20 Lines • Show All 2076 Lines • ▼ Show 20 Line(s) | |||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function SetConfigValue($name, $value, $local_cache_only = false) | public function SetConfigValue($name, $value, $local_cache_only = false) | ||||
{ | { | ||||
return $this->cacheManager->SetConfigValue($name, $value, $local_cache_only); | return $this->cacheManager->SetConfigValue($name, $value, $local_cache_only); | ||||
} | } | ||||
/** | /** | ||||
* Allows to process any type of event | * Allows to process any type of event. | ||||
* | |||||
* @param kEvent $event Event. | |||||
* | * | ||||
* @param kEvent $event | |||||
* @param Array $params | |||||
* @param Array $specific_params | |||||
* @return void | * @return void | ||||
* @access public | |||||
*/ | */ | ||||
public function HandleEvent($event, $params = null, $specific_params = null) | public function HandleEvent(kEvent $event) | ||||
{ | { | ||||
if ( isset($params) ) { | |||||
$event = new kEvent($params, $specific_params); | |||||
} | |||||
$this->EventManager->HandleEvent($event); | $this->EventManager->HandleEvent($event); | ||||
} | } | ||||
/** | /** | ||||
* Notifies event subscribers, that event has occured | * Notifies event subscribers, that event has occured | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
* @return void | * @return void | ||||
▲ Show 20 Lines • Show All 970 Lines • Show Last 20 Lines |