SCSSCacher

class OC\Template\SCSSCacher
Source:lib/private/Template/SCSSCacher.php#52

Properties

protected static property OC\Template\SCSSCacher::$logger
Source:lib/private/Template/SCSSCacher.php#55
Type:\OCP\ILogger
protected static property OC\Template\SCSSCacher::$appData
Source:lib/private/Template/SCSSCacher.php#58
Type:\OCP\Files\IAppData
protected static property OC\Template\SCSSCacher::$urlGenerator
Source:lib/private/Template/SCSSCacher.php#61
Type:\OCP\IURLGenerator
protected static property OC\Template\SCSSCacher::$config
Source:lib/private/Template/SCSSCacher.php#64
Type:\OCP\IConfig
protected static property OC\Template\SCSSCacher::$serverRoot
Source:lib/private/Template/SCSSCacher.php#70
Type:string
protected static property OC\Template\SCSSCacher::$depsCache
Source:lib/private/Template/SCSSCacher.php#73
Type:\OCP\ICache

Methods

public OC\Template\SCSSCacher::__construct($logger, $appDataFactory, $urlGenerator, $config, $defaults, $serverRoot, $cacheFactory, $iconsCacher, $timeFactory, $appConfig)
Source:

lib/private/Template/SCSSCacher.php#106

Parameters:
public OC\Template\SCSSCacher::process($root, $file, $app)
Process the caching process if needed
Source:

lib/private/Template/SCSSCacher.php#144

Parameters:
  • $root (string) Root path to the nextcloud installation
  • $file (string)
  • $app (string) The app name
Returns:

bool

Throws:

\OCP\Files\NotPermittedException

public OC\Template\SCSSCacher::getCachedCSS($appName, $fileName)
Source:

lib/private/Template/SCSSCacher.php#212

Parameters:
  • $appName
  • $fileName
Returns:

\OCP\Files\SimpleFS\ISimpleFile

public OC\Template\SCSSCacher::resetCache()
Reset scss cache by deleting all generated css files
We need to regenerate all files when variables change
Source:lib/private/Template/SCSSCacher.php#381
public OC\Template\SCSSCacher::getCachedSCSS($appName, $fileName)
Return the cached css file uri
Source:

lib/private/Template/SCSSCacher.php#461

Parameters:
  • $appName (string) the app name
  • $fileName (string)
Returns:

string