<?php
  include_once '../doc-typo3-funcs.php';
  $doxygen_vars = array(	"title" => "TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/tstemplate_analyzer/class.tx_tstemplateanalyzer.php Source File",
				"datetime" => "Sat Dec 2 19:22:34 2006",
				"date" => "2 Dec 2006",
				"doxygenversion" => "1.4.6",
				"projectname" => "TYPO3 4.0.1",
				"projectnumber" => "4.0.1"
			);
  get_header($doxygen_vars);
?>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_c8daf1ad746050abf985cc546c89e248.html">typo3_src-4.0.1</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_18071ae4545d8b3e0364d30c0659c74a.html">typo3</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_57bf1ed8249c1fd5b014486d01bcb27a.html">sysext</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_343efba489a7dda58759bda4dc68eb66.html">tstemplate_analyzer</a></div>
<h1>class.tx_tstemplateanalyzer.php</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 <span class="comment">/***************************************************************</span>
<a name="l00003"></a>00003 <span class="comment">*  Copyright notice</span>
<a name="l00004"></a>00004 <span class="comment">*</span>
<a name="l00005"></a>00005 <span class="comment">*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)</span>
<a name="l00006"></a>00006 <span class="comment">*  All rights reserved</span>
<a name="l00007"></a>00007 <span class="comment">*</span>
<a name="l00008"></a>00008 <span class="comment">*  This script is part of the TYPO3 project. The TYPO3 project is</span>
<a name="l00009"></a>00009 <span class="comment">*  free software; you can redistribute it and/or modify</span>
<a name="l00010"></a>00010 <span class="comment">*  it under the terms of the GNU General Public License as published by</span>
<a name="l00011"></a>00011 <span class="comment">*  the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00012"></a>00012 <span class="comment">*  (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment">*</span>
<a name="l00014"></a>00014 <span class="comment">*  The GNU General Public License can be found at</span>
<a name="l00015"></a>00015 <span class="comment">*  http://www.gnu.org/copyleft/gpl.html.</span>
<a name="l00016"></a>00016 <span class="comment">*  A copy is found in the textfile GPL.txt and important notices to the license</span>
<a name="l00017"></a>00017 <span class="comment">*  from the author is found in LICENSE.txt distributed with these scripts.</span>
<a name="l00018"></a>00018 <span class="comment">*</span>
<a name="l00019"></a>00019 <span class="comment">*</span>
<a name="l00020"></a>00020 <span class="comment">*  This script is distributed in the hope that it will be useful,</span>
<a name="l00021"></a>00021 <span class="comment">*  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00022"></a>00022 <span class="comment">*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00023"></a>00023 <span class="comment">*  GNU General Public License for more details.</span>
<a name="l00024"></a>00024 <span class="comment">*</span>
<a name="l00025"></a>00025 <span class="comment">*  This copyright notice MUST APPEAR in all copies of the script!</span>
<a name="l00026"></a>00026 <span class="comment">***************************************************************/</span>
<a name="l00031"></a>00031 require_once(PATH_t3lib.<span class="stringliteral">"class.t3lib_extobjbase.php"</span>);
<a name="l00032"></a>00032 
<a name="l00033"></a><a class="code" href="classtx__tstemplateanalyzer.html">00033</a> <span class="keyword">class </span><a class="code" href="classtx__tstemplateanalyzer.html">tx_tstemplateanalyzer</a> <span class="keyword">extends</span> <a class="code" href="classt3lib__extobjbase.html">t3lib_extobjbase</a> {
<a name="l00034"></a><a class="code" href="classtx__tstemplateanalyzer.html#dc37248200172a7fce9aa0fd664a8361">00034</a>         function <a class="code" href="classtx__tstemplateanalyzer.html#dc37248200172a7fce9aa0fd664a8361">modMenu</a>()      {
<a name="l00035"></a>00035                 global $LANG;
<a name="l00036"></a>00036 
<a name="l00037"></a>00037                 <span class="keywordflow">return</span> Array (
<a name="l00038"></a>00038                         <span class="stringliteral">"ts_analyzer_checkSetup"</span> =&gt; <span class="stringliteral">""</span>,
<a name="l00039"></a>00039                         <span class="stringliteral">"ts_analyzer_checkConst"</span> =&gt; <span class="stringliteral">""</span>,
<a name="l00040"></a>00040                         <span class="stringliteral">"ts_analyzer_checkLinenum"</span> =&gt; <span class="stringliteral">""</span>,
<a name="l00041"></a>00041                         <span class="stringliteral">"ts_analyzer_checkComments"</span> =&gt; <span class="stringliteral">""</span>,
<a name="l00042"></a>00042                         <span class="stringliteral">"ts_analyzer_checkCrop"</span> =&gt; <span class="stringliteral">""</span>,
<a name="l00043"></a>00043                         <span class="stringliteral">"ts_analyzer_checkSyntax"</span> =&gt; <span class="stringliteral">""</span>,
<a name="l00044"></a>00044                         <span class="stringliteral">"ts_analyzer_checkSyntaxBlockmode"</span> =&gt; <span class="stringliteral">""</span>,
<a name="l00045"></a>00045                 );
<a name="l00046"></a>00046         }
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="classtx__tstemplateanalyzer.html#694b6631e24d1002bb40960d24ddf5d9">00048</a>         function <a class="code" href="classtx__tstemplateanalyzer.html#694b6631e24d1002bb40960d24ddf5d9">initialize_editor</a>($pageId,$template_uid=0)     {
<a name="l00049"></a>00049                         <span class="comment">// Initializes the module. Done in this function because we may need to re-initialize if data is submitted!</span>
<a name="l00050"></a>00050                 global $tmpl,$tplRow,$theConstants,$rootLine;
<a name="l00051"></a>00051 
<a name="l00052"></a>00052                 $tmpl = <a class="code" href="classt3lib__div.html#b47f8a8e8be44b79a0b8064dcd427bc1">t3lib_div::makeInstance</a>(<span class="stringliteral">"t3lib_tsparser_ext"</span>);  <span class="comment">// Defined global here!</span>
<a name="l00053"></a>00053                 $tmpl-&gt;tt_track = 0;    <span class="comment">// Do not log time-performance information</span>
<a name="l00054"></a>00054                 $tmpl-&gt;init();
<a name="l00055"></a>00055 
<a name="l00056"></a>00056                         <span class="comment">// Gets the rootLine</span>
<a name="l00057"></a>00057                 $sys_page = <a class="code" href="classt3lib__div.html#b47f8a8e8be44b79a0b8064dcd427bc1">t3lib_div::makeInstance</a>(<span class="stringliteral">"t3lib_pageSelect"</span>);
<a name="l00058"></a>00058                 $rootLine = $sys_page-&gt;getRootLine($pageId);
<a name="l00059"></a>00059                 $tmpl-&gt;runThroughTemplates($rootLine,$template_uid);    <span class="comment">// This generates the constants/config + hierarchy info for the template.</span>
<a name="l00060"></a>00060 
<a name="l00061"></a>00061                 $tplRow = $tmpl-&gt;ext_getFirstTemplate($pageId,$template_uid);   <span class="comment">// Get the row of the first VISIBLE template of the page. whereclause like the frontend.</span>
<a name="l00062"></a>00062                 <span class="keywordflow">if</span> (is_array($tplRow))  {       <span class="comment">// IF there was a template...</span>
<a name="l00063"></a>00063                         <span class="keywordflow">return</span> 1;
<a name="l00064"></a>00064                 }
<a name="l00065"></a>00065         }
<a name="l00066"></a><a class="code" href="classtx__tstemplateanalyzer.html#26a22bfbd2a6bf7638b3c48cf29362dd">00066</a>         function <a class="code" href="classtx__tstemplateanalyzer.html#26a22bfbd2a6bf7638b3c48cf29362dd">main</a>() {
<a name="l00067"></a>00067                         <span class="comment">// Initializes the module. Done in this function because we may need to re-initialize if data is submitted!</span>
<a name="l00068"></a>00068                 global $SOBE,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
<a name="l00069"></a>00069                 global $tmpl,$tplRow,$theConstants,$rootLine;
<a name="l00070"></a>00070 
<a name="l00071"></a>00071                 <span class="comment">// **************************</span>
<a name="l00072"></a>00072                 <span class="comment">// Checking for more than one template an if, set a menu...</span>
<a name="l00073"></a>00073                 <span class="comment">// **************************</span>
<a name="l00074"></a>00074                 $manyTemplatesMenu = $this-&gt;pObj-&gt;templateMenu();
<a name="l00075"></a>00075                 $template_uid = 0;
<a name="l00076"></a>00076                 <span class="keywordflow">if</span> ($manyTemplatesMenu) {
<a name="l00077"></a>00077                         $template_uid = $this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"templatesOnPage"</span>];
<a name="l00078"></a>00078                 }
<a name="l00079"></a>00079 
<a name="l00080"></a>00080                 <span class="comment">// **************************</span>
<a name="l00081"></a>00081                 <span class="comment">// Main</span>
<a name="l00082"></a>00082                 <span class="comment">// **************************</span>
<a name="l00083"></a>00083 
<a name="l00084"></a>00084                 <span class="comment">// BUGBUG: Should we check if the uset may at all read and write template-records???</span>
<a name="l00085"></a>00085                 $existTemplate = $this-&gt;<a class="code" href="classtx__tstemplateanalyzer.html#694b6631e24d1002bb40960d24ddf5d9">initialize_editor</a>($this-&gt;pObj-&gt;id,$template_uid);               <span class="comment">// initialize</span>
<a name="l00086"></a>00086                 <span class="keywordflow">if</span> ($existTemplate)     {
<a name="l00087"></a>00087                         $theOutput.=$this-&gt;pObj-&gt;doc-&gt;divider(5);
<a name="l00088"></a>00088                         $theOutput.=$this-&gt;pObj-&gt;doc-&gt;section(<span class="stringliteral">"Current template:"</span>,'&lt;img src=<span class="stringliteral">"'.$BACK_PATH.t3lib_iconWorks::getIcon("</span>sys_template<span class="stringliteral">",$tplRow).'"</span> width=18 height=16 align=top&gt;&lt;b&gt;'.$this-&gt;pObj-&gt;linkWrapTemplateTitle($tplRow[<span class="stringliteral">"title"</span>]).'&lt;/b&gt;'.htmlspecialchars(trim($tplRow[<span class="stringliteral">"sitetitle"</span>])?' - ('.$tplRow[<span class="stringliteral">"sitetitle"</span>].<span class="charliteral">')'</span>:''));
<a name="l00089"></a>00089                 }
<a name="l00090"></a>00090                 <span class="keywordflow">if</span> ($manyTemplatesMenu) {
<a name="l00091"></a>00091                         $theOutput.=$this-&gt;pObj-&gt;doc-&gt;section(<span class="stringliteral">""</span>,$manyTemplatesMenu);
<a name="l00092"></a>00092                 }
<a name="l00093"></a>00093 
<a name="l00094"></a>00094                 <span class="comment">//      debug($tmpl-&gt;hierarchyInfo);</span>
<a name="l00095"></a>00095 
<a name="l00096"></a>00096                 $tmpl-&gt;clearList_const_temp = array_flip($tmpl-&gt;clearList_const);
<a name="l00097"></a>00097                 $tmpl-&gt;clearList_setup_temp = array_flip($tmpl-&gt;clearList_setup);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099                 $pointer = count($tmpl-&gt;hierarchyInfo);
<a name="l00100"></a>00100                 $tmpl-&gt;hierarchyInfoArr = $tmpl-&gt;ext_process_hierarchyInfo(array(), $pointer);
<a name="l00101"></a>00101                 $tmpl-&gt;procesIncludes();
<a name="l00102"></a>00102 
<a name="l00103"></a>00103                 $hierarArr = array();
<a name="l00104"></a>00104                 $head= '&lt;tr&gt;';
<a name="l00105"></a>00105                 $head.= '&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;Title&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;';
<a name="l00106"></a>00106                 $head.= '&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;Rootlevel&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;';
<a name="l00107"></a>00107                 $head.= '&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;C. Setup&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;';
<a name="l00108"></a>00108                 $head.= '&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;C. Const&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;';
<a name="l00109"></a>00109                 $head.= '&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;PID/RL&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;';
<a name="l00110"></a>00110                 $head.= '&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;NL&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/td&gt;';
<a name="l00111"></a>00111                 $head.= '&lt;/tr&gt;';
<a name="l00112"></a>00112                 $hierar = implode(array_reverse($tmpl-&gt;ext_getTemplateHierarchyArr($tmpl-&gt;hierarchyInfoArr, <span class="stringliteral">""</span>,array(),1)),<span class="stringliteral">""</span>);
<a name="l00113"></a>00113                 $hierar= '&lt;table border=0 cellpadding=0 cellspacing=0&gt;'.$head.$hierar.'&lt;/table&gt;';
<a name="l00114"></a>00114 
<a name="l00115"></a>00115                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;spacer(5);
<a name="l00116"></a>00116                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;section(<span class="stringliteral">"Template hierarchy:"</span>,$hierar,0,1);
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 
<a name="l00119"></a>00119                         <span class="comment">// Output constants</span>
<a name="l00120"></a>00120                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;spacer(25);
<a name="l00121"></a>00121                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;divider(0);
<a name="l00122"></a>00122                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;section(<span class="stringliteral">""</span>,
<a name="l00123"></a>00123                         <span class="stringliteral">"Linenumbers"</span>.<a class="code" href="classt3lib__BEfunc.html#58bc4381588b3fb7bb78d007e53f8451">t3lib_BEfunc::getFuncCheck</a>($this-&gt;pObj-&gt;id,<span class="stringliteral">"SET[ts_analyzer_checkLinenum]"</span>,$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkLinenum"</span>]).
<a name="l00124"></a>00124                         <span class="stringliteral">"&amp;nbsp;&amp;nbsp;&amp;nbsp;Syntax HL"</span>.t3lib_BEfunc::getFuncCheck($this-&gt;pObj-&gt;id,<span class="stringliteral">"SET[ts_analyzer_checkSyntax]"</span>,$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSyntax"</span>]).
<a name="l00125"></a>00125                         (!$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSyntax"</span>] ?
<a name="l00126"></a>00126                                 <span class="stringliteral">"&amp;nbsp;&amp;nbsp;&amp;nbsp;Comments"</span>.t3lib_BEfunc::getFuncCheck($this-&gt;pObj-&gt;id,<span class="stringliteral">"SET[ts_analyzer_checkComments]"</span>,$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkComments"</span>]).
<a name="l00127"></a>00127                                 <span class="stringliteral">"&amp;nbsp;&amp;nbsp;&amp;nbsp;Crop lines"</span>.t3lib_BEfunc::getFuncCheck($this-&gt;pObj-&gt;id,<span class="stringliteral">"SET[ts_analyzer_checkCrop]"</span>,$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkCrop"</span>])
<a name="l00128"></a>00128                                 :
<a name="l00129"></a>00129                                 <span class="stringliteral">"&amp;nbsp;&amp;nbsp;&amp;nbsp;Block mode"</span>.t3lib_BEfunc::getFuncCheck($this-&gt;pObj-&gt;id,<span class="stringliteral">"SET[ts_analyzer_checkSyntaxBlockmode]"</span>,$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSyntaxBlockmode"</span>])
<a name="l00130"></a>00130                         )
<a name="l00131"></a>00131                 );
<a name="l00132"></a>00132                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;divider(2);
<a name="l00133"></a>00133                 <span class="comment">//$theOutput.=$this-&gt;pObj-&gt;doc-&gt;section("Constants:",t3lib_BEfunc::getFuncCheck($this-&gt;pObj-&gt;id,"SET[ts_analyzer_checkConst]",$this-&gt;pObj-&gt;MOD_SETTINGS["ts_analyzer_checkConst"]).fw("Enable"));</span>
<a name="l00134"></a>00134                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;section(<span class="stringliteral">"Constants:"</span>,<span class="stringliteral">""</span>,0,1);
<a name="l00135"></a>00135                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;sectionEnd();
<a name="l00136"></a>00136                 <span class="keywordflow">if</span> (1==1 || $this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkConst"</span>])        {
<a name="l00137"></a>00137                         $theOutput.='
<a name="l00138"></a>00138                                 &lt;table border=0 cellpadding=1 cellspacing=0&gt;
<a name="l00139"></a>00139                         ';
<a name="l00140"></a>00140                         $tmpl-&gt;ext_lineNumberOffset=-2; <span class="comment">// Don't know why -2 and not 0... :-) But works.</span>
<a name="l00141"></a>00141                         $tmpl-&gt;ext_lineNumberOffset_mode=<span class="stringliteral">"const"</span>;
<a name="l00142"></a>00142                         $tmpl-&gt;ext_lineNumberOffset+=count(explode(chr(10),<a class="code" href="classt3lib__TSparser.html#3e2b7b65c9ab164e0e9700b683735fd0">t3lib_TSparser::checkIncludeLines</a>(<span class="stringliteral">""</span>.$GLOBALS[<span class="stringliteral">"TYPO3_CONF_VARS"</span>][<span class="stringliteral">"FE"</span>][<span class="stringliteral">"defaultTypoScript_constants"</span>])))+1;
<a name="l00143"></a>00143 
<a name="l00144"></a>00144                         reset($tmpl-&gt;constants);
<a name="l00145"></a>00145                         reset($tmpl-&gt;clearList_const);
<a name="l00146"></a>00146                         <span class="keywordflow">while</span>(list($key,$val)=each($tmpl-&gt;constants))   {
<a name="l00147"></a>00147                                 $cVal = current($tmpl-&gt;clearList_const);
<a name="l00148"></a>00148                                 <span class="keywordflow">if</span> ($cVal==<a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('<span class="keyword">template</span>') || <a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('<span class="keyword">template</span>')==<span class="stringliteral">"all"</span>)   {
<a name="l00149"></a>00149                                         $theOutput.='
<a name="l00150"></a>00150                                                 &lt;tr&gt;
<a name="l00151"></a>00151                                                         &lt;td&gt;&lt;img src=clear.gif width=3 height=1&gt;&lt;/td&gt;&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;'.$tmpl-&gt;templateTitles[$cVal].'&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
<a name="l00152"></a>00152                                                 &lt;tr&gt;
<a name="l00153"></a>00153                                                         &lt;td&gt;&lt;img src=clear.gif width=3 height=1&gt;&lt;/td&gt;
<a name="l00154"></a>00154                                                         &lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;table border=0 cellpadding=0 cellspacing=0 <span class="keyword">class</span>=<span class="stringliteral">"bgColor4"</span> width=<span class="stringliteral">"100%"</span>&gt;&lt;tr&gt;&lt;td nowrap&gt;'.$tmpl-&gt;ext_outputTS(array($val),$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkLinenum"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkComments"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkCrop"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSyntax"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSyntaxBlockmode"</span>]).'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
<a name="l00155"></a>00155                                                         &lt;/td&gt;
<a name="l00156"></a>00156                                                 &lt;/tr&gt;
<a name="l00157"></a>00157                                         ';
<a name="l00158"></a>00158                                         <span class="keywordflow">if</span> (<a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('<span class="keyword">template</span>')!=<span class="stringliteral">"all"</span>)         <span class="keywordflow">break</span>;
<a name="l00159"></a>00159                                 }
<a name="l00160"></a>00160                                 $tmpl-&gt;ext_lineNumberOffset+=count(explode(chr(10),$val))+1;
<a name="l00161"></a>00161                                 next($tmpl-&gt;clearList_const);
<a name="l00162"></a>00162                         }
<a name="l00163"></a>00163                         $theOutput.='
<a name="l00164"></a>00164                                 &lt;/table&gt;
<a name="l00165"></a>00165                         ';
<a name="l00166"></a>00166                 }
<a name="l00167"></a>00167 
<a name="l00168"></a>00168                         <span class="comment">// Output setup</span>
<a name="l00169"></a>00169                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;spacer(15);
<a name="l00170"></a>00170                 <span class="comment">//$theOutput.=$this-&gt;pObj-&gt;doc-&gt;section("SETUP:",t3lib_BEfunc::getFuncCheck($this-&gt;pObj-&gt;id,"SET[ts_analyzer_checkSetup]",$this-&gt;pObj-&gt;MOD_SETTINGS["ts_analyzer_checkSetup"]).fw("Enable"));</span>
<a name="l00171"></a>00171                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;section(<span class="stringliteral">"SETUP:"</span>,<span class="stringliteral">""</span>,0,1);
<a name="l00172"></a>00172                 $theOutput.=$this-&gt;pObj-&gt;doc-&gt;sectionEnd();
<a name="l00173"></a>00173                 <span class="keywordflow">if</span> (1==1 || $this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSetup"</span>])        {
<a name="l00174"></a>00174                         $theOutput.='
<a name="l00175"></a>00175                                 &lt;table border=0 cellpadding=1 cellspacing=0&gt;
<a name="l00176"></a>00176                         ';
<a name="l00177"></a>00177                         $tmpl-&gt;ext_lineNumberOffset=0;
<a name="l00178"></a>00178                         $tmpl-&gt;ext_lineNumberOffset_mode=<span class="stringliteral">"setup"</span>;
<a name="l00179"></a>00179                         $tmpl-&gt;ext_lineNumberOffset+=count(explode(chr(10),<a class="code" href="classt3lib__TSparser.html#3e2b7b65c9ab164e0e9700b683735fd0">t3lib_TSparser::checkIncludeLines</a>(<span class="stringliteral">""</span>.$GLOBALS[<span class="stringliteral">"TYPO3_CONF_VARS"</span>][<span class="stringliteral">"FE"</span>][<span class="stringliteral">"defaultTypoScript_setup"</span>])))+1;
<a name="l00180"></a>00180 
<a name="l00181"></a>00181                         reset($tmpl-&gt;config);
<a name="l00182"></a>00182                         reset($tmpl-&gt;clearList_setup);
<a name="l00183"></a>00183                         <span class="keywordflow">while</span>(list($key,$val)=each($tmpl-&gt;config))      {
<a name="l00184"></a>00184                                 <span class="keywordflow">if</span> (current($tmpl-&gt;clearList_setup)==<a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('<span class="keyword">template</span>') || <a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('<span class="keyword">template</span>')==<span class="stringliteral">"all"</span>) {
<a name="l00185"></a>00185                                         $theOutput.='
<a name="l00186"></a>00186                                                 &lt;tr&gt;
<a name="l00187"></a>00187                                                         &lt;td&gt;&lt;img src=clear.gif width=3 height=1&gt;&lt;/td&gt;&lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;b&gt;'.$tmpl-&gt;templateTitles[current($tmpl-&gt;clearList_setup)].'&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
<a name="l00188"></a>00188                                                 &lt;tr&gt;
<a name="l00189"></a>00189                                                         &lt;td&gt;&lt;img src=clear.gif width=3 height=1&gt;&lt;/td&gt;
<a name="l00190"></a>00190                                                         &lt;td <span class="keyword">class</span>=<span class="stringliteral">"bgColor2"</span>&gt;&lt;table border=0 cellpadding=0 cellspacing=0 <span class="keyword">class</span>=<span class="stringliteral">"bgColor4"</span> width=<span class="stringliteral">"100%"</span>&gt;&lt;tr&gt;&lt;td nowrap&gt;'.$tmpl-&gt;ext_outputTS(array($val),$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkLinenum"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkComments"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkCrop"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSyntax"</span>],$this-&gt;pObj-&gt;MOD_SETTINGS[<span class="stringliteral">"ts_analyzer_checkSyntaxBlockmode"</span>]).'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
<a name="l00191"></a>00191                                                         &lt;/td&gt;
<a name="l00192"></a>00192                                                 &lt;/tr&gt;
<a name="l00193"></a>00193                                         ';
<a name="l00194"></a>00194                                         <span class="keywordflow">if</span> (<a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('<span class="keyword">template</span>')!=<span class="stringliteral">"all"</span>)         <span class="keywordflow">break</span>;
<a name="l00195"></a>00195                                 }
<a name="l00196"></a>00196                                 $tmpl-&gt;ext_lineNumberOffset+=count(explode(chr(10),$val))+1;
<a name="l00197"></a>00197                                 next($tmpl-&gt;clearList_setup);
<a name="l00198"></a>00198                         }
<a name="l00199"></a>00199                         $theOutput.='
<a name="l00200"></a>00200                                 &lt;/table&gt;
<a name="l00201"></a>00201                         ';
<a name="l00202"></a>00202                 }
<a name="l00203"></a>00203                 <span class="keywordflow">return</span> $theOutput;
<a name="l00204"></a>00204         }
<a name="l00205"></a>00205 }
<a name="l00206"></a>00206 
<a name="l00207"></a>00207 <span class="keywordflow">if</span> (defined(<span class="stringliteral">"TYPO3_MODE"</span>) &amp;&amp; $TYPO3_CONF_VARS[TYPO3_MODE][<span class="stringliteral">"XCLASS"</span>][<span class="stringliteral">"ext/tstemplate_analyzer/class.tx_tstemplateanalyzer.php"</span>]) {
<a name="l00208"></a>00208         include_once($TYPO3_CONF_VARS[TYPO3_MODE][<span class="stringliteral">"XCLASS"</span>][<span class="stringliteral">"ext/tstemplate_analyzer/class.tx_tstemplateanalyzer.php"</span>]);
<a name="l00209"></a>00209 }
<a name="l00210"></a>00210 ?&gt;
</pre></div><?php
  include_once '../doc-typo3-funcs.php';
  get_footer();
?>