TYPO3 API  SVNRelease
PostParseInterface.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*                                                                        *
00004  * This script belongs to the FLOW3 package "Fluid".                      *
00005  *                                                                        *
00006  * It is free software; you can redistribute it and/or modify it under    *
00007  * the terms of the GNU Lesser General Public License as published by the *
00008  * Free Software Foundation, either version 3 of the License, or (at your *
00009  * option) any later version.                                             *
00010  *                                                                        *
00011  * This script is distributed in the hope that it will be useful, but     *
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN-    *
00013  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser       *
00014  * General Public License for more details.                               *
00015  *                                                                        *
00016  * You should have received a copy of the GNU Lesser General Public       *
00017  * License along with the script.                                         *
00018  * If not, see http://www.gnu.org/licenses/lgpl.html                      *
00019  *                                                                        *
00020  * The TYPO3 project - inspiring people to share!                         *
00021  *                                                                        */
00022 
00023 /**
00024  * Post Parse Facet. Your view helper should implement this if you want a callback
00025  * to be called directly after the syntax tree node corresponding to this view
00026  * helper has been built.
00027  *
00028  * In the callback, it is possible to store some variables inside the
00029  * parseVariableContainer (which is different from the runtime variable container!).
00030  * This implicates that you usually have to adjust the Tx_Fluid_View_TemplateView
00031  * in case you implement this facet.
00032  *
00033  * Normally, this facet is not needed, except in really really rare cases.
00034  *
00035  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
00036  */
00037 interface Tx_Fluid_Core_ViewHelper_Facets_PostParseInterface {
00038 
00039     /**
00040      * Callback which is called directly after the corresponding syntax tree
00041      * node to this view helper has been built.
00042      * This is a parse-time callback, which does not change the rendering of a
00043      * view helper.
00044      *
00045      * You can store some data inside the variableContainer given here, which
00046      * can be used f.e. inside the TemplateView.
00047      *
00048      * @param Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode $syntaxTreeNode The current node in the syntax tree corresponding to this view helper.
00049      * @param array $viewHelperArguments View helper arguments as an array of SyntaxTrees. If you really need an argument, make sure to call $viewHelperArguments[$argName]->render(...)!
00050      * @param Tx_Fluid_Core_ViewHelper_TemplateVariableContainer $variableContainer Variable container you can use to pass on some variables to the view.
00051      * @return void
00052      */
00053     static public function postParseEvent(Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode $syntaxTreeNode, array $viewHelperArguments, Tx_Fluid_Core_ViewHelper_TemplateVariableContainer $variableContainer);
00054 
00055 }
00056 
00057 ?>