From: Matthias Schmidt Date: Mon, 15 Aug 2011 14:39:35 +0000 (+0200) Subject: Moved template plugin interfaces to the template plugin folder X-Git-Tag: 2.0.0_Beta_1~1857^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d5fd0f32a90e057e9783f264f727a52a72556ecf;p=GitHub%2FWoltLab%2FWCF.git Moved template plugin interfaces to the template plugin folder Using the same "placement pattern" like for (user group) options, also makes it unnecessary to import the interfaces. --- diff --git a/wcfsetup/install/files/lib/system/template/IBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/IBlockTemplatePlugin.class.php deleted file mode 100644 index 2abe51478d..0000000000 --- a/wcfsetup/install/files/lib/system/template/IBlockTemplatePlugin.class.php +++ /dev/null @@ -1,40 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.template - * @category Community Framework - */ -interface IBlockTemplatePlugin { - /** - * Executes this template block. - * - * @param array $tagArgs - * @param string $blockContent - * @param wcf\system\template\TemplateEngine $tplObj - * @return string output - */ - public function execute($tagArgs, $blockContent, TemplateEngine $tplObj); - - /** - * Initialises this template block. - * - * @param array $tagArgs - * @param wcf\system\template\TemplateEngine $tplObj - */ - public function init($tagArgs, TemplateEngine $tplObj); - - /** - * This function is called before every execution of this block function. - * - * @param wcf\system\template\TemplateEngine $tplObj - * @return boolean - */ - public function next(TemplateEngine $tplObj); -} diff --git a/wcfsetup/install/files/lib/system/template/ICompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/ICompilerTemplatePlugin.class.php deleted file mode 100644 index 0b37d89047..0000000000 --- a/wcfsetup/install/files/lib/system/template/ICompilerTemplatePlugin.class.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.template - * @category Community Framework - */ -interface ICompilerTemplatePlugin { - /** - * Executes the start tag of this compiler function. - * - * @param array $tagArgs - * @param wcf\system\template\TemplateScriptingCompiler $compiler - * @return string php code - */ - public function executeStart($tagArgs, TemplateScriptingCompiler $compiler); - - /** - * Executes the end tag of this compiler function. - * - * @param wcf\system\template\TemplateScriptingCompiler $compiler - * @return string php code - */ - public function executeEnd(TemplateScriptingCompiler $compiler); -} diff --git a/wcfsetup/install/files/lib/system/template/IFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/IFunctionTemplatePlugin.class.php deleted file mode 100644 index 862c7931cc..0000000000 --- a/wcfsetup/install/files/lib/system/template/IFunctionTemplatePlugin.class.php +++ /dev/null @@ -1,23 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.template - * @category Community Framework - */ -interface IFunctionTemplatePlugin { - /** - * Executes this template function. - * - * @param array $tagArgs - * @param wcf\system\template\TemplateEngine $tplObj - * @return string output - */ - public function execute($tagArgs, TemplateEngine $tplObj); -} diff --git a/wcfsetup/install/files/lib/system/template/IModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/IModifierTemplatePlugin.class.php deleted file mode 100644 index 2c240f2795..0000000000 --- a/wcfsetup/install/files/lib/system/template/IModifierTemplatePlugin.class.php +++ /dev/null @@ -1,24 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.template - * @category Community Framework - */ -interface IModifierTemplatePlugin { - /** - * Executes this modifier. - * - * @param array $tagArgs - * @param wcf\system\template\TemplateEngine $tplObj - * @return string output - */ - public function execute($tagArgs, TemplateEngine $tplObj); -} diff --git a/wcfsetup/install/files/lib/system/template/IPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/IPrefilterTemplatePlugin.class.php deleted file mode 100644 index 455a03b94d..0000000000 --- a/wcfsetup/install/files/lib/system/template/IPrefilterTemplatePlugin.class.php +++ /dev/null @@ -1,24 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.template - * @category Community Framework - */ -interface IPrefilterTemplatePlugin { - /** - * Executes this prefilter. - * - * @param string $templateName - * @param string $sourceContent - * @param wcf\system\template\TemplateScriptingCompiler $compiler - * @return string - */ - public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler); -} diff --git a/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php index c443f2517e..d03a5fb7fd 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/AppendCompilerTemplatePlugin.class.php @@ -1,6 +1,5 @@ + * @package com.woltlab.wcf + * @subpackage system.template.plugin + * @category Community Framework + */ +interface IBlockTemplatePlugin { + /** + * Executes this template block. + * + * @param array $tagArgs + * @param string $blockContent + * @param wcf\system\template\TemplateEngine $tplObj + * @return string output + */ + public function execute($tagArgs, $blockContent, TemplateEngine $tplObj); + + /** + * Initialises this template block. + * + * @param array $tagArgs + * @param wcf\system\template\TemplateEngine $tplObj + */ + public function init($tagArgs, TemplateEngine $tplObj); + + /** + * This function is called before every execution of this block function. + * + * @param wcf\system\template\TemplateEngine $tplObj + * @return boolean + */ + public function next(TemplateEngine $tplObj); +} diff --git a/wcfsetup/install/files/lib/system/template/plugin/ICompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/ICompilerTemplatePlugin.class.php new file mode 100644 index 0000000000..2fd3dbd5b0 --- /dev/null +++ b/wcfsetup/install/files/lib/system/template/plugin/ICompilerTemplatePlugin.class.php @@ -0,0 +1,31 @@ + + * @package com.woltlab.wcf + * @subpackage system.template.plugin + * @category Community Framework + */ +interface ICompilerTemplatePlugin { + /** + * Executes the start tag of this compiler function. + * + * @param array $tagArgs + * @param wcf\system\template\TemplateScriptingCompiler $compiler + * @return string php code + */ + public function executeStart($tagArgs, TemplateScriptingCompiler $compiler); + + /** + * Executes the end tag of this compiler function. + * + * @param wcf\system\template\TemplateScriptingCompiler $compiler + * @return string php code + */ + public function executeEnd(TemplateScriptingCompiler $compiler); +} diff --git a/wcfsetup/install/files/lib/system/template/plugin/IFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IFunctionTemplatePlugin.class.php new file mode 100644 index 0000000000..091f6aec38 --- /dev/null +++ b/wcfsetup/install/files/lib/system/template/plugin/IFunctionTemplatePlugin.class.php @@ -0,0 +1,23 @@ + + * @package com.woltlab.wcf + * @subpackage system.template.plugin + * @category Community Framework + */ +interface IFunctionTemplatePlugin { + /** + * Executes this template function. + * + * @param array $tagArgs + * @param wcf\system\template\TemplateEngine $tplObj + * @return string output + */ + public function execute($tagArgs, TemplateEngine $tplObj); +} diff --git a/wcfsetup/install/files/lib/system/template/plugin/IModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IModifierTemplatePlugin.class.php new file mode 100644 index 0000000000..084f76f5e6 --- /dev/null +++ b/wcfsetup/install/files/lib/system/template/plugin/IModifierTemplatePlugin.class.php @@ -0,0 +1,24 @@ + + * @package com.woltlab.wcf + * @subpackage system.template + * @category Community Framework + */ +interface IModifierTemplatePlugin { + /** + * Executes this modifier. + * + * @param array $tagArgs + * @param wcf\system\template\TemplateEngine $tplObj + * @return string output + */ + public function execute($tagArgs, TemplateEngine $tplObj); +} diff --git a/wcfsetup/install/files/lib/system/template/plugin/IPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IPrefilterTemplatePlugin.class.php new file mode 100644 index 0000000000..051dda67db --- /dev/null +++ b/wcfsetup/install/files/lib/system/template/plugin/IPrefilterTemplatePlugin.class.php @@ -0,0 +1,24 @@ + + * @package com.woltlab.wcf + * @subpackage system.template + * @category Community Framework + */ +interface IPrefilterTemplatePlugin { + /** + * Executes this prefilter. + * + * @param string $templateName + * @param string $sourceContent + * @param wcf\system\template\TemplateScriptingCompiler $compiler + * @return string + */ + public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler); +} diff --git a/wcfsetup/install/files/lib/system/template/plugin/IconCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IconCompilerTemplatePlugin.class.php index 192c73f3a0..b016ccb23d 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/IconCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/IconCompilerTemplatePlugin.class.php @@ -1,6 +1,5 @@ * @package com.woltlab.wcf * @subpackage system.template.plugin