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:

lib/private/Template/JSCombiner.php#67

Parameters:
public OC\Template\JSCombiner::process($root, $file, $app)
Source:

lib/private/Template/JSCombiner.php#86

Parameters:
  • $root (string)
  • $file (string)
  • $app (string)
Returns:

bool

protected OC\Template\JSCombiner::isCached($fileName, $folder)
Source:

lib/private/Template/JSCombiner.php#114

Parameters:
Returns:

bool

protected OC\Template\JSCombiner::cache($path, $fileName, $folder)
Source:

lib/private/Template/JSCombiner.php#165

Parameters:
Returns:

bool

public OC\Template\JSCombiner::getCachedJS($appName, $fileName)
Source:

lib/private/Template/JSCombiner.php#221

Parameters:
  • $appName (string)
  • $fileName (string)
Returns:

string

public OC\Template\JSCombiner::getContent($root, $file)
Source:

lib/private/Template/JSCombiner.php#234

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