2004-04-13 11:47:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2006-10-14 04:29:44 +00:00
|
|
|
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready -->
|
|
|
|
|
|
<sect1 id="plugins.naming.conventions">
|
2004-04-13 11:47:32 +00:00
|
|
|
|
<title>Conven<EFBFBD><EFBFBD>es de Apar<61>ncia</title>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Arquivos e fun<75><6E>es de Plugin devem seguir uma conven<65><6E>o de apar<61>ncia muito espec<65>fica
|
|
|
|
|
|
a fim de ser localizada pela Smarty.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Os arquivos de plugin devem ser nomeados da sequinte forma:
|
|
|
|
|
|
<blockquote>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
<filename>
|
|
|
|
|
|
<replaceable>tipo</replaceable>.<replaceable>nome</replaceable>.php
|
|
|
|
|
|
</filename>
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</blockquote>
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Onde <literal>tipo</literal> <20> um dos seguintes tipos de plugin:
|
|
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
|
|
<listitem><simpara>function</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>modifier</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>block</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>compiler</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>prefilter</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>postfilter</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>outputfilter</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>resource</simpara></listitem>
|
|
|
|
|
|
<listitem><simpara>insert</simpara></listitem>
|
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
E <literal>nome</literal> seria um identificador v<>lido (letras,
|
|
|
|
|
|
n<>meros, e underscores apenas).
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Alguns exemplos: <literal>function.html_select_date.php</literal>,
|
|
|
|
|
|
<literal>resource.db.php</literal>,
|
|
|
|
|
|
<literal>modifier.spacify.php</literal>.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
As fun<75><6E>es de plugin dentro dos arquivos do plugin devem ser nomeadas da seguinte forma:
|
|
|
|
|
|
<blockquote>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
<function>smarty_<replaceable>tipo</replaceable>_<replaceable>nome</replaceable></function>
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</blockquote>
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
O significado de <literal>tipo</literal> e
|
|
|
|
|
|
<literal>nome</literal> s<>o os mesmos de antes.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
A Smarty mostrar<61> mensagens de erro apropriadas se o arquivo de plugins que <20> necess<73>rio n<>o <20> encontrado,
|
|
|
|
|
|
ou se o arquivo ou a fun<75><6E>o de plugin
|
|
|
|
|
|
est<73>o nomeadas inadequadamente.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
|
|
Local variables:
|
|
|
|
|
|
mode: sgml
|
|
|
|
|
|
sgml-omittag:t
|
|
|
|
|
|
sgml-shorttag:t
|
|
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
|
|
sgml-indent-step:1
|
|
|
|
|
|
sgml-indent-data:t
|
|
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
|
|
sgml-parent-document:nil
|
|
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
|
|
End:
|
|
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
|
|
-->
|