コード例 #1
0
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new SmartyLazyRegister();
     }
     return self::$instance;
 }