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: Parameters: - $logger (
OCP\ILogger
) - $appDataFactory (
OC\Files\AppData\Factory
) - $urlGenerator (
OCP\IURLGenerator
) - $config (
OCP\IConfig
) - $defaults (
OC_Defaults
) - $serverRoot (string)
- $cacheFactory (
OCP\ICacheFactory
) - $iconsCacher (
OC\Template\IconsCacher
) - $timeFactory (
OCP\AppFramework\Utility\ITimeFactory
)
- $logger (
-
public
OC\Template\SCSSCacher::
process
($root, $file, $app)¶ - Process the caching process if needed
Source: Parameters: - $root (string) Root path to the nextcloud installation
- $file (string)
- $app (string) The app name
Returns: bool
Throws:
-
public
OC\Template\SCSSCacher::
getCachedCSS
($appName, $fileName)¶ Source: Parameters: - $appName
- $fileName
Returns:
-
public
OC\Template\SCSSCacher::
resetCache
()¶ - Reset scss cache by deleting all generated css filesWe 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: Parameters: - $appName (string) the app name
- $fileName (string)
Returns: string