2004-04-13 08:46:28 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2004-10-02 12:49:29 +00:00
|
|
|
|
<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready -->
|
2004-04-13 08:46:28 +00:00
|
|
|
|
<sect1 id="language.function.assign">
|
|
|
|
|
|
<title>assign</title>
|
|
|
|
|
|
<informaltable frame="all">
|
|
|
|
|
|
<tgroup cols="5">
|
|
|
|
|
|
<colspec colname="param" align="center" />
|
|
|
|
|
|
<colspec colname="type" align="center" />
|
|
|
|
|
|
<colspec colname="required" align="center" />
|
|
|
|
|
|
<colspec colname="default" align="center" />
|
|
|
|
|
|
<colspec colname="desc" />
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>Nome do Atributo</entry>
|
|
|
|
|
|
<entry>Tipo</entry>
|
2004-10-01 14:39:42 +00:00
|
|
|
|
<entry>Obrigat<EFBFBD>rio</entry>
|
2004-04-13 08:46:28 +00:00
|
|
|
|
<entry>Padr<EFBFBD>o</entry>
|
|
|
|
|
|
<entry>Descri<EFBFBD><EFBFBD>o</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>var</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Sim</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
2004-10-01 14:39:42 +00:00
|
|
|
|
<entry>O nome da vari<72>vel que est<73> sendo definida</entry>
|
2004-04-13 08:46:28 +00:00
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>value</entry>
|
|
|
|
|
|
<entry>string</entry>
|
|
|
|
|
|
<entry>Yes</entry>
|
|
|
|
|
|
<entry><emphasis>n/a</emphasis></entry>
|
2004-10-01 14:39:42 +00:00
|
|
|
|
<entry>O valor que est<73> sendo definido</entry>
|
2004-04-13 08:46:28 +00:00
|
|
|
|
</row>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</tgroup>
|
|
|
|
|
|
</informaltable>
|
|
|
|
|
|
<para>
|
2004-10-01 14:39:42 +00:00
|
|
|
|
assign <20> usado para definir o valor de uma vari<72>vel
|
2004-04-13 08:46:28 +00:00
|
|
|
|
de template durante a execu<63><75>o do template.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<example>
|
|
|
|
|
|
<title>assign</title>
|
|
|
|
|
|
<programlisting>
|
2004-10-01 14:39:42 +00:00
|
|
|
|
<![CDATA[
|
|
|
|
|
|
{assign var="nome" value="Bob"}
|
2004-04-13 08:46:28 +00:00
|
|
|
|
|
2004-10-01 14:39:42 +00:00
|
|
|
|
O valor de $nome <20> {$nome}.
|
2004-04-13 08:46:28 +00:00
|
|
|
|
|
|
|
|
|
|
MOSTRA:
|
|
|
|
|
|
|
2004-10-01 14:39:42 +00:00
|
|
|
|
O valor de $nome <20> Bob.
|
|
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
2004-04-13 08:46:28 +00:00
|
|
|
|
</example>
|
|
|
|
|
|
</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
|
|
|
|
|
|
-->
|