aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/twig/node/includeasset.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-12 13:32:40 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-12 13:32:40 -0500
commit41d8bfa974900c9befbde06cc08060eb8a552ec8 (patch)
treec5f880b63a3d19f6887aa88a07156fdd69226f35 /phpBB/includes/template/twig/node/includeasset.php
parent1d55709e1336e826aa514ecb84c8c98c52e500c7 (diff)
downloadforums-41d8bfa974900c9befbde06cc08060eb8a552ec8.tar
forums-41d8bfa974900c9befbde06cc08060eb8a552ec8.tar.gz
forums-41d8bfa974900c9befbde06cc08060eb8a552ec8.tar.bz2
forums-41d8bfa974900c9befbde06cc08060eb8a552ec8.tar.xz
forums-41d8bfa974900c9befbde06cc08060eb8a552ec8.zip
[ticket/11667] Make functions abstract in includeasset
Also comment properly PHPBB3-11667
Diffstat (limited to 'phpBB/includes/template/twig/node/includeasset.php')
-rw-r--r--phpBB/includes/template/twig/node/includeasset.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/includes/template/twig/node/includeasset.php b/phpBB/includes/template/twig/node/includeasset.php
index 38c0498492..b12d379157 100644
--- a/phpBB/includes/template/twig/node/includeasset.php
+++ b/phpBB/includes/template/twig/node/includeasset.php
@@ -62,4 +62,19 @@ abstract class phpbb_template_twig_node_includeasset extends Twig_Node
->raw("\n');\n")
;
}
+
+ /**
+ * Get the definition name
+ *
+ * @return string (e.g. 'SCRIPTS')
+ */
+ abstract public function get_definition_name();
+
+ /**
+ * Append the output code for the asset
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ * @return null
+ */
+ abstract protected function append_asset(Twig_Compiler $compiler);
}