コード例 #1
0
 /**
  * Singleton method
  *
  * @return ConfService the service instance
  */
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }