IconsCacher

class OC\Template\IconsCacher
Source:lib/private/Template/IconsCacher.php#43

Properties

protected static property OC\Template\IconsCacher::$logger
Source:lib/private/Template/IconsCacher.php#46
Type:\OCP\ILogger
protected static property OC\Template\IconsCacher::$appData
Source:lib/private/Template/IconsCacher.php#49
Type:\OCP\Files\IAppData
protected static property OC\Template\IconsCacher::$urlGenerator
Source:lib/private/Template/IconsCacher.php#55
Type:\OCP\IURLGenerator
protected static property OC\Template\IconsCacher::$timeFactory
Source:lib/private/Template/IconsCacher.php#58
Type:\OCP\AppFramework\Utility\ITimeFactory

Methods

public OC\Template\IconsCacher::__construct($logger, $appDataFactory, $urlGenerator, $timeFactory)
Source:

lib/private/Template/IconsCacher.php#78

Parameters:
Throws:

\OCP\Files\NotPermittedException

public OC\Template\IconsCacher::setIconsCss($css)
Source:

lib/private/Template/IconsCacher.php#110

Parameters:
  • $css (string)
Returns:

string

Throws:

\OCP\Files\NotFoundException

Throws:

\OCP\Files\NotPermittedException

Throws:

\OCP\Files\NotFoundException

Throws:

\OCP\Files\NotPermittedException

public OC\Template\IconsCacher::colorizeSvg($svg, $color)
Source:

lib/private/Template/IconsCacher.php#191

Parameters:
  • $svg
  • $color
Returns:

string

public OC\Template\IconsCacher::getCachedCSS()
Get icons css file
Source:lib/private/Template/IconsCacher.php#220
Returns:\OCP\Files\SimpleFS\ISimpleFile | bool
public OC\Template\IconsCacher::getCachedList()
Get icon-vars list template
Source:lib/private/Template/IconsCacher.php#235
Returns:\OCP\Files\SimpleFS\ISimpleFile | bool
public OC\Template\IconsCacher::injectCss()
Add the icons cache css into the header
Source:lib/private/Template/IconsCacher.php#249