/**
  * Get instance of itself
  *
  * @return self
  */
 static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemple #2
0
/**
* Get the instance of the CHOQ_UrlManager
*
* @return CHOQ_UrlManager
*/
function url()
{
    return CHOQ_UrlManager::getInstance();
}