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: Parameters: - $logger (
OCP\ILogger
) - $appDataFactory (
OC\Files\AppData\Factory
) - $urlGenerator (
OCP\IURLGenerator
) - $timeFactory (
OCP\AppFramework\Utility\ITimeFactory
)
Throws: - $logger (
-
public
OC\Template\IconsCacher::
setIconsCss
($css)¶ Source: Parameters: - $css (string)
Returns: string
Throws: Throws: Throws: Throws:
-
public
OC\Template\IconsCacher::
colorizeSvg
($svg, $color)¶ Source: 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