TheWebmen\Staticpages\Controllers\StaticpagesController
Synopsis
class StaticpagesController
extends Controller
{
- // members
- private string $_cachepath = 'staticpages';
- private boolean $_urlsToExport = false;
- private array $_paths = ;
- private boolean $_currentQueryString = false;
- // methods
- public bool|string currentQueryString()
- public string transformURL()
- public array|bool getUrlsToExport()
- public void exportSingle()
- public bool urlHasCache()
- public void removeCacheForURL()
- public void doExport()
- public void isInstalled()
- public void install()
- public void removeAll()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $_cachepath
- $_currentQueryString
- $_paths
- $_urlsToExport
Methods
public
- currentQueryString() — Get the current query string as md5 hash
- doExport() — Do a clean export of all pages
- exportSingle() — Export a single page to the cache
- getUrlsToExport() — Get a list of all urls to export
- install() — Do a install
- isInstalled() — Check if the cache is installed
- removeAll() — Remove all cache
- removeCacheForURL() — Remove the cache for a url
- transformURL() — Generate the path from a url and fix the url for subsites
- urlHasCache() — Check if a url has cache