Add 'finalize' option to getCSSFileList() and getJSFileList(), to be used only by the final layout

This commit is contained in:
Kijin Sung 2016-05-06 22:01:58 +09:00
parent 1c43cbb126
commit 4290f5110c
3 changed files with 34 additions and 24 deletions

View file

@ -2270,11 +2270,12 @@ class Context
* Returns the list of javascripts that matches the given type.
*
* @param string $type Added position. (head:<head>..</head>, body:<body>..</body>)
* @param bool $finalize (optional)
* @return array Returns javascript file list. Array contains file, targetie.
*/
public static function getJsFile($type = 'head')
public static function getJsFile($type = 'head', $finalize = false)
{
return self::$_instance->oFrontEndFileHandler->getJsFileList($type);
return self::$_instance->oFrontEndFileHandler->getJsFileList($type, $finalize);
}
/**
@ -2322,11 +2323,12 @@ class Context
/**
* Return a list of css files
*
* @param bool $finalize (optional)
* @return array Returns css file list. Array contains file, media, targetie.
*/
public static function getCSSFile()
public static function getCSSFile($finalize = false)
{
return self::$_instance->oFrontEndFileHandler->getCssFileList();
return self::$_instance->oFrontEndFileHandler->getCssFileList($finalize);
}
/**