1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-14 00:17:03 +02:00

[ticket/11667] Make functions abstract in includeasset

Also comment properly

PHPBB3-11667
This commit is contained in:
Nathaniel Guse
2013-07-12 13:32:40 -05:00
parent 1d55709e13
commit 41d8bfa974
3 changed files with 35 additions and 8 deletions

View File

@@ -9,16 +9,22 @@
class phpbb_template_twig_node_includejs extends phpbb_template_twig_node_includeasset
{
/**
* Get the definition name
*
* @return string (e.g. 'SCRIPTS')
*/
public function get_definition_name()
{
return 'SCRIPTS';
}
/**
* Compiles the node to PHP.
*
* @param Twig_Compiler A Twig_Compiler instance
*/
* Append the output code for the asset
*
* @param Twig_Compiler A Twig_Compiler instance
* @return null
*/
protected function append_asset(Twig_Compiler $compiler)
{
$config = $this->environment->get_phpbb_config();