Files
smarty/docs/de/designers/language-basic-syntax/language-syntax-functions.xml
andreas 05d0bbbca1 - updated for 2.6.3
- updates for new build system
- added missing files
- corrections from users
- revcheck comments for all files
- big up to didou and nuno, brilliant work
- make test: ok
- make: ok
2004-07-16 14:32:31 +00:00

58 lines
1.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
<sect1 id="language.syntax.functions">
<title>Funktionen</title>
<para>
Jedes Smarty-Tag gibt entweder eine <link linkend="language.variables">Variable</link> aus
oder ruft eine Funktion auf. Funktionen werden aufgerufen indem der Funktionsname
und die Parameter mit Trennzeichen umschlossen werden. Beispiel: {funcname attr1="val" attr2="val"}.
</para>
<example>
<title>Funktions-Syntax</title>
<programlisting>
<![CDATA[
{config_load file="colors.conf"}
{include file="header.tpl"}
{if $highlight_name}
Welcome, &lt;font color="{#fontColor#}"&gt;{$name}!&lt;/font&gt;
{else}
Welcome, {$name}!
{/if}
{include file="footer.tpl"}
]]>
</programlisting>
</example>
<para>
Sowohl der Aufruf von eingebauten, als auch der von eigenen Funktionen folgt der
gleichen Syntax. Eingebaute Funktionen erlauben einige Basis-Operationen wie <command>if</command>, <command>section</command>
und <command>strip</command>. Diese Funktionen k&ouml;nnen nicht ver&auml;ndert werden.
Individuelle Funktionen die die F&auml;higkeiten von Smarty erweitern werden als Plugins implementiert.
Diese Funktionen k&ouml;nnen von Ihnen angepasst werden, oder Sie k&ouml;nnen selbst neue Plugins
hinzuf&uuml;gen. <command>html_options</command> und <command>html_select_date</command> sind Beispiele solcher Funktionen.
</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
-->