TemplateLayout

class OC\TemplateLayout
Source:lib/private/TemplateLayout.php#59
Parent:OC_Template

Properties

Methods

public OC\TemplateLayout::__construct($renderAs, $appId="")
Source:

lib/private/TemplateLayout.php#75

Parameters:
  • $renderAs (string)
  • $appId (string) application id
protected OC\TemplateLayout::getVersionHashSuffix($path=false, $file=false)
Source:

lib/private/TemplateLayout.php#274

Parameters:
  • $path (string)
  • $file (string)
Returns:

string

public static OC\TemplateLayout::findStylesheetFiles($styles, $compileScss=true)
Source:

lib/private/TemplateLayout.php#313

Parameters:
  • $styles (array)
Returns:

array

public OC\TemplateLayout::getAppNamefromPath($path)
Source:

lib/private/TemplateLayout.php#338

Parameters:
  • $path (string)
Returns:

string | bool

public static OC\TemplateLayout::findJavascriptFiles($scripts)
Source:

lib/private/TemplateLayout.php#354

Parameters:
  • $scripts (array)
Returns:

array

public static OC\TemplateLayout::convertToRelativePath($filePath)
Converts the absolute file path to a relative path from \OC::$SERVERROOT
Source:

lib/private/TemplateLayout.php#375

Parameters:
  • $filePath (string) Absolute path
Returns:

string Relative path

Throws:

\Exception If $filePath is not under \OC::$SERVERROOT