Example #1
0
 private function getRouter()
 {
     if (!isset($this->router)) {
         $this->router = Cliffy_Router::getInstance();
     }
     return $this->router;
 }
Example #2
0
 public function getInstance()
 {
     if (!isset(self::$instance)) {
         $class = __CLASS__;
         self::$instance = new $class();
     }
     return self::$instance;
 }
Example #3
0
 public function preDispatch($sJsonMessage)
 {
     return Cliffy_Router::getInstance()->routeMessage($sJsonMessage);
 }