Exemplo n.º 1
0
 /**
  * register new event on wiki
  * @param FounderEmailsEvent $event
  * @param bool $doProcess perform event processing when done
  */
 public function registerEvent(FounderEmailsEvent $event, $doProcess = true)
 {
     global $wgCityId;
     wfProfileIn(__METHOD__);
     // Each event has a different named option now
     if ($event->enabled_wiki($wgCityId)) {
         $event->create();
         if ($doProcess) {
             $this->processEvents($event->getType(), true, $wgCityId);
         }
         $this->mLastEventType = $event->getType();
     }
     wfProfileOut(__METHOD__);
 }