Пример #1
0
 public static function getConfig()
 {
     if (!self::$config) {
         self::$config = self::prepareConfig();
     }
     return new self();
 }
Пример #2
0
 /**
  * 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
 public static function setStorageFileName($name)
 {
     self::$storage_file_name = $name;
 }