/** * the singleton pattern * * @return Sipgate_Controller */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new Sipgate_Controller(); } return self::$_instance; }