/**
	 * @param $destFolder The folder to save the cached site into.
	 *   This needs to be set in framework/static-main.php as well through the {@link $cacheBaseDir} variable.
	 * @param $fileExtension  The file extension to use, e.g 'html'.  
	 *   If omitted, then each page will be placed in its own directory, 
	 *   with the filename 'index.html'.  If you set the extension to PHP, then a simple PHP script will
	 *   be generated that can do appropriate cache & redirect header negotation.
	 */
	function __construct($destFolder, $fileExtension = null) {
		// Remove trailing slash from folder
		if(substr($destFolder, -1) == '/') $destFolder = substr($destFolder, 0, -1);
		
		$this->destFolder = $destFolder;
		$this->fileExtension = $fileExtension;
		
		parent::__construct();
	}
Ejemplo n.º 2
0
 /**
  * @param $destFolder The folder to save the cached site into
  * @param $fileExtension  The file extension to use, for example, 'html'.  If omitted, then each page will be placed
  * in its own directory, with the filename 'index.html'
  */
 function __construct($destFolder, $fileExtension = null)
 {
     if (substr($destFolder, -1) == '/') {
         $destFolder = substr($destFolder, 0, -1);
     }
     $this->destFolder = $destFolder;
     $this->fileExtension = $fileExtension;
     parent::__construct();
 }
 /**
  * @param $destFolder The folder to save the cached site into.
  *   This needs to be set in framework/static-main.php as well through the {@link $cacheBaseDir} variable.
  * @param $fileExtension  The file extension to use, e.g 'html'.  
  *   If omitted, then each page will be placed in its own directory, 
  *   with the filename 'index.html'.  If you set the extension to PHP, then a simple PHP script will
  *   be generated that can do appropriate cache & redirect header negotation.
  */
 public function __construct($destFolder = 'cache', $fileExtension = null)
 {
     // Remove trailing slash from folder
     if (substr($destFolder, -1) == '/') {
         $destFolder = substr($destFolder, 0, -1);
     }
     $this->destFolder = $destFolder;
     if ($fileExtension) {
         $this->fileExtension = $fileExtension;
     }
     parent::__construct();
 }