|
TYPO3 API
SVNRelease
|
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 * Child Node Access Facet. View Helpers should implement this interface if they 00025 * need access to the direct children in the Syntax Tree at rendering-time. 00026 * This might happen if you only want to selectively render a part of the syntax 00027 * tree depending on some conditions. 00028 * To render subnodes, you can fetch the RenderingContext via $this->getRenderingContext(). 00029 * 00030 * In most cases, you will not need this facet, and it is NO PUBLIC API! 00031 * Right now it is only used internally for conditions, so by subclassing Tx_Fluid_Core_ViewHelpers_AbstractConditionViewHelper, this should be all you need. 00032 * 00033 * See Tx_Fluid_ViewHelpers_IfViewHelper for an example how it is used. 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_ChildNodeAccessInterface { 00038 /** 00039 * Sets the direct child nodes of the current syntax tree node. 00040 * 00041 * @param array<Tx_Fluid_Core_Parser_SyntaxTree_AbstractNode> $childNodes 00042 * @return void 00043 */ 00044 public function setChildNodes(array $childNodes); 00045 } 00046 00047 ?>
1.8.0