Beispiel #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return MODERATION_CLASS_EventHandler
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Beispiel #2
0
<?php

MODERATION_CLASS_EventHandler::getInstance()->init();
OW::getRouter()->addRoute(new OW_Route('moderation.approve', 'moderation/approve/:group', 'MODERATION_CTRL_Moderation', 'approve'));
OW::getRouter()->addRoute(new OW_Route('moderation.approve_index', 'moderation/approve', 'MODERATION_CTRL_Moderation', 'approve'));
OW::getRouter()->addRoute(new OW_Route('moderation.user.approve', 'pending-approval/:userId/:group', 'MODERATION_CTRL_Moderation', 'approve'));
OW::getRouter()->addRoute(new OW_Route('moderation.user.approve_index', 'pending-approval/:userId', 'MODERATION_CTRL_Moderation', 'approve'));
OW::getRouter()->addRoute(new OW_Route('moderation.admin', 'admin/plugins/moderation', 'MODERATION_CTRL_Admin', 'index'));