/** * 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; }
/** * @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(); } }
/** * @return OW_RequestHandler */ public static function getRequestHandler() { return OW_RequestHandler::getInstance(); }