コード例 #1
0
ファイル: event_handler.php プロジェクト: vazahat/dudex
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: init.php プロジェクト: vazahat/dudex
<?php

OW::getRouter()->addRoute(new OW_Route('credits_logs', 'your-credits/history/:type', "CREDITS_MCTRL_Action", 'logs'));
OW::getRouter()->addRoute(new OW_Route('credits_logs_default', 'your-credits/history/all', "CREDITS_MCTRL_Action", 'logs'));
OW::getRouter()->addRoute(new OW_Route('credits_admin_logs', 'admin/credits/all-logs', "CREDITS_MCTRL_Action", 'adminlogs'));
OW::getRouter()->addRoute(new OW_Route('credits_transfer', 'your-credits/transfer', "CREDITS_MCTRL_Action", 'transfer'));
CREDITS_MCLASS_EventHandler::getInstance()->init();