PHP 클래스 Backend\Core\Engine\Header

..)
상속: extends Backend\Core\Engine\Base\Object
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
addCSS ( string $file, string $module = null, boolean $overwritePath = false, boolean $minify = true, boolean $addTimestamp = false ) Add a CSS-file.
addJS ( string $file, string $module = null, boolean $minify = true, boolean $overwritePath = false, boolean $addTimestamp = false ) Add a JS-file.
addJsData ( string $module, string $key, mixed $value ) Add data into the jsData
getCSSFiles ( ) : array Get all added CSS files
getJSFiles ( ) : array get all added javascript files
parse ( ) Parse the header into the template
parseCSS ( ) Parse the CSS-files
parseJS ( ) Parse the JS-files

비공개 메소드들

메소드 설명
minifyCSS ( string $file ) : string Minify a CSS-file
minifyJS ( string $file ) : string Minify a JS-file

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface

addCSS() 공개 메소드

If you don't specify a module, the current one will be used to automatically create the path to the file. Automatic creation of the filename will result in src/Backend/Modules/MODULE/Layout/Css/FILE (for modules) src/Backend/Core/Layout/Css/FILE (for core) If you set overwritePath to true, the above-described automatic path creation will not happen, instead the file-parameter will be used as path; which we then expect to be a full path (It has to start with a slash '/')
public addCSS ( string $file, string $module = null, boolean $overwritePath = false, boolean $minify = true, boolean $addTimestamp = false )
$file string The name of the file to load.
$module string The module wherein the file is located.
$overwritePath boolean Should we overwrite the full path?
$minify boolean Should the CSS be minified?
$addTimestamp boolean May we add a timestamp for caching purposes?

addJS() 공개 메소드

If you don't specify a module, the current one will be used If you set overwritePath to true we expect a full path (It has to start with a /)
public addJS ( string $file, string $module = null, boolean $minify = true, boolean $overwritePath = false, boolean $addTimestamp = false )
$file string The file to load.
$module string The module wherein the file is located.
$minify boolean Should the module be minified?
$overwritePath boolean Should we overwrite the full path?
$addTimestamp boolean May we add a timestamp for caching purposes?

addJsData() 공개 메소드

Add data into the jsData
public addJsData ( string $module, string $key, mixed $value )
$module string The name of the module.
$key string The key whereunder the value will be stored.
$value mixed The value

getCSSFiles() 공개 메소드

Get all added CSS files
public getCSSFiles ( ) : array
리턴 array

getJSFiles() 공개 메소드

get all added javascript files
public getJSFiles ( ) : array
리턴 array

parse() 공개 메소드

Parse the header into the template
public parse ( )

parseCSS() 공개 메소드

Parse the CSS-files
public parseCSS ( )

parseJS() 공개 메소드

Parse the JS-files
public parseJS ( )