Esempio n. 1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return OW_Router
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Esempio n. 2
0
 /**
  * @return OW_RequestHandler
  */
 public static function getRequestHandler()
 {
     self::detectContext();
     switch (self::$context) {
         case self::CONTEXT_API:
             return OW_ApiRequestHandler::getInstance();
         default:
             return OW_RequestHandler::getInstance();
     }
 }
Esempio n. 3
0
File: ow.php Progetto: vazahat/dudex
 /**
  * @return OW_RequestHandler
  */
 public static function getRequestHandler()
 {
     return OW_RequestHandler::getInstance();
 }