A singleton class used to identify extensions, register them in a central location, and instantiate/call them when necessary.
Наследование: extends Gdn_Pluggable
 /**
  * We want to re-publish the events
  */
 public function CallEventHandlers($Sender, $EventClassName, $EventName, $EventHandlerType = 'Handler', $Options = [])
 {
     // re-publish
     \Event::fire('forum.event', ['Sender' => $Sender, 'EventClassName' => $EventClassName, 'EventName' => $EventName, 'EventHandlerType' => $EventHandlerType, 'Options' => $Options]);
     // log if we want to
     if (\Config::get('forum::package.trace-include-events', false)) {
         Trace(['EventClassName' => $EventClassName, 'EventName' => $EventName]);
     }
     // defer
     return parent::CallEventHandlers($Sender, $EventClassName, $EventName, $EventHandlerType, $Options);
 }
Пример #2
0
 /**
  *
  *
  * @param $ThemeName
  * @return mixed
  */
 public function getThemeInfo($ThemeName)
 {
     $theme = $this->addonManager->lookupTheme($ThemeName);
     if ($theme) {
         return Gdn_PluginManager::calcOldInfoArray($theme);
     } else {
         return false;
     }
 }