|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /* * 00003 * This script belongs to the FLOW3 package "Fluid". * 00004 * * 00005 * It is free software; you can redistribute it and/or modify it under * 00006 * the terms of the GNU Lesser General Public License as published by the * 00007 * Free Software Foundation, either version 3 of the License, or (at your * 00008 * option) any later version. * 00009 * * 00010 * This script is distributed in the hope that it will be useful, but * 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * 00012 * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * 00013 * General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU Lesser General Public * 00016 * License along with the script. * 00017 * If not, see http://www.gnu.org/licenses/lgpl.html * 00018 * * 00019 * The TYPO3 project - inspiring people to share! * 00020 * */ 00021 00022 /** 00023 * The abstract base class for all backend view helpers 00024 * Note: backend view helpers are still experimental! 00025 * 00026 * @version $Id: 00027 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later 00028 * 00029 * @author Steffen Kamper <info@sk-typo3.de> 00030 * @author Bastian Waidelich <bastian@typo3.org> 00031 * @license http://www.gnu.org/copyleft/gpl.html 00032 */ 00033 abstract class Tx_Fluid_ViewHelpers_Be_AbstractBackendViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper { 00034 00035 /** 00036 * Gets instance of template if exists or create a new one. 00037 * Saves instance in viewHelperVariableContainer 00038 * 00039 * @return template $doc 00040 */ 00041 public function getDocInstance() { 00042 if (!isset($GLOBALS['SOBE']->doc)) { 00043 $GLOBALS['SOBE']->doc = t3lib_div::makeInstance('template'); 00044 $GLOBALS['SOBE']->doc->backPath = $GLOBALS['BACK_PATH']; 00045 } 00046 return $GLOBALS['SOBE']->doc; 00047 } 00048 00049 } 00050 ?>
1.8.0