Beispiel #1
0
 public static function getInstance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new AppCacheManifest();
     }
     return self::$instance;
 }
Beispiel #2
0
 /**
  * Sets custom file for getting of manifest content
  * self::MANIFEST_CHECK_FILE uses by default
  *@param string $customManifestCheckFile
  */
 public static function setManifestCheckFile($customManifestCheckFile)
 {
     self::$customCheckFile = $customManifestCheckFile;
 }
Beispiel #3
0
 /**
  * Creates or updates the manifest file for the page with usage its content.
  *
  * @param bool $isEnable
  *
  * @internal param $content
  */
 public static function setEnabled($isEnabled = true)
 {
     self::$isEnabled = (bool) $isEnabled;
 }