public static function getConfig() { if (!self::$config) { self::$config = self::prepareConfig(); } return new self(); }
/** * 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; } }
public static function setStorageFileName($name) { self::$storage_file_name = $name; }