コード例 #1
0
ファイル: Config.php プロジェクト: lingorus/image-downloader
 public static function getConfig()
 {
     if (!self::$config) {
         self::$config = self::prepareConfig();
     }
     return new self();
 }
コード例 #2
0
ファイル: Config.php プロジェクト: hasangilak/wp-semi-laravel
 /**
  * fill self::$theme with the singleton pattern and returns it
  * @return null|string
  */
 public static function theme()
 {
     if (self::$theme == null) {
         self::$theme = get_template_directory_uri();
         return self::$theme;
     } else {
         return self::$theme;
     }
 }
コード例 #3
0
ファイル: Config.php プロジェクト: jagan-pl/PHP_assignment
 public static function setStorageFileName($name)
 {
     self::$storage_file_name = $name;
 }