コード例 #1
0
ファイル: cwp_theme.php プロジェクト: repo-storage/core-wp
 /**
  * Singleton pattern.
  * @return type
  */
 public static function instance()
 {
     if (!is_object(self::$instance)) {
         $class = __CLASS__;
         self::$instance = new $class();
     }
     return self::$instance;
 }