/**
  * Get instance of itself
  *
  * @return self
  */
 static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 2
0
/**
* Get the instance of the CHOQ_RequestManager
*
* @return CHOQ_RequestManager
*/
function req()
{
    return CHOQ_RequestManager::getInstance();
}