Location: PHPKode > scripts > Block template > block-template/classblock__template.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Block Template: Référence de la classe block_template</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="annotated.html">Liste&nbsp;des&nbsp;classes</a> | <a class="qindex" href="dirs.html">Répertoires</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="functions.html">Membres&nbsp;de&nbsp;classe</a> | <a class="qindex" href="pages.html">Pages&nbsp;associées</a></div>

<h1>Référence de la classe block_template</h1><a href="classblock__template-members.html">Liste de tous les membres</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a0">block_template</a> ($page_title, $template_name='default', $template_dir='template')</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a1">output</a> ($vars=null, $return=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a2">set_safe_output</a> ($set=TRUE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a3">parse_template</a> ($template_file=null, $overwrite=TRUE, $halt_on_error=TRUE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a4">set_title</a> ($title)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a5">add_favicon</a> ($favicon)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a6">add_css</a> ($css, $title=null, $alternate=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a7">box</a> ($content, $title='', $boxname='')</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a8">add_body_param</a> ($paramname, $paramvalue, $overwrite=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a9">register_callback</a> ($signame, $callback, $tagtype=3, $sectioname=null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a10">unregister_callback</a> ($cb_handler)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a11">templatize</a> ($sectionvars, $sectioname, $section_optional=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a12">templatize_string</a> ($string, $sectionvars=null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a13">get_section_vars</a> ($sectioname, $nocache=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a14">get_string_vars</a> ($string)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a15">get_sections</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a16">get_sections_select</a> ($name='template_section', $selected=null, $autoselect=TRUE, $id=null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a17">get_section</a> ($sectioname)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a18">section_exists</a> ($sectioname, $returnname=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a19">choose_section</a> ($section_list)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a20">add_section</a> ($sectioname, $section_content, $overwrite=FALSE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a21">append_section</a> ($sectioname, $section_content, $autocreate=TRUE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a22">prepend_section</a> ($sectioname, $section_content, $autocreate=TRUE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a23">_header</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a24">_body</a> ($bodyvars=null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a25">highlight_str</a> ($str, $outfile=null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a26">highlight_section</a> ($sectioname, $outfile=null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#a27">highlight_template_file</a> ($file=null, $outfile=null)</td></tr>

<tr><td colspan="2"><br><h2>Attributs publics</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o0">$content</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o1">$header</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o2">$footer</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o3">$favicon</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o4">$css</a> = array()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o5">$js</a> = array()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o6">$_css</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#o7">$_js</a></td></tr>

<tr><td colspan="2"><br><h2>Fonctions membres privées</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#d0">_safe_output</a> ($<a class="el" href="classblock__template.html">block_template</a>, $vars, $return)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#d1">_emit_signal</a> ($signame, $params=null, $tagname=null, $content=null, $section=null)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#d2">_templatize</a> ($section, $sectionvars, $sectioname=null, $section_optional=FALSE)</td></tr>

<tr><td colspan="2"><br><h2>Attributs privés</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__template.html#r0">$metas</a> = array()</td></tr>

</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
manage the HTML output. block_template is a template parser/renderer see the template sample for more info on the way the template work  2005-06-07 - now <a class="el" href="classblock__template.html#a9">register_callback()</a> will return a pointer<ul>
<li>add new method <a class="el" href="classblock__template.html#a10">unregister_callback()</a></li><li>new methods <a class="el" href="classblock__template.html#a25">highlight_str()</a> &amp; <a class="el" href="classblock__template.html#a27">highlight_template_file()</a>  2005-06-01 - add callback support on 'on-output' signal</li><li>output can return var or file</li><li>new set_safe_output method to protect block_template tags</li><li>bugfixes no more problem on file finishing on a sectioname (#sectioname)  2005-05-24 - add new <a class="el" href="classblock__template.html#a16">get_sections_select()</a> method  2005-05-18 - add comment line support (with #)</li><li>new method choose_section</li><li>bugfix to avoid infinite loop problem when including section into themselves  2005-04-29 - removed some unused properties and method regarding sitename and page_title clean some error notice  2005-04-12 - add_css now support alternate stylesheets and direct css rules inputs, idem for js  2005-03-14 - remove some deprecated methods (no more menu related methods)</li><li>replace some deprecated method by some more logical ones  2005-03-10 - *NEW callback support</li><li>tags can now be closed with a / or by a closing tag and = are replaced with @=  2005-02-27 - add the content-type meta tag support and betterify the meta management</li><li>add support for parameters in template tags ie: =tagname param='value'=%</li><li>menu entrys can now be passed as a full html by setting the URL to null </li></ul>

<p>
<hr><h2>Documentation des contructeurs et destructeur</h2>
<a class="anchor" name="a0" doxytag="block_template::block_template"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.<a class="el" href="classblock__template.html">block_template</a>           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>page_title</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>template_name</em> = <code>'default'</code>, </td>
        </tr>
        <tr>

          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>template_dir</em> = <code>'template'</code></td>
        </tr>
        <tr>

          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">

  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>$page_title </td></tr>

    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>$template_name (the directory containing the template must have the same name (case sensitive)) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>$template_dir directory containing templates subdirs </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<hr><h2>Documentation des fonctions membres</h2>

<a class="anchor" name="a24" doxytag="block_template::_body"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>._body           </td>
          <td class="md" valign="top">(&nbsp;</td>

          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>bodyvars</em> = <code>null</code>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Prepare the body content to output  Private <p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000002">À faire:</a></b></dt><dd>supprimer les variables logo et consorts </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="d1" doxytag="block_template::_emit_signal"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">

      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>._emit_signal           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>signame</em>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>params</em> = <code>null</code>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>tagname</em> = <code>null</code>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>content</em> = <code>null</code>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>section</em> = <code>null</code></td>

        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [private]</code></td>
        </tr>
      </table>

    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
le prototype de la fonction de rappelle sera function callback(block_template object,$section,$tagname,$params,$content)<p>
cette methode est utilisé par l'objet en interne afin de gerer les signaux <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$signame nom du signal emis (on-templatize,on-output); </td></tr>
  </table>
</dl>
<dl compact><dt><b>Voir également:</b></dt><dd><a class="el" href="classblock__template.html#d2">_templatize</a> <a class="el" href="classblock__template.html#a1">output</a> </dd></dl>

    </td>
  </tr>
</table>
<a class="anchor" name="a23" doxytag="block_template::_header"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>._header           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>

  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Prepare the header to output  Private     </td>

  </tr>
</table>
<a class="anchor" name="d0" doxytag="block_template::_safe_output"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>._safe_output           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>block_template</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>vars</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>

          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>return</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [private]</code></td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
internally used as callback to protect eventual block_template tags in the output <dl compact><dt><b>Voir également:</b></dt><dd><a class="el" href="classblock__template.html#a2">set_safe_output</a> </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="d2" doxytag="block_template::_templatize"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>

    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>._templatize           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>section</em>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectionvars</em>, </td>
        </tr>

        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em> = <code>null</code>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>section_optional</em> = <code>FALSE</code></td>

        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [private]</code></td>
        </tr>
      </table>

    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
methode interne pour les methodes 'templatize' <dl compact><dt><b>Voir également:</b></dt><dd><a class="el" href="classblock__template.html#a11">templatize</a>,<a class="el" href="classblock__template.html#a12">templatize_string</a></dd></dl>
<dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$section contenu de la section (ou chaine si on a appeller templatize_string) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$sectionvars variables en provenance du programmeur </td></tr>

    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname le nom de la section sur laquelle on travaille </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$section_optional flag pour le traitement des sections incluse (par un tag) </td></tr>
  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>string </dd></dl>
    </td>
  </tr>

</table>
<a class="anchor" name="a8" doxytag="block_template::add_body_param"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.add_body_param           </td>
          <td class="md" valign="top">(&nbsp;</td>

          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>paramname</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>

          <td class="mdname" nowrap> <em>paramvalue</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>overwrite</em> = <code>FALSE</code></td>

        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>

  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
add some attribute to the body tag, an onload event for example <dl compact><dt><b>Paramètres:</b></dt><dd>

  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$paramname name of the attribute </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mixed</em>&nbsp;</td><td>$paramvalue value of the attribute </td></tr>
  </table>
</dl>
    </td>
  </tr>

</table>
<a class="anchor" name="a6" doxytag="block_template::add_css"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.add_css           </td>
          <td class="md" valign="top">(&nbsp;</td>

          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>css</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>

          <td class="mdname" nowrap> <em>title</em> = <code>null</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>

          <td class="mdname" nowrap> <em>alternate</em> = <code>FALSE</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
add an external css stylesheet or css header definition <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$css path to css file or css rules </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$title optionnal title for the stylesheet </td></tr>

    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$alternate set to true for alternate stylesheet </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a5" doxytag="block_template::add_favicon"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">

      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.add_favicon           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>favicon</em>          </td>

          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
add a favicon to the page     </td>
  </tr>
</table>
<a class="anchor" name="a20" doxytag="block_template::add_section"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">

  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.add_section           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>

          <td class="mdname" nowrap> <em>sectioname</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>section_content</em>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>overwrite</em> = <code>FALSE</code></td>

        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>

  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
permet l'ajout dynamique de section par le programmeur <dl compact><dt><b>Paramètres:</b></dt><dd>

  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname le nom de la section </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$section_content le contenu de la section </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$overwrite si passe a TRUE alors ecrasera une eventuelle section existante au lieu de renvoyer FALSE </td></tr>
  </table>
</dl>

    </td>
  </tr>
</table>
<a class="anchor" name="a21" doxytag="block_template::append_section"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.append_section           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>section_content</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>

          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>autocreate</em> = <code>TRUE</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>

          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;

    </td>
    <td>

<p>
ajoute du contenu a la fin d'une section <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname le nom de la section </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$section_content contenu a ajouter </td></tr>

    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$autocreate TRUE par defaut, si FALSE ne creera pas la section si elle n'existe pas </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a7" doxytag="block_template::box"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">

      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.box           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>content</em>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>title</em> = <code>''</code>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>boxname</em> = <code>''</code></td>

        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>

  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
return a 'BOX_*' section in a more common way BOX_* sections are section containings 2 vars boxtitle and boxcontent this function is the same as calling <a class="el" href="classblock__template.html#a11">block_template.templatize</a>(array('boxtitle'=&gt;'title','boxcontent'=&gt;'content'),'BOX_NAME'); <dl compact><dt><b>Paramètres:</b></dt><dd>

  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$content </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$title may be ommit </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$boxname the BOX_ section to use </td></tr>
  </table>
</dl>

    </td>
  </tr>
</table>
<a class="anchor" name="a19" doxytag="block_template::choose_section"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.choose_section           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>section_list</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
prend une liste de nom de section sous forme de tableau ou de chaine et retourne la premiere qui est trouvé. cette fonction peut etre utile si votre application veut permettre l'utilisation de section par defaut au cas ou le template ne fournirais pas la section données par exemple: block_template-&gt;choose_section('SEC1|SEC2|SEC3) testera successivement les sections passé en arguments et retournera la premiere section existante. <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mixed</em>&nbsp;</td><td>$section_list string('SEC1|SEC2...') ou array(SEC1,SEC2..) </td></tr>
  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>string first section name matching an existing section or '' if no section match and false on input error </dd></dl>

    </td>
  </tr>
</table>
<a class="anchor" name="a17" doxytag="block_template::get_section"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.get_section           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>sectioname</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
retourne le contenue d'une section de template tel quel sans le parser <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname </td></tr>
  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>string </dd></dl>

    </td>
  </tr>
</table>
<a class="anchor" name="a13" doxytag="block_template::get_section_vars"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.get_section_vars           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>nocache</em> = <code>FALSE</code></td>
        </tr>
        <tr>
          <td class="md"></td>

          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
renvoie les variables attendus par la section $sectioname du template <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname le nom de la section </td></tr>

    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$nocache par defaut vaut false ainsi les resultats sont gardé en cache de facon a accellerer les futures requetes. il peut s'averer utile de ne pas caché ses resultats (pour une section appeller une seule fois par exemple) auquel cas il suffit de passer cette option a TRUE </td></tr>
  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>array or FALSE if none the array will contain arrays(tagname,params,str_replace,is_optionnal[,content]) for complex vars, where sectionvarname is equal to the sting return for single vars, params is an array of parameter array('paramname or int'=&gt;'value',...) and finally the original_tag which is the complete tag as it is in the template (will be use for string replacement) </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a15" doxytag="block_template::get_sections"></a><p>

<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.get_sections           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>

          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
renvoie un tableau contenant le nom des sections disponibles dans le template <dl compact><dt><b>Renvoie:</b></dt><dd>array or FALSE si pas de sections </dd></dl>
    </td>
  </tr>

</table>
<a class="anchor" name="a16" doxytag="block_template::get_sections_select"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.get_sections_select           </td>
          <td class="md" valign="top">(&nbsp;</td>

          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>name</em> = <code>'template_section'</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>selected</em> = <code>null</code>, </td>
        </tr>
        <tr>

          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>autoselect</em> = <code>TRUE</code>, </td>
        </tr>

        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>id</em> = <code>null</code></td>
        </tr>

        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>

</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
retourne le code html d'un element select contenant la liste des sections du template. <dl compact><dt><b>Paramètres:</b></dt><dd>

  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$name nom de l'element de formulaire (valeur de l'attribut name de la balise select) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$selected nom de la section preselectionnée (si null alors essaie de trouver une occurence dans _POST ou _GET) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$autoselect si oui alors ajoute un submit onchange </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$id attribut id optionnel de la balise select. </td></tr>

  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>string HTML code </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a14" doxytag="block_template::get_string_vars"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">

      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.get_string_vars           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>string</em>          </td>

          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
renvoie les variables contenue dans la chaine $string comme si c'était une section de template <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>string </td></tr>

  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a26" doxytag="block_template::highlight_section"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>

          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.highlight_section           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em>, </td>
        </tr>

        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>outfile</em> = <code>null</code></td>
        </tr>

        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>

</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>

</table>
<a class="anchor" name="a25" doxytag="block_template::highlight_str"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.highlight_str           </td>
          <td class="md" valign="top">(&nbsp;</td>

          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>str</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>

          <td class="mdname" nowrap> <em>outfile</em> = <code>null</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
retourne le code de la chaine comme un code source de template avec coloration syntaxique au format html <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>$str chaine de caractere a colorer </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>$outfile nom de fichier de sortie optionnel, si fournis alors la sortie sera sauvegarder dans un fichier. </td></tr>

  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a27" doxytag="block_template::highlight_template_file"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>

          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.highlight_template_file           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>file</em> = <code>null</code>, </td>

        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>outfile</em> = <code>null</code></td>

        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>

  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>

  </tr>
</table>
<a class="anchor" name="a1" doxytag="block_template::output"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.output           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>vars</em> = <code>null</code>, </td>
        </tr>
        <tr>

          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>return</em> = <code>FALSE</code></td>
        </tr>
        <tr>

          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">

  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
send the rendered html code to STD-OUT (browser) cette fonction emetra le signal on-output voici prototype de rappelle callback(&amp;$block_template,$vars,$return) si la fonction de rapelle renvoie autrechose que FALSE alors la sortie sera remplacé par la valeur retourné par la fonction de rappelle <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">

    <tr><td valign="top"></td><td valign="top"><em>array</em>&nbsp;</td><td>$vars same as setcionvars in *templatize* methods </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mixed</em>&nbsp;</td><td>$return FALSE as default it will print the output to STDOUT as always you can set it to true to get the output page return as a function returned value and at last but not least you can pass a filename to save the document to. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>void (if $return=FALSE)| string HTML code of the page (if $return=TRUE) | bool (if $return='/path/to/filesave'); </dd></dl>
    </td>
  </tr>

</table>
<a class="anchor" name="a3" doxytag="block_template::parse_template"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.parse_template           </td>
          <td class="md" valign="top">(&nbsp;</td>

          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>template_file</em> = <code>null</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>overwrite</em> = <code>TRUE</code>, </td>
        </tr>
        <tr>

          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>halt_on_error</em> = <code>TRUE</code></td>
        </tr>
        <tr>

          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">

  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
parse a template file <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">

    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$template_file filepath to the template file </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$overwrite will overwrite any previously loaded sections if a new one have the same name </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$halt_on_error will stop the script execution on error else will return FALSE </td></tr>
  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>bool </dd></dl>

<dl compact><dt><b><a class="el" href="todo.html#_todo000001">À faire:</a></b></dt><dd>add dynamic include support </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a22" doxytag="block_template::prepend_section"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>

          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.prepend_section           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em>, </td>
        </tr>

        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>section_content</em>, </td>
        </tr>
        <tr>

          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>autocreate</em> = <code>TRUE</code></td>
        </tr>
        <tr>

          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">

  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
ajoute du contenu au debut d'une section <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">

    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname le nom de la section </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$section_content contenu a ajouter </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$autocreate TRUE par defaut, si FALSE ne creera pas la section si elle n'existe pas </td></tr>
  </table>
</dl>
    </td>

  </tr>
</table>
<a class="anchor" name="a9" doxytag="block_template::register_callback"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.register_callback           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>signame</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>callback</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>

          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>tagtype</em> = <code>3</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>

          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em> = <code>null</code></td>
        </tr>
        <tr>
          <td class="md"></td>

          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
enregistre une fonction de callback qui sera appelé lors de certains signaux. <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$signame nom du signal (on-load, on-output, on-templatize) </td></tr>

    <tr><td valign="top"></td><td valign="top"><em>mixed</em>&nbsp;</td><td>$callback nom de la fonction de callback (peut prendre un tableau array($object,$method)) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$tagtype type de tag sur lequel on applique le callback 0|3| applique le callback sur tout les types de tag 1| applique le callback uniquement au tag unique 2| applique le callback sur des tags disposant de tag de fermeture </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname null par defaut, contraint le callback a la section précisé, ou toutes les sections si null </td></tr>
  </table>
</dl>
<dl compact><dt><b>Voir également:</b></dt><dd><a class="el" href="classblock__template.html#d1">_emit_signal</a> pour le prototype de rappelle </dd></dl>

<dl compact><dt><b>Renvoie:</b></dt><dd>int callback handler id </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a18" doxytag="block_template::section_exists"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>

          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.section_exists           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em>, </td>
        </tr>

        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>returnname</em> = <code>FALSE</code></td>
        </tr>

        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>

</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
verifie qu'une section existe <dl compact><dt><b>Paramètres:</b></dt><dd>

  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$sectioname nom de la section dont on veut verifier l'existence </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bool</em>&nbsp;</td><td>$returnname si passer a TRUE alors la fonction retournera le nom de la section en cas de succes au lieu de TRUE </td></tr>
  </table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>bool </dd></dl>
    </td>

  </tr>
</table>
<a class="anchor" name="a2" doxytag="block_template::set_safe_output"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.set_safe_output           </td>

          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>set</em> = <code>TRUE</code>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>

          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;

    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a class="anchor" name="a4" doxytag="block_template::set_title"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">

      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.set_title           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>title</em>          </td>

          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
set the page title <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>$title </td></tr>

  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a11" doxytag="block_template::templatize"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>

          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.templatize           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectionvars</em>, </td>
        </tr>

        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>sectioname</em>, </td>
        </tr>
        <tr>

          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>section_optional</em> = <code>FALSE</code></td>
        </tr>
        <tr>

          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">

  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>

<a class="anchor" name="a12" doxytag="block_template::templatize_string"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.templatize_string           </td>
          <td class="md" valign="top">(&nbsp;</td>

          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>string</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>

          <td class="mdname" nowrap> <em>sectionvars</em> = <code>null</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
parse la chaine $string comme une section de template. Cela permet au programmeur de parser une chaine recue d'une base de données ou encore généré dynamiquement. <dl compact><dt><b>Note:</b></dt><dd>Cette méthode à été ajouter car elle me parassait apporter une certaine souplesse dans l'utilisation de block_template, cependant n'en ayant jamais fait usage, je serais tres interresser d'etre informé de l'utilisation que vous pouriez en faire. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="a10" doxytag="block_template::unregister_callback"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>

    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.unregister_callback           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>cb_handler</em>          </td>

          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
permet de referencer un callback associé a un signal par le biais de la methode <a class="el" href="classblock__template.html#a9">register_callback()</a> <dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">

    <tr><td valign="top"></td><td valign="top"><em>int</em>&nbsp;</td><td>$cb_handler pointeur de callback renvoyé par la methode <a class="el" href="classblock__template.html#a9">register_callback()</a> </td></tr>
  </table>
</dl>
<dl compact><dt><b>Voir également:</b></dt><dd><a class="el" href="classblock__template.html#a9">register_callback()</a> </dd></dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>bool </dd></dl>
    </td>

  </tr>
</table>
<hr><h2>Documentation des données membres</h2>
<a class="anchor" name="o6" doxytag="block_template::$_css"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$_css          </td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
string css definition that will go in the &lt;style&gt;&lt;/style&gt; tags inside the header     </td>
  </tr>
</table>
<a class="anchor" name="o7" doxytag="block_template::$_js"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>

    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$_js          </td>
        </tr>
      </table>
    </td>
  </tr>

</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
string javascript code that will go in the &lt;script&gt;&lt;/script&gt; tags inside the header     </td>

  </tr>
</table>
<a class="anchor" name="o0" doxytag="block_template::$content"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$content          </td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
where all the body content will go     </td>
  </tr>
</table>
<a class="anchor" name="o4" doxytag="block_template::$css"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">

        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$css = array()          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
array of css link tags     </td>
  </tr>
</table>
<a class="anchor" name="o3" doxytag="block_template::$favicon"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">

  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$favicon          </td>
        </tr>
      </table>
    </td>

  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
string favicon link tag     </td>

  </tr>
</table>
<a class="anchor" name="o2" doxytag="block_template::$footer"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$footer          </td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
    </td>
  </tr>
</table>
<a class="anchor" name="o1" doxytag="block_template::$header"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">

        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$header          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>

    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a class="anchor" name="o5" doxytag="block_template::$js"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">

  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$js = array()          </td>
        </tr>
      </table>
    </td>

  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
array of js link tags     </td>

  </tr>
</table>
<a class="anchor" name="r0" doxytag="block_template::$metas"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classblock__template.html">block_template</a>.$metas = array()<code> [private]</code>          </td>

        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>

    <td>

<p>
metas tags parameters     </td>
  </tr>
</table>
<hr>La documentation de cette classe a été générée à partir du fichier suivant:<ul>
<li>/var/www/html/mkosoft/libs/<a class="el" href="class-block__template_8php.html">class-block_template.php</a></ul>
<hr size="1"><address style="align: right;"><small>Généré le Tue Jun 14 16:32:45 2005 pour Block Template par&nbsp;
<a href="http://www.doxygen.org/index.html">

<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>
Return current item: Block template