JSCombiner¶
-
class
OC\Template\
JSCombiner
¶ Source: lib/private/Template/JSCombiner.php#40
Properties¶
-
protected static property
OC\Template\JSCombiner::$
appData
¶ Source: lib/private/Template/JSCombiner.php#43 Type: \OCP\Files\IAppData
-
protected static property
OC\Template\JSCombiner::$
urlGenerator
¶ Source: lib/private/Template/JSCombiner.php#46 Type: \OCP\IURLGenerator
-
protected static property
OC\Template\JSCombiner::$
depsCache
¶ Source: lib/private/Template/JSCombiner.php#49 Type: \OCP\ICache
-
protected static property
OC\Template\JSCombiner::$
config
¶ Source: lib/private/Template/JSCombiner.php#52 Type: \OC\SystemConfig
-
protected static property
OC\Template\JSCombiner::$
logger
¶ Source: lib/private/Template/JSCombiner.php#55 Type: \OCP\ILogger
Methods¶
-
public
OC\Template\JSCombiner::
__construct
($appData, $urlGenerator, $cacheFactory, $config, $logger)¶ Source: Parameters: - $appData (
OCP\Files\IAppData
) - $urlGenerator (
OCP\IURLGenerator
) - $cacheFactory (
OCP\ICacheFactory
) - $config (
OC\SystemConfig
) - $logger (
OCP\ILogger
)
- $appData (
-
public
OC\Template\JSCombiner::
process
($root, $file, $app)¶ Source: Parameters: - $root (string)
- $file (string)
- $app (string)
Returns: bool
-
protected
OC\Template\JSCombiner::
isCached
($fileName, $folder)¶ Source: Parameters: - $fileName (string)
- $folder (
OCP\Files\SimpleFS\ISimpleFolder
)
Returns: bool
-
protected
OC\Template\JSCombiner::
cache
($path, $fileName, $folder)¶ Source: Parameters: - $path (string)
- $fileName (string)
- $folder (
OCP\Files\SimpleFS\ISimpleFolder
)
Returns: bool
-
public
OC\Template\JSCombiner::
getCachedJS
($appName, $fileName)¶ Source: Parameters: - $appName (string)
- $fileName (string)
Returns: string
-
public
OC\Template\JSCombiner::
getContent
($root, $file)¶ Source: Parameters: - $root (string)
- $file (string)
Returns: string[]
-
public
OC\Template\JSCombiner::
resetCache
()¶ - Clear cache with combined javascript files
Source: lib/private/Template/JSCombiner.php#259 Throws: \OCP\Files\NotFoundException