mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- 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
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<chapter id="bugs">
|
<chapter id="bugs">
|
||||||
<title>BUGS</title>
|
<title>BUGS</title>
|
||||||
<para>
|
<para>
|
||||||
Bitte konsultieren Sie die Datei 'BUGS' welche mit Smarty ausgeliefert wird,
|
Bitte konsultieren Sie die Datei <filename>BUGS</filename> welche mit Smarty ausgeliefert wird,
|
||||||
oder die Webseite.
|
oder die Webseite.
|
||||||
</para>
|
</para>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
@@ -1,12 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<chapter id="resources">
|
<chapter id="resources">
|
||||||
<title>Weiterführende Informationen</title>
|
<title>Weiterführende Informationen</title>
|
||||||
<para>
|
<para>
|
||||||
Smarty's Homepage erreicht man unter &url.smarty;.
|
Smarty's Homepage erreicht man unter <ulink url="&url.smarty;">&url.smarty;</ulink>.
|
||||||
Sie können der Smarty Mailingliste beitreten in dem
|
Sie können der Smarty Mailingliste beitreten in dem
|
||||||
sie ein E-mail an &ml.general.sub;. Das Archiv der Liste
|
sie ein E-mail an &ml.general.sub;. Das Archiv der Liste
|
||||||
ist hier &url.ml.archive; einsehbar.
|
ist hier <ulink url="&url.ml.archive;">&url.ml.archive;</ulink> einsehbar.
|
||||||
</para>
|
</para>
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
|
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<chapter id="tips">
|
<chapter id="tips">
|
||||||
<title>Tips & Tricks</title>
|
<title>Tips & Tricks</title>
|
||||||
@@ -121,23 +122,39 @@ footer.tpl
|
|||||||
<example>
|
<example>
|
||||||
<title>Die Verwendung von date_format</title>
|
<title>Die Verwendung von date_format</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
{$startDatum|date_format}
|
<![CDATA[
|
||||||
|
{$startDate|date_format}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
AUSGABE:
|
AUSGABE:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
Jan 4, 2001
|
Jan 4, 2001
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{$startDatum|date_format:"%Y/%m/%d"}
|
{$startDatum|date_format:"%Y/%m/%d"}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
AUSGABE:
|
AUSGABE:
|
||||||
|
</para>
|
||||||
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
2001/01/04
|
2001/01/04
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
{if $datum1 < $datum2}
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
{if $datum1 < $datum2}
|
||||||
...
|
...
|
||||||
{/if}</programlisting>
|
{/if}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Falls {html_select_date} in einem Template verwendet wird, hat der Programmierer
|
Falls {html_select_date} in einem Template verwendet wird, hat der Programmierer
|
||||||
@@ -147,6 +164,8 @@ AUSGABE:
|
|||||||
<example>
|
<example>
|
||||||
<title>Formular Datum-Elemente nach Timestamp konvertieren</title>
|
<title>Formular Datum-Elemente nach Timestamp konvertieren</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
// hierbei wird davon ausgegangen, dass Ihre Formular Elemente wie folgt benannt sind
|
// hierbei wird davon ausgegangen, dass Ihre Formular Elemente wie folgt benannt sind
|
||||||
// startDate_Day, startDate_Month, startDate_Year
|
// startDate_Day, startDate_Month, startDate_Year
|
||||||
|
|
||||||
@@ -162,7 +181,9 @@ function makeTimeStamp($year="",$month="",$day="")
|
|||||||
$day = strftime("%d");
|
$day = strftime("%d");
|
||||||
|
|
||||||
return mktime(0,0,0,$month,$day,$year);
|
return mktime(0,0,0,$month,$day,$year);
|
||||||
}</programlisting>
|
}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
@@ -180,6 +201,8 @@ function makeTimeStamp($year="",$month="",$day="")
|
|||||||
<example>
|
<example>
|
||||||
<title>Die verwendung von 'insert' um einen WML Content-Type header zu senden</title>
|
<title>Die verwendung von 'insert' um einen WML Content-Type header zu senden</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
// stellen Sie sicher, dass Apache mit .wml Dateien umgehen kann!
|
// stellen Sie sicher, dass Apache mit .wml Dateien umgehen kann!
|
||||||
// schreiben Sie folgende Funktion in Ihrer Applikation, oder in Smarty.addons.php
|
// schreiben Sie folgende Funktion in Ihrer Applikation, oder in Smarty.addons.php
|
||||||
function insert_header() {
|
function insert_header() {
|
||||||
@@ -191,9 +214,14 @@ function insert_header() {
|
|||||||
header($inhalt);
|
header($inhalt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
// Ihr Template _muss_ danach wie folgt beginnen:
|
// Ihr Template _muss_ danach wie folgt beginnen:
|
||||||
|
</para>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{insert name=header inhalt="Content-Type: text/vnd.wap.wml"}
|
{insert name=header inhalt="Content-Type: text/vnd.wap.wml"}
|
||||||
|
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
@@ -218,7 +246,9 @@ OK klicken um weiterzugehen...
|
|||||||
Einfach, oder?
|
Einfach, oder?
|
||||||
</p>
|
</p>
|
||||||
</card>
|
</card>
|
||||||
</wml></programlisting>
|
</wml>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<sect1 id="tips.componentized.templates">
|
<sect1 id="tips.componentized.templates">
|
||||||
@@ -248,25 +278,42 @@ Einfach, oder?
|
|||||||
<example>
|
<example>
|
||||||
<title>Template/Script Komponenten</title>
|
<title>Template/Script Komponenten</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// drop file "function.load_ticker.php" in plugin directory
|
||||||
|
|
||||||
|
// setup our function for fetching stock data
|
||||||
|
function fetch_ticker($symbol)
|
||||||
|
{
|
||||||
|
// put logic here that fetches $ticker_info
|
||||||
|
// from some ticker resource
|
||||||
|
return $ticker_info;
|
||||||
|
}
|
||||||
|
|
||||||
|
function smarty_function_load_ticker($params, &$smarty)
|
||||||
|
{
|
||||||
|
// call the function
|
||||||
|
$ticker_info = fetch_ticker($params['symbol']);
|
||||||
|
|
||||||
|
// assign template variable
|
||||||
|
$smarty->assign($params['assign'], $ticker_info);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
index.tpl
|
||||||
|
---------
|
||||||
|
|
||||||
{* Smarty *}
|
{* Smarty *}
|
||||||
|
|
||||||
{php}
|
{load_ticker symbol="YHOO" assign="ticker"}
|
||||||
|
|
||||||
// unsere funktion um die börsenkurse zu holen
|
Stock Name: {$ticker.name} Stock Price: {$ticker.price}
|
||||||
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) {
|
]]>
|
||||||
// hier wird $ticker_name und $ticker_price zugewiesen
|
</programlisting>
|
||||||
}
|
|
||||||
|
|
||||||
// aufruf der funktion
|
|
||||||
fetch_ticker("YHOO",$ticker_name,$ticker_price);
|
|
||||||
|
|
||||||
// zuweisung der variablen
|
|
||||||
$this->assign("ticker_name",$ticker_name);
|
|
||||||
$this->assign("ticker_price",$ticker_price);
|
|
||||||
|
|
||||||
{/php}
|
|
||||||
|
|
||||||
Symbol: {$ticker_name} Preis: {$ticker_price}</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Seit Smarty 1.5.0, gibt es einen noch einfacheren und auch saubereren Weg
|
Seit Smarty 1.5.0, gibt es einen noch einfacheren und auch saubereren Weg
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="troubleshooting">
|
<chapter id="troubleshooting">
|
||||||
<title>Problemlösung</title>
|
<title>Problemlösung</title>
|
||||||
<para></para>
|
<para></para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready -->
|
||||||
<bookinfo id="bookinfo">
|
<bookinfo id="bookinfo">
|
||||||
<title>Smarty - die kompilierende PHP Template-Engine</title>
|
<title>Smarty - die kompilierende PHP Template-Engine</title>
|
||||||
<authorgroup id="authors">
|
<authorgroup id="authors">
|
||||||
@@ -24,7 +25,6 @@
|
|||||||
<holder>ispi of Lincoln, Inc.</holder>
|
<holder>ispi of Lincoln, Inc.</holder>
|
||||||
</copyright>
|
</copyright>
|
||||||
</bookinfo>
|
</bookinfo>
|
||||||
|
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="chapter.debugging.console">
|
<chapter id="chapter.debugging.console">
|
||||||
<title>Debugging Konsole</title>
|
<title>Debugging Konsole</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="config.files">
|
<chapter id="config.files">
|
||||||
<title>Konfigurationsdateien</title>
|
<title>Konfigurationsdateien</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -13,6 +14,7 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Beispiel der Konfigurationsdatei-Syntax</title>
|
<title>Beispiel der Konfigurationsdatei-Syntax</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
# global variables
|
# global variables
|
||||||
pageTitle = "Main Menu"
|
pageTitle = "Main Menu"
|
||||||
bodyBgColor = #000000
|
bodyBgColor = #000000
|
||||||
@@ -35,7 +37,8 @@ Intro = """Diese Zeile erstreckt sich über
|
|||||||
host=my.domain.com
|
host=my.domain.com
|
||||||
db=ADDRESSBOOK
|
db=ADDRESSBOOK
|
||||||
user=php-user
|
user=php-user
|
||||||
pass=foobar</programlisting>
|
pass=foobar
|
||||||
|
]]></programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Die Werte in einer Konfigurationsdatei können in einfachen/doppelten Anführungszeichen
|
Die Werte in einer Konfigurationsdatei können in einfachen/doppelten Anführungszeichen
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="language.basic.syntax">
|
<chapter id="language.basic.syntax">
|
||||||
<title>Grundlegende Syntax</title>
|
<title>Grundlegende Syntax</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -14,15 +15,12 @@
|
|||||||
auf Template-Tags stösst, versucht es diese zu interpretieren und die
|
auf Template-Tags stösst, versucht es diese zu interpretieren und die
|
||||||
entsprechenden Ausgaben an deren Stelle einzufügen.
|
entsprechenden Ausgaben an deren Stelle einzufügen.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-syntax-comments;
|
&designers.language-basic-syntax.language-syntax-comments;
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-syntax-functions;
|
&designers.language-basic-syntax.language-syntax-functions;
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-syntax-attributes;
|
&designers.language-basic-syntax.language-syntax-attributes;
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-syntax-quotes;
|
&designers.language-basic-syntax.language-syntax-quotes;
|
||||||
&designers.language-basic-syntax.language-math;
|
&designers.language-basic-syntax.language-math;
|
||||||
|
&designers.language-basic-syntax.language-escaping;
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.escaping">
|
<sect1 id="language.escaping">
|
||||||
<title>Smarty Parsing umgehen</title>
|
<title>Smarty Parsing umgehen</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.math">
|
<sect1 id="language.math">
|
||||||
<title>Math</title>
|
<title>Math</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -8,6 +9,7 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Mathematik Beispiele</title>
|
<title>Mathematik Beispiele</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{$foo+1}
|
{$foo+1}
|
||||||
|
|
||||||
{$foo*$bar}
|
{$foo*$bar}
|
||||||
@@ -20,7 +22,8 @@
|
|||||||
|
|
||||||
{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"}
|
{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"}
|
||||||
|
|
||||||
{assign var="foo" value="`$foo+$bar`"}</programlisting>
|
{assign var="foo" value="`$foo+$bar`"}
|
||||||
|
]]></programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.syntax.attributes">
|
<sect1 id="language.syntax.attributes">
|
||||||
<title>Attribute / Parameter</title>
|
<title>Attribute / Parameter</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Funktions-Parameter Syntax</title>
|
<title>Funktions-Parameter Syntax</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{include file="header.tpl"}
|
{include file="header.tpl"}
|
||||||
|
|
||||||
{include file=$includeFile}
|
{include file=$includeFile}
|
||||||
@@ -26,9 +28,11 @@
|
|||||||
|
|
||||||
{html_select_date display_days=yes}
|
{html_select_date display_days=yes}
|
||||||
|
|
||||||
<SELECT name=firma>
|
<SELECT name=firma>
|
||||||
{html_options values=$vals selected=$selected output=$output}
|
{html_options values=$vals selected=$selected output=$output}
|
||||||
</SELECT></programlisting>
|
</SELECT>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.syntax.comments">
|
<sect1 id="language.syntax.comments">
|
||||||
<title>Kommentare</title>
|
<title>Kommentare</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -11,6 +12,7 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Kommentare</title>
|
<title>Kommentare</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* Smarty *}
|
{* Smarty *}
|
||||||
|
|
||||||
{* einbinden des Header-Templates *}
|
{* einbinden des Header-Templates *}
|
||||||
@@ -21,9 +23,10 @@
|
|||||||
{include file=#includeFile#}
|
{include file=#includeFile#}
|
||||||
|
|
||||||
{* Ausgabe der drop-down Liste *}
|
{* Ausgabe der drop-down Liste *}
|
||||||
<SELECT name=firma>
|
<SELECT name=firma>
|
||||||
{html_options values=$vals selected=$selected output=$output}
|
{html_options values=$vals selected=$selected output=$output}
|
||||||
</SELECT></programlisting>
|
</SELECT>
|
||||||
|
]]></programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.syntax.functions">
|
<sect1 id="language.syntax.functions">
|
||||||
<title>Funktionen</title>
|
<title>Funktionen</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -10,6 +11,7 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Funktions-Syntax</title>
|
<title>Funktions-Syntax</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{config_load file="colors.conf"}
|
{config_load file="colors.conf"}
|
||||||
|
|
||||||
{include file="header.tpl"}
|
{include file="header.tpl"}
|
||||||
@@ -20,7 +22,9 @@
|
|||||||
Welcome, {$name}!
|
Welcome, {$name}!
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{include file="footer.tpl"}</programlisting>
|
{include file="footer.tpl"}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Sowohl der Aufruf von eingebauten, als auch der von eigenen Funktionen folgt der
|
Sowohl der Aufruf von eingebauten, als auch der von eigenen Funktionen folgt der
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.syntax.quotes">
|
<sect1 id="language.syntax.quotes">
|
||||||
<title>Variablen mit Doppelten Anführungszeichen</title>
|
<title>Variablen mit Doppelten Anführungszeichen</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -10,6 +11,7 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Syntax von eingebetteten Anfürungszeichen</title>
|
<title>Syntax von eingebetteten Anfürungszeichen</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
SYNTAX BEISPIELE:
|
SYNTAX BEISPIELE:
|
||||||
{func var="test $foo test"} <-- sieht $foo
|
{func var="test $foo test"} <-- sieht $foo
|
||||||
{func var="test $foo_bar test"} <-- sieht $foo_bar
|
{func var="test $foo_bar test"} <-- sieht $foo_bar
|
||||||
@@ -21,6 +23,8 @@ SYNTAX BEISPIELE:
|
|||||||
PRAKTISCHE BEISPIELE:
|
PRAKTISCHE BEISPIELE:
|
||||||
{include file="subdir/$tpl_name.tpl"} <-- ersetzt $tpl_name durch wert
|
{include file="subdir/$tpl_name.tpl"} <-- ersetzt $tpl_name durch wert
|
||||||
{cycle values="one,two,`$smarty.config.myval`"} <-- muss Backticks enthalten</programlisting>
|
{cycle values="one,two,`$smarty.config.myval`"} <-- muss Backticks enthalten</programlisting>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="language.builtin.functions">
|
<chapter id="language.builtin.functions">
|
||||||
<title>Eingebaute Funktionen</title>
|
<title>Eingebaute Funktionen</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.capture">
|
<sect1 id="language.function.capture">
|
||||||
<title>capture (Ausgabe abfangen)</title>
|
<title>capture (Ausgabe abfangen)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.config.load">
|
<sect1 id="language.function.config.load">
|
||||||
<title>config_load (Konfiguration laden)</title>
|
<title>config_load (Konfiguration laden)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -71,19 +72,22 @@
|
|||||||
<title>Funktion config_load</title>
|
<title>Funktion config_load</title>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{config_load file="farben.conf"}
|
{config_load file="farben.conf"}
|
||||||
<html>
|
<html>
|
||||||
<title>{#seitenTitel#}</title>
|
<title>{#seitenTitel#}</title>
|
||||||
<body bgcolor="{#bodyHintergrundFarbe#}">
|
<body bgcolor="{#bodyHintergrundFarbe#}">
|
||||||
<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}">
|
<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}">
|
||||||
<tr bgcolor="{#reiheHintergrundFarbe#}">
|
<tr bgcolor="{#reiheHintergrundFarbe#}">
|
||||||
<td>Vornamen</td>
|
<td>Vornamen</td>
|
||||||
<td>Nachnamen</td>
|
<td>Nachnamen</td>
|
||||||
<td>Adresse</td>
|
<td>Adresse</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html></programlisting>
|
</html>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Konfigurationsdateien können Abschnitte enthalten. Um Variablen
|
Konfigurationsdateien können Abschnitte enthalten. Um Variablen
|
||||||
@@ -98,19 +102,22 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Funktion config_load mit Abschnitten</title>
|
<title>Funktion config_load mit Abschnitten</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{config_load file="farben.conf" section="Kunde"}
|
{config_load file="farben.conf" section="Kunde"}
|
||||||
<html>
|
<html>
|
||||||
<title>{#seitenTitel#}</title>
|
<title>{#seitenTitel#}</title>
|
||||||
<body bgcolor="{#bodyHintergrundFarbe#}">
|
<body bgcolor="{#bodyHintergrundFarbe#}">
|
||||||
<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}">
|
<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}">
|
||||||
<tr bgcolor="{#reiheHintergrundFarbe#}">
|
<tr bgcolor="{#reiheHintergrundFarbe#}">
|
||||||
<td>Vornamen</td>
|
<td>Vornamen</td>
|
||||||
<td>Nachnamen</td>
|
<td>Nachnamen</td>
|
||||||
<td>Adresse</td>
|
<td>Adresse</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html></programlisting>
|
</html>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.foreach">
|
<sect1 id="language.function.foreach">
|
||||||
<title>foreach, foreachelse</title>
|
<title>foreach, foreachelse</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.if">
|
<sect1 id="language.function.if">
|
||||||
<title>if,elseif,else</title>
|
<title>if,elseif,else</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.include.php">
|
<sect1 id="language.function.include.php">
|
||||||
<title>include_php (PHP-Code einbinden)</title>
|
<title>include_php (PHP-Code einbinden)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.include">
|
<sect1 id="language.function.include">
|
||||||
<title>include (einbinden)</title>
|
<title>include (einbinden)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.insert">
|
<sect1 id="language.function.insert">
|
||||||
<title>insert (einfügen)</title>
|
<title>insert (einfügen)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.ldelim">
|
<sect1 id="language.function.ldelim">
|
||||||
<title>ldelim,rdelim (Ausgabe der Trennzeichen)</title>
|
<title>ldelim,rdelim (Ausgabe der Trennzeichen)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.literal">
|
<sect1 id="language.function.literal">
|
||||||
<title>literal</title>
|
<title>literal</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.php">
|
<sect1 id="language.function.php">
|
||||||
<title>php</title>
|
<title>php</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.section">
|
<sect1 id="language.function.section">
|
||||||
<title>section,sectionelse</title>
|
<title>section,sectionelse</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -60,7 +61,7 @@
|
|||||||
<entry>max</entry>
|
<entry>max</entry>
|
||||||
<entry>integer</entry>
|
<entry>integer</entry>
|
||||||
<entry>Nein</entry>
|
<entry>Nein</entry>
|
||||||
<entry><emphasis>1</emphasis></entry>
|
<entry><emphasis>n/a</emphasis></entry>
|
||||||
<entry>Maximale Anzahl an Iterationen, die Durchlaufen werden.</entry>
|
<entry>Maximale Anzahl an Iterationen, die Durchlaufen werden.</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.strip">
|
<sect1 id="language.function.strip">
|
||||||
<title>strip</title>
|
<title>strip</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -23,24 +24,26 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>strip tags</title>
|
<title>strip tags</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* der folgende Inhalt wird in einer Zeile ausgegeben *}
|
{* der folgende Inhalt wird in einer Zeile ausgegeben *}
|
||||||
{strip}
|
{strip}
|
||||||
<table border=0>
|
<table border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<A HREF="{$url}">
|
<A HREF="{$url}">
|
||||||
<font color="red">Das ist ein Test.</font>
|
<font color="red">Das ist ein Test.</font>
|
||||||
</A>
|
</A>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{/strip}
|
{/strip}
|
||||||
|
|
||||||
|
|
||||||
AUSGABE:
|
AUSGABE:
|
||||||
|
|
||||||
<table border=0><tr><td><A HREF="http://my.domain.com"><font color="red">Das ist ein Test.</font></A></td></tr></table></programlisting>
|
<table border=0><tr><td><A HREF="http://my.domain.com"><font color="red">Das ist ein Test.</font></A></td></tr></table></programlisting>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Achtung: im obigen Beispiel beginnen und enden alle Zeilen mit HTML-Tags.
|
Achtung: im obigen Beispiel beginnen und enden alle Zeilen mit HTML-Tags.
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="language.combining.modifiers">
|
<chapter id="language.combining.modifiers">
|
||||||
<title>Kombinieren von Modifikatoren</title>
|
<title>Kombinieren von Modifikatoren</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -10,15 +11,28 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Kombinieren von Modifikatoren</title>
|
<title>Kombinieren von Modifikatoren</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
{$artikelTitel}
|
<![CDATA[
|
||||||
{$artikelTitel|upper|spacify}
|
index.php:
|
||||||
{$artikelTitel|lower|spacify|truncate}
|
<?php
|
||||||
{$artikelTitel|lower|truncate:30|spacify}
|
$smarty = new Smarty;
|
||||||
{$artikelTitel|lower|spacify|truncate:30:". . ."}
|
$smarty->assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.');
|
||||||
|
$smarty->display('index.tpl');
|
||||||
|
?>
|
||||||
|
|
||||||
|
index.tpl:
|
||||||
|
|
||||||
AUSGABE:
|
{$articleTitle}
|
||||||
|
{$articleTitle|upper|spacify}
|
||||||
|
{$articleTitle|lower|spacify|truncate}
|
||||||
|
{$articleTitle|lower|truncate:30|spacify}
|
||||||
|
{$articleTitle|lower|spacify|truncate:30:". . ."}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
AUSGABE:
|
||||||
|
</para>
|
||||||
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
Einem Stadtrat in Salem in Pennsylvania (USA) droht eine zweijährige Haftstrafe, da eine von ihm gehaltene Rede sechs Minuten länger dauerte, als erlaubt. Die Redezeit ist auf maximal fünf Minuten begrenzt.
|
Einem Stadtrat in Salem in Pennsylvania (USA) droht eine zweijährige Haftstrafe, da eine von ihm gehaltene Rede sechs Minuten länger dauerte, als erlaubt. Die Redezeit ist auf maximal fünf Minuten begrenzt.
|
||||||
|
|
||||||
EINEM STADTRAT IN SALEM IN PENNSYLVANIA (USA) DROHT EINE ZWEIJäHRIGE HAFTSTRAFE, DA EINE VON IHM GEHALTENE REDE SECHS MINUTEN LäNGER DAUERTE, ALS ERLAUBT. DIE REDEZEIT IST AUF MAXIMAL FüNF MINUTEN BEGRENZT.
|
EINEM STADTRAT IN SALEM IN PENNSYLVANIA (USA) DROHT EINE ZWEIJäHRIGE HAFTSTRAFE, DA EINE VON IHM GEHALTENE REDE SECHS MINUTEN LäNGER DAUERTE, ALS ERLAUBT. DIE REDEZEIT IST AUF MAXIMAL FüNF MINUTEN BEGRENZT.
|
||||||
@@ -27,7 +41,8 @@ e i n e m s t a d t r a t i n s a l e m i n...
|
|||||||
|
|
||||||
e i n e m s t a d t r a t i n s a l e m i n . . .
|
e i n e m s t a d t r a t i n s a l e m i n . . .
|
||||||
|
|
||||||
e i n e m s t a d t r. . .</programlisting>
|
e i n e m s t a d t r. . .]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="language.custom.functions">
|
<chapter id="language.custom.functions">
|
||||||
<title>Eigene Funktionen</title>
|
<title>Eigene Funktionen</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
&designers.language-custom-functions.language-function-html-select-time;
|
&designers.language-custom-functions.language-function-html-select-time;
|
||||||
&designers.language-custom-functions.language-function-html-table;
|
&designers.language-custom-functions.language-function-html-table;
|
||||||
&designers.language-custom-functions.language-function-math;
|
&designers.language-custom-functions.language-function-math;
|
||||||
|
&designers.language-custom-functions.language-function-mailto;
|
||||||
&designers.language-custom-functions.language-function-popup-init;
|
&designers.language-custom-functions.language-function-popup-init;
|
||||||
&designers.language-custom-functions.language-function-popup;
|
&designers.language-custom-functions.language-function-popup;
|
||||||
&designers.language-custom-functions.language-function-textformat;
|
&designers.language-custom-functions.language-function-textformat;
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.assign">
|
<sect1 id="language.function.assign">
|
||||||
<title>assign (zuweisen)</title>
|
<title>assign (zuweisen)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.counter">
|
<sect1 id="language.function.counter">
|
||||||
<title>counter (Zähler)</title>
|
<title>counter (Zähler)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -79,21 +80,25 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>counter (Zähler)</title>
|
<title>counter (Zähler)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* initialisieren *}
|
{* z<>hler initialisieren *}
|
||||||
{counter start=0 skip=2 print=false}
|
{counter start=0 skip=2}<br />
|
||||||
|
{counter}<br />
|
||||||
{counter}<br>
|
{counter}<br />
|
||||||
{counter}<br>
|
{counter}<br />
|
||||||
{counter}<br>
|
]]>
|
||||||
{counter}<br>
|
</programlisting>
|
||||||
|
<para>
|
||||||
AUSGABE:
|
AUSGABE:
|
||||||
|
</para>
|
||||||
2<br>
|
<screen>
|
||||||
4<br>
|
<![CDATA[
|
||||||
6<br>
|
0<br />
|
||||||
8<br></programlisting>
|
2<br />
|
||||||
|
4<br />
|
||||||
|
6<br />
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.cycle">
|
<sect1 id="language.function.cycle">
|
||||||
<title>cycle (Zyklus)</title>
|
<title>cycle (Zyklus)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -94,18 +95,27 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>cycle (Zyklus)</title>
|
<title>cycle (Zyklus)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* initialisieren *}
|
{section name=rows loop=$data}
|
||||||
{cycle values="#eeeeee,#d0d0d0"}
|
<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}">
|
||||||
{cycle}
|
<td>{$data[rows]}</td>
|
||||||
{cycle}
|
</tr>
|
||||||
|
{/section}
|
||||||
|
]]>
|
||||||
AUSGABE:
|
</programlisting>
|
||||||
|
<screen>
|
||||||
#eeeeee
|
<![CDATA[
|
||||||
#d0d0d0
|
<tr bgcolor="#eeeeee">
|
||||||
#eeeeee</programlisting>
|
<td>1</td>
|
||||||
|
</tr>
|
||||||
|
<tr bgcolor="#d0d0d0">
|
||||||
|
<td>2</td>
|
||||||
|
</tr>
|
||||||
|
<tr bgcolor="#eeeeee">
|
||||||
|
<td>3</td>
|
||||||
|
</tr>
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.debug">
|
<sect1 id="language.function.debug">
|
||||||
<title>debug</title>
|
<title>debug</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.eval">
|
<sect1 id="language.function.eval">
|
||||||
<title>eval (auswerten)</title>
|
<title>eval (auswerten)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.fetch">
|
<sect1 id="language.function.fetch">
|
||||||
<title>fetch</title>
|
<title>fetch</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -66,24 +67,23 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>fetch</title>
|
<title>fetch</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* einbinden von javascript *}
|
{* einbinden von javascript *}
|
||||||
{fetch file="/export/httpd/www.domain.com/docs/navbar.js"}
|
{fetch file="/export/httpd/www.domain.com/docs/navbar.js"}
|
||||||
|
|
||||||
|
|
||||||
{* Wetter Informationen aus einer anderen Webseite bei uns anzeigen *}
|
{* Wetter Informationen aus einer anderen Webseite bei uns anzeigen *}
|
||||||
{fetch file="http://www.myweather.com/68502/"}
|
{fetch file="http://www.myweather.com/68502/"}
|
||||||
|
|
||||||
|
|
||||||
{* News Datei via FTP auslesen *}
|
{* News Datei via FTP auslesen *}
|
||||||
{fetch file="ftp://user:password@ftp.domain.com/path/to/currentheadlines.txt"}
|
{fetch file="ftp://user:password@ftp.domain.com/path/to/currentheadlines.txt"}
|
||||||
|
|
||||||
|
|
||||||
{* die Ausgabe einer Template variable zuweisen *}
|
{* die Ausgabe einer Template variable zuweisen *}
|
||||||
{fetch file="http://www.myweather.com/68502/" assign="weather"}
|
{fetch file="http://www.myweather.com/68502/" assign="weather"}
|
||||||
{if $weather ne ""}
|
{if $weather ne ""}
|
||||||
<b>{$weather}</b>
|
<b>{$weather}</b>
|
||||||
{/if}</programlisting>
|
{/if}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.html.checkboxes">
|
<sect1 id="language.function.html.checkboxes">
|
||||||
<title>html_checkboxes (Ausgabe von HTML-CHECKBOX Tag)</title>
|
<title>html_checkboxes (Ausgabe von HTML-CHECKBOX Tag)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -82,44 +83,65 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>html_checkboxes</title>
|
<title>html_checkboxes</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
index.php:
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
|
||||||
require('Smarty.class.php');
|
require('Smarty.class.php');
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->assign('cust_ids', array(1000,1001,1002,1003));
|
$smarty->assign('cust_ids', array(1000,1001,1002,1003));
|
||||||
$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown'));
|
$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown'));
|
||||||
$smarty->assign('customer_id', 1001);
|
$smarty->assign('customer_id', 1001);
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
|
?>
|
||||||
index.tpl:
|
]]
|
||||||
|
</programlisting>
|
||||||
{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"}
|
<para>
|
||||||
|
where index.tpl is:
|
||||||
|
</para>
|
||||||
index.php:
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
{html_checkboxes name="id" values=$cust_ids selected=$customer_id output=$cust_names separator=
|
||||||
|
"<br />"}
|
||||||
|
]]
|
||||||
|
</programlisting>
|
||||||
|
<programlisting role="php">
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
|
||||||
require('Smarty.class.php');
|
require('Smarty.class.php');
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->assign('cust_checkboxes', array(
|
$smarty->assign('cust_checkboxes', array(
|
||||||
1000 => 'Joe Schmoe',
|
1000 => 'Joe Schmoe',
|
||||||
1001 => 'Jack Smith',
|
1001 => 'Jack Smith',
|
||||||
1002 => 'Jane Johnson',
|
1002 => 'Jane Johnson',
|
||||||
1003 => 'Charlie Brown'));
|
1003 => 'Charlie Brown'));
|
||||||
$smarty->assign('customer_id', 1001);
|
$smarty->assign('customer_id', 1001);
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
?>
|
||||||
index.tpl:
|
]]>
|
||||||
|
</programlisting>
|
||||||
{html_checkboxes name="id" options=$cust_checkboxes checked=$customer_id separator="<br />"}
|
<para>
|
||||||
|
Wobei index.tpl wie folgt aussieht:
|
||||||
|
</para>
|
||||||
AUSGABE: (beider Beispiele)
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
<label><input type="checkbox" name="checkbox[]" value="1000" />Joe Schmoe</label><br />
|
{html_checkboxes name="id" options=$cust_checkboxes selected=$customer_id separator="<br /&g
|
||||||
<label><input type="checkbox" name="checkbox[]" value="1001" checked="checked" />Jack Smith</label><br />
|
t;"}
|
||||||
<label><input type="checkbox" name="checkbox[]" value="1002" />Jane Johnson</label><br />
|
]]>
|
||||||
<label><input type="checkbox" name="checkbox[]" value="1003" />Charlie Brown</label><br /></programlisting>
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
Das Ergebnis beider Listings:
|
||||||
|
</para>
|
||||||
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
|
<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />
|
||||||
|
<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><b
|
||||||
|
r />
|
||||||
|
<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />
|
||||||
|
<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.html.image">
|
<sect1 id="language.function.html.image">
|
||||||
<title>html_image (Ausgabe von HTML-IMG Tag)</title>
|
<title>html_image (Ausgabe von HTML-IMG Tag)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -85,6 +86,9 @@
|
|||||||
<parameter>href</parameter> ist das href Attribut für das Image-Tag. Wenn dieser Wert übergeben wird,
|
<parameter>href</parameter> ist das href Attribut für das Image-Tag. Wenn dieser Wert übergeben wird,
|
||||||
wird um das Bild ein <a href="LINKVALUE"><a> Tag erzeugt.
|
wird um das Bild ein <a href="LINKVALUE"><a> Tag erzeugt.
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
Alle weiteren Paarameter werden als Name/Wert Paare (Attribute) im <img>-Tag ausgegeben.
|
||||||
|
</para>
|
||||||
<note>
|
<note>
|
||||||
<title>Technische Bemerkung</title>
|
<title>Technische Bemerkung</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -95,27 +99,36 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>html_image</title>
|
<title>html_image</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
index.php:
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
|
||||||
require('Smarty.class.php');
|
require('Smarty.class.php');
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
index.tpl:
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
Wobei index.tpl wie folgt aussieht:
|
||||||
|
</para>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{html_image file="pumpkin.jpg"}
|
{html_image file="pumpkin.jpg"}
|
||||||
{html_image file="/path/from/docroot/pumpkin.jpg"}
|
{html_image file="/path/from/docroot/pumpkin.jpg"}
|
||||||
{html_image file="../path/relative/to/currdir/pumpkin.jpg"}
|
{html_image file="../path/relative/to/currdir/pumpkin.jpg"}
|
||||||
|
]]>
|
||||||
AUSGABE: (möglich)
|
</programlisting>
|
||||||
|
<para>
|
||||||
<img src="pumpkin.jpg" alt="" border="0" width="44" height="68" />
|
Mögliche Ausgabe:
|
||||||
<img src="/path/from/docroot/pumpkin.jpg" alt="" border="0" width="44" height="68" />
|
</para>
|
||||||
<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" border="0" width="44" height="68" /></programlisting>
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
|
<img src="pumpkin.jpg" alt="" border="0" width="44" height="68" />
|
||||||
|
<img src="/path/from/docroot/pumpkin.jpg" alt="" border="0" width="44" height="68" />
|
||||||
|
<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" border="0" width="44" height="68" />
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.html.options">
|
<sect1 id="language.function.html.options">
|
||||||
<title>html_options (Ausgabe von HTML-Options)</title>
|
<title>html_options (Ausgabe von HTML-Options)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.html.radios">
|
<sect1 id="language.function.html.radios">
|
||||||
<title>html_radios (Ausgabe von HTML-RADIO Tags)</title>
|
<title>html_radios (Ausgabe von HTML-RADIO Tags)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.html.select.date">
|
<sect1 id="language.function.html.select.date">
|
||||||
<title>html_select_date (Ausgabe von Daten als HTML-'options')</title>
|
<title>html_select_date (Ausgabe von Daten als HTML-'options')</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -175,6 +176,27 @@
|
|||||||
<entry>%m</entry>
|
<entry>%m</entry>
|
||||||
<entry>Format zur Ausgabe der Monats-Werte, Standardwert ist %m. (strftime)</entry>
|
<entry>Format zur Ausgabe der Monats-Werte, Standardwert ist %m. (strftime)</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>year_empty</entry>
|
||||||
|
<entry>string</entry>
|
||||||
|
<entry>Nein</entry>
|
||||||
|
<entry>null</entry>
|
||||||
|
<entry>Definiert, einen Namen für das erste Element der Jahres Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie ein Jahr" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "-MM-DD" als 'time' Attribut definieren können, um ein unselektiertes Jahr anzuzeigen.</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>month_empty</entry>
|
||||||
|
<entry>string</entry>
|
||||||
|
<entry>Nein</entry>
|
||||||
|
<entry>null</entry>
|
||||||
|
<entry>Definiert, einen Namen für das erste Element der Monats Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie einen Monat" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "YYYY--DD" als 'time' Attribut definieren können, um einen unselektierten Monat anzuzeigen.</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>day_empty</entry>
|
||||||
|
<entry>string</entry>
|
||||||
|
<entry>No</entry>
|
||||||
|
<entry>null</entry>
|
||||||
|
<entry>Definiert, einen Namen für das erste Element der Tages Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie einen Tag" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "YYYY-MM-" als 'time' Attribut definieren können, um einen unselektierten Tag anzuzeigen.</entry>
|
||||||
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</informaltable>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.html.select.time">
|
<sect1 id="language.function.html.select.time">
|
||||||
<title>html_select_time (Ausgabe von Zeiten als HTML-'options')</title>
|
<title>html_select_time (Ausgabe von Zeiten als HTML-'options')</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -134,165 +135,171 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>html_select_time</title>
|
<title>html_select_time</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{html_select_time use_24_hours=true}
|
{html_select_time use_24_hours=true}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
AUSGABE:
|
<para>
|
||||||
|
Ausgabe:
|
||||||
<select name="Time_Hour">
|
</para>
|
||||||
<option value="00">00</option>
|
<screen>
|
||||||
<option value="01">01</option>
|
<![CDATA[
|
||||||
<option value="02">02</option>
|
<select name="Time_Hour">
|
||||||
<option value="03">03</option>
|
<option value="00">00</option>
|
||||||
<option value="04">04</option>
|
<option value="01">01</option>
|
||||||
<option value="05">05</option>
|
<option value="02">02</option>
|
||||||
<option value="06">06</option>
|
<option value="03">03</option>
|
||||||
<option value="07">07</option>
|
<option value="04">04</option>
|
||||||
<option value="08">08</option>
|
<option value="05">05</option>
|
||||||
<option value="09" selected>09</option>
|
<option value="06">06</option>
|
||||||
<option value="10">10</option>
|
<option value="07">07</option>
|
||||||
<option value="11">11</option>
|
<option value="08">08</option>
|
||||||
<option value="12">12</option>
|
<option value="09" selected>09</option>
|
||||||
<option value="13">13</option>
|
<option value="10">10</option>
|
||||||
<option value="14">14</option>
|
<option value="11">11</option>
|
||||||
<option value="15">15</option>
|
<option value="12">12</option>
|
||||||
<option value="16">16</option>
|
<option value="13">13</option>
|
||||||
<option value="17">17</option>
|
<option value="14">14</option>
|
||||||
<option value="18">18</option>
|
<option value="15">15</option>
|
||||||
<option value="19">19</option>
|
<option value="16">16</option>
|
||||||
<option value="20">20</option>
|
<option value="17">17</option>
|
||||||
<option value="21">21</option>
|
<option value="18">18</option>
|
||||||
<option value="22">22</option>
|
<option value="19">19</option>
|
||||||
<option value="23">23</option>
|
<option value="20">20</option>
|
||||||
</select>
|
<option value="21">21</option>
|
||||||
<select name="Time_Minute">
|
<option value="22">22</option>
|
||||||
<option value="00">00</option>
|
<option value="23">23</option>
|
||||||
<option value="01">01</option>
|
</select>
|
||||||
<option value="02">02</option>
|
<select name="Time_Minute">
|
||||||
<option value="03">03</option>
|
<option value="00">00</option>
|
||||||
<option value="04">04</option>
|
<option value="01">01</option>
|
||||||
<option value="05">05</option>
|
<option value="02">02</option>
|
||||||
<option value="06">06</option>
|
<option value="03">03</option>
|
||||||
<option value="07">07</option>
|
<option value="04">04</option>
|
||||||
<option value="08">08</option>
|
<option value="05">05</option>
|
||||||
<option value="09">09</option>
|
<option value="06">06</option>
|
||||||
<option value="10">10</option>
|
<option value="07">07</option>
|
||||||
<option value="11">11</option>
|
<option value="08">08</option>
|
||||||
<option value="12">12</option>
|
<option value="09">09</option>
|
||||||
<option value="13">13</option>
|
<option value="10">10</option>
|
||||||
<option value="14">14</option>
|
<option value="11">11</option>
|
||||||
<option value="15">15</option>
|
<option value="12">12</option>
|
||||||
<option value="16">16</option>
|
<option value="13">13</option>
|
||||||
<option value="17">17</option>
|
<option value="14">14</option>
|
||||||
<option value="18">18</option>
|
<option value="15">15</option>
|
||||||
<option value="19">19</option>
|
<option value="16">16</option>
|
||||||
<option value="20" selected>20</option>
|
<option value="17">17</option>
|
||||||
<option value="21">21</option>
|
<option value="18">18</option>
|
||||||
<option value="22">22</option>
|
<option value="19">19</option>
|
||||||
<option value="23">23</option>
|
<option value="20" selected>20</option>
|
||||||
<option value="24">24</option>
|
<option value="21">21</option>
|
||||||
<option value="25">25</option>
|
<option value="22">22</option>
|
||||||
<option value="26">26</option>
|
<option value="23">23</option>
|
||||||
<option value="27">27</option>
|
<option value="24">24</option>
|
||||||
<option value="28">28</option>
|
<option value="25">25</option>
|
||||||
<option value="29">29</option>
|
<option value="26">26</option>
|
||||||
<option value="30">30</option>
|
<option value="27">27</option>
|
||||||
<option value="31">31</option>
|
<option value="28">28</option>
|
||||||
<option value="32">32</option>
|
<option value="29">29</option>
|
||||||
<option value="33">33</option>
|
<option value="30">30</option>
|
||||||
<option value="34">34</option>
|
<option value="31">31</option>
|
||||||
<option value="35">35</option>
|
<option value="32">32</option>
|
||||||
<option value="36">36</option>
|
<option value="33">33</option>
|
||||||
<option value="37">37</option>
|
<option value="34">34</option>
|
||||||
<option value="38">38</option>
|
<option value="35">35</option>
|
||||||
<option value="39">39</option>
|
<option value="36">36</option>
|
||||||
<option value="40">40</option>
|
<option value="37">37</option>
|
||||||
<option value="41">41</option>
|
<option value="38">38</option>
|
||||||
<option value="42">42</option>
|
<option value="39">39</option>
|
||||||
<option value="43">43</option>
|
<option value="40">40</option>
|
||||||
<option value="44">44</option>
|
<option value="41">41</option>
|
||||||
<option value="45">45</option>
|
<option value="42">42</option>
|
||||||
<option value="46">46</option>
|
<option value="43">43</option>
|
||||||
<option value="47">47</option>
|
<option value="44">44</option>
|
||||||
<option value="48">48</option>
|
<option value="45">45</option>
|
||||||
<option value="49">49</option>
|
<option value="46">46</option>
|
||||||
<option value="50">50</option>
|
<option value="47">47</option>
|
||||||
<option value="51">51</option>
|
<option value="48">48</option>
|
||||||
<option value="52">52</option>
|
<option value="49">49</option>
|
||||||
<option value="53">53</option>
|
<option value="50">50</option>
|
||||||
<option value="54">54</option>
|
<option value="51">51</option>
|
||||||
<option value="55">55</option>
|
<option value="52">52</option>
|
||||||
<option value="56">56</option>
|
<option value="53">53</option>
|
||||||
<option value="57">57</option>
|
<option value="54">54</option>
|
||||||
<option value="58">58</option>
|
<option value="55">55</option>
|
||||||
<option value="59">59</option>
|
<option value="56">56</option>
|
||||||
</select>
|
<option value="57">57</option>
|
||||||
<select name="Time_Second">
|
<option value="58">58</option>
|
||||||
<option value="00">00</option>
|
<option value="59">59</option>
|
||||||
<option value="01">01</option>
|
</select>
|
||||||
<option value="02">02</option>
|
<select name="Time_Second">
|
||||||
<option value="03">03</option>
|
<option value="00">00</option>
|
||||||
<option value="04">04</option>
|
<option value="01">01</option>
|
||||||
<option value="05">05</option>
|
<option value="02">02</option>
|
||||||
<option value="06">06</option>
|
<option value="03">03</option>
|
||||||
<option value="07">07</option>
|
<option value="04">04</option>
|
||||||
<option value="08">08</option>
|
<option value="05">05</option>
|
||||||
<option value="09">09</option>
|
<option value="06">06</option>
|
||||||
<option value="10">10</option>
|
<option value="07">07</option>
|
||||||
<option value="11">11</option>
|
<option value="08">08</option>
|
||||||
<option value="12">12</option>
|
<option value="09">09</option>
|
||||||
<option value="13">13</option>
|
<option value="10">10</option>
|
||||||
<option value="14">14</option>
|
<option value="11">11</option>
|
||||||
<option value="15">15</option>
|
<option value="12">12</option>
|
||||||
<option value="16">16</option>
|
<option value="13">13</option>
|
||||||
<option value="17">17</option>
|
<option value="14">14</option>
|
||||||
<option value="18">18</option>
|
<option value="15">15</option>
|
||||||
<option value="19">19</option>
|
<option value="16">16</option>
|
||||||
<option value="20">20</option>
|
<option value="17">17</option>
|
||||||
<option value="21">21</option>
|
<option value="18">18</option>
|
||||||
<option value="22">22</option>
|
<option value="19">19</option>
|
||||||
<option value="23" selected>23</option>
|
<option value="20">20</option>
|
||||||
<option value="24">24</option>
|
<option value="21">21</option>
|
||||||
<option value="25">25</option>
|
<option value="22">22</option>
|
||||||
<option value="26">26</option>
|
<option value="23" selected>23</option>
|
||||||
<option value="27">27</option>
|
<option value="24">24</option>
|
||||||
<option value="28">28</option>
|
<option value="25">25</option>
|
||||||
<option value="29">29</option>
|
<option value="26">26</option>
|
||||||
<option value="30">30</option>
|
<option value="27">27</option>
|
||||||
<option value="31">31</option>
|
<option value="28">28</option>
|
||||||
<option value="32">32</option>
|
<option value="29">29</option>
|
||||||
<option value="33">33</option>
|
<option value="30">30</option>
|
||||||
<option value="34">34</option>
|
<option value="31">31</option>
|
||||||
<option value="35">35</option>
|
<option value="32">32</option>
|
||||||
<option value="36">36</option>
|
<option value="33">33</option>
|
||||||
<option value="37">37</option>
|
<option value="34">34</option>
|
||||||
<option value="38">38</option>
|
<option value="35">35</option>
|
||||||
<option value="39">39</option>
|
<option value="36">36</option>
|
||||||
<option value="40">40</option>
|
<option value="37">37</option>
|
||||||
<option value="41">41</option>
|
<option value="38">38</option>
|
||||||
<option value="42">42</option>
|
<option value="39">39</option>
|
||||||
<option value="43">43</option>
|
<option value="40">40</option>
|
||||||
<option value="44">44</option>
|
<option value="41">41</option>
|
||||||
<option value="45">45</option>
|
<option value="42">42</option>
|
||||||
<option value="46">46</option>
|
<option value="43">43</option>
|
||||||
<option value="47">47</option>
|
<option value="44">44</option>
|
||||||
<option value="48">48</option>
|
<option value="45">45</option>
|
||||||
<option value="49">49</option>
|
<option value="46">46</option>
|
||||||
<option value="50">50</option>
|
<option value="47">47</option>
|
||||||
<option value="51">51</option>
|
<option value="48">48</option>
|
||||||
<option value="52">52</option>
|
<option value="49">49</option>
|
||||||
<option value="53">53</option>
|
<option value="50">50</option>
|
||||||
<option value="54">54</option>
|
<option value="51">51</option>
|
||||||
<option value="55">55</option>
|
<option value="52">52</option>
|
||||||
<option value="56">56</option>
|
<option value="53">53</option>
|
||||||
<option value="57">57</option>
|
<option value="54">54</option>
|
||||||
<option value="58">58</option>
|
<option value="55">55</option>
|
||||||
<option value="59">59</option>
|
<option value="56">56</option>
|
||||||
</select>
|
<option value="57">57</option>
|
||||||
<select name="Time_Meridian">
|
<option value="58">58</option>
|
||||||
<option value="am" selected>AM</option>
|
<option value="59">59</option>
|
||||||
<option value="pm">PM</option>
|
</select>
|
||||||
</select></programlisting>
|
<select name="Time_Meridian">
|
||||||
|
<option value="am" selected>AM</option>
|
||||||
|
<option value="pm">PM</option>
|
||||||
|
</select>
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.html.table">
|
<sect1 id="language.function.html.table">
|
||||||
<title>html_table (Ausgabe von HTML-TABLE Tag)</title>
|
<title>html_table (Ausgabe von HTML-TABLE Tag)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.mailto">
|
<sect1 id="language.function.mailto">
|
||||||
<title>mailto</title>
|
<title>mailto</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.math">
|
<sect1 id="language.function.math">
|
||||||
<title>math (Mathematik)</title>
|
<title>math (Mathematik)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.popup.init">
|
<sect1 id="language.function.popup.init">
|
||||||
<title>popup_init (Popup Initialisieren)</title>
|
<title>popup_init (Popup Initialisieren)</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -20,9 +21,11 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>popup_init</title>
|
<title>popup_init</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* 'popup_init' muss einmalig am Anfang der Seite aufgerufen werden *}
|
{* popup_init must be called once at the top of the page *}
|
||||||
{popup_init src="/javascripts/overlib.js"}</programlisting>
|
{popup_init src="/javascripts/overlib.js"}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.popup">
|
<sect1 id="language.function.popup">
|
||||||
<title>popup (Popup-Inhalt definieren)</title>
|
<title>popup (Popup-Inhalt definieren)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.function.textformat">
|
<sect1 id="language.function.textformat">
|
||||||
<title>textformat (Textformatierung)</title>
|
<title>textformat (Textformatierung)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.14 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="language.modifiers">
|
<chapter id="language.modifiers">
|
||||||
<title>Variablen-Modifikatoren</title>
|
<title>Variablen-Modifikatoren</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -11,11 +12,19 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Modifikator Beispiel</title>
|
<title>Modifikator Beispiel</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* Schreibe den Titel in Grossbuchstaben *}
|
{* Schreibe den Titel in Grossbuchstaben *}
|
||||||
<h2>{$titel|upper}</h2>
|
<h2>{$titel|upper}</h2>
|
||||||
|
|
||||||
{* Kürze das Thema auf 40 Zeichen, und hänge '...' an. *}
|
{* Kürze das Thema auf 40 Zeichen, und hänge '...' an. *}
|
||||||
Thema: {$thema|truncate:40:"..."}</programlisting>
|
Thema: {$thema|truncate:40:"..."}
|
||||||
|
|
||||||
|
{* formatierung einer Zeichenkette *}
|
||||||
|
{"now"|date_format:"%Y/%m/%d"}
|
||||||
|
|
||||||
|
{* modifier auf eigene Funktion anwenden *}
|
||||||
|
{mailto|upper address="me@domain.dom"}
|
||||||
|
]]></programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Wenn Sie einen Modifikator auf ein Array anwenden, wird dieser auf jeden Wert angewandt.
|
Wenn Sie einen Modifikator auf ein Array anwenden, wird dieser auf jeden Wert angewandt.
|
||||||
@@ -46,6 +55,7 @@ Thema: {$thema|truncate:40:"..."}</programlisting>
|
|||||||
&designers.language-modifiers.language-modifier-escape;
|
&designers.language-modifiers.language-modifier-escape;
|
||||||
&designers.language-modifiers.language-modifier-indent;
|
&designers.language-modifiers.language-modifier-indent;
|
||||||
&designers.language-modifiers.language-modifier-lower;
|
&designers.language-modifiers.language-modifier-lower;
|
||||||
|
&designers.language-modifiers.language-modifier-nl2br;
|
||||||
&designers.language-modifiers.language-modifier-regex-replace;
|
&designers.language-modifiers.language-modifier-regex-replace;
|
||||||
&designers.language-modifiers.language-modifier-replace;
|
&designers.language-modifiers.language-modifier-replace;
|
||||||
&designers.language-modifiers.language-modifier-spacify;
|
&designers.language-modifiers.language-modifier-spacify;
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.capitalize">
|
<sect1 id="language.modifier.capitalize">
|
||||||
<title>capitalize (in Grossbuchstaben schreiben)</title>
|
<title>capitalize (in Grossbuchstaben schreiben)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.cat">
|
<sect1 id="language.modifier.cat">
|
||||||
<title>cat</title>
|
<title>cat</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.count.characters">
|
<sect1 id="language.modifier.count.characters">
|
||||||
<title>count_characters (Buchstaben zählen)</title>
|
<title>count_characters (Buchstaben zählen)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -43,8 +44,9 @@
|
|||||||
AUSGABE:
|
AUSGABE:
|
||||||
|
|
||||||
20% der US-Amerikaner finden ihr Land (die USA) nicht auf der Landkarte.
|
20% der US-Amerikaner finden ihr Land (die USA) nicht auf der Landkarte.
|
||||||
|
61
|
||||||
72
|
72
|
||||||
61</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.count.paragraphs">
|
<sect1 id="language.modifier.count.paragraphs">
|
||||||
<title>count_paragraphs (Absätze zählen)</title>
|
<title>count_paragraphs (Absätze zählen)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.count.sentences">
|
<sect1 id="language.modifier.count.sentences">
|
||||||
<title>count_sentences (Sätze zählen)</title>
|
<title>count_sentences (Sätze zählen)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.count.words">
|
<sect1 id="language.modifier.count.words">
|
||||||
<title>count_words (Wörter zählen)</title>
|
<title>count_words (Wörter zählen)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.date.format">
|
<sect1 id="language.modifier.date.format">
|
||||||
<title>date_format (Datums Formatierung)</title>
|
<title>date_format (Datums Formatierung)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.default">
|
<sect1 id="language.modifier.default">
|
||||||
<title>default (Standardwert)</title>
|
<title>default (Standardwert)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.escape">
|
<sect1 id="language.modifier.escape">
|
||||||
<title>escape (Maskieren)</title>
|
<title>escape (Maskieren)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.indent">
|
<sect1 id="language.modifier.indent">
|
||||||
<title>indent (Einrücken)</title>
|
<title>indent (Einrücken)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -46,16 +47,21 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>indent (Einrücken)</title>
|
<title>indent (Einrücken)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
{$arikelTitel}
|
<![CDATA[
|
||||||
|
{$articleTitle}
|
||||||
|
|
||||||
{$arikelTitel|indent}
|
{$articleTitle|indent}
|
||||||
|
|
||||||
{$arikelTitel|indent:10}
|
{$articleTitle|indent:10}
|
||||||
|
|
||||||
{$arikelTitel|indent:1:"\t"}
|
|
||||||
|
|
||||||
AUSGABE:
|
|
||||||
|
|
||||||
|
{$articleTitle|indent:1:"\t"}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
Ausgabe:
|
||||||
|
</para>
|
||||||
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
Nach einer feuchtfröhlichen Nacht fand ein Brite sein Auto
|
Nach einer feuchtfröhlichen Nacht fand ein Brite sein Auto
|
||||||
nicht mehr und meldete es als gestohlen. Ein Jahr später
|
nicht mehr und meldete es als gestohlen. Ein Jahr später
|
||||||
besuchte er den Ort wieder und erinnerte sich, dass er
|
besuchte er den Ort wieder und erinnerte sich, dass er
|
||||||
@@ -78,7 +84,9 @@ dort stand das Fahrzeug nach einem Jahr auch noch.
|
|||||||
nicht mehr und meldete es als gestohlen. Ein Jahr später
|
nicht mehr und meldete es als gestohlen. Ein Jahr später
|
||||||
besuchte er den Ort wieder und erinnerte sich, dass er
|
besuchte er den Ort wieder und erinnerte sich, dass er
|
||||||
das Auto nur an einem anderen Ort abgestellt hatte -
|
das Auto nur an einem anderen Ort abgestellt hatte -
|
||||||
dort stand das Fahrzeug nach einem Jahr auch noch.</programlisting>
|
dort stand das Fahrzeug nach einem Jahr auch noch.
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.lower">
|
<sect1 id="language.modifier.lower">
|
||||||
<title>lower (in Kleinbuchstaben schreiben)</title>
|
<title>lower (in Kleinbuchstaben schreiben)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.nl2br">
|
<sect1 id="language.modifier.nl2br">
|
||||||
<title>nl2br</title>
|
<title>nl2br</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.regex.replace">
|
<sect1 id="language.modifier.regex.replace">
|
||||||
<title>regex_replace (Ersetzen mit regulären Ausdrücken)</title>
|
<title>regex_replace (Ersetzen mit regulären Ausdrücken)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.replace">
|
<sect1 id="language.modifier.replace">
|
||||||
<title>replace (Ersetzen)</title>
|
<title>replace (Ersetzen)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.spacify">
|
<sect1 id="language.modifier.spacify">
|
||||||
<title>spacify (Zeichenkette splitten)</title>
|
<title>spacify (Zeichenkette splitten)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.string.format">
|
<sect1 id="language.modifier.string.format">
|
||||||
<title>string_format (Zeichenkette formatieren)</title>
|
<title>string_format (Zeichenkette formatieren)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,21 +1,70 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="language.modifier.strip.tags">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>strip_tags (HTML-Tags entfernen)</title>
|
<sect1 id="language.modifier.strip.tags">
|
||||||
<para>
|
<title>strip_tags</title>
|
||||||
Entfernt alle HTML-Tags, beziehungsweise Zeichenketten die von < und > umschlossen sind.
|
<informaltable frame="all">
|
||||||
</para>
|
<tgroup cols="5">
|
||||||
<example>
|
<colspec colname="param" align="center" />
|
||||||
<title>strip_tags (HTML-Tags entfernen)</title>
|
<colspec colname="type" align="center" />
|
||||||
<programlisting>
|
<colspec colname="required" align="center" />
|
||||||
{$atrikelTitel}
|
<colspec colname="default" align="center" />
|
||||||
{$atrikelTitel|strip_tags}
|
<colspec colname="desc"/>
|
||||||
|
<thead>
|
||||||
AUSGABE:
|
<row>
|
||||||
|
<entry>Parameter Position</entry>
|
||||||
Da ein <font face="helvetica">betrunkener Mann</font> auf einem Flug ausfallend wurde, musste <b>das Flugzeug</b> auf einer kleinen Insel zwischenlanden und den Mann aussetzen.
|
<entry>Typ</entry>
|
||||||
Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen.</programlisting>
|
<entry>Benötigt</entry>
|
||||||
</example>
|
<entry>Standard</entry>
|
||||||
|
<entry>Beschreibung</entry>
|
||||||
|
</row>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<row>
|
||||||
|
<entry>1</entry>
|
||||||
|
<entry>bool</entry>
|
||||||
|
<entry>Nein</entry>
|
||||||
|
<entry>true</entry>
|
||||||
|
<entry>Definiert ob Tags durch ' ' oder '' ersetzt werden sollen.</entry>
|
||||||
|
</row>
|
||||||
|
</tbody>
|
||||||
|
</tgroup>
|
||||||
|
</informaltable>
|
||||||
|
<para>
|
||||||
|
Entfernt alle Markup tags. - Eigentlich alles zwischen < und >.
|
||||||
|
</para>
|
||||||
|
<example>
|
||||||
|
<title>strip_tags</title>
|
||||||
|
<programlisting role="php">
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
$smarty = new Smarty;
|
||||||
|
$smarty->assign('articleTitle', "Da ein <font face="helvetica">betrunkener Mann</font> auf einem Flug ausfallend wurde, musste <b>das Flugzeug</b> auf einer kleinen Insel zwischenlanden und den Mann aussetzen.");
|
||||||
|
$smarty->display('index.tpl');
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
where index.tpl is:
|
||||||
|
</para>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
{$articleTitle}
|
||||||
|
{$articleTitle|strip_tags} {* same as {$articleTitle|strip_tags:true} *}
|
||||||
|
{$articleTitle|strip_tags:false}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
This will output:
|
||||||
|
</para>
|
||||||
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
|
Da ein <font face="helvetica">betrunkener Mann</font> auf einem Flug ausfallend wurde, musste <b>das Flugzeug</b> auf einer kleinen Insel zwischenlanden und den Mann aussetzen.
|
||||||
|
Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen.
|
||||||
|
Da ein <font face="helvetica">betrunkener Mann</font> auf einem Flug ausfallend wurde, musste <b>das Flugzeug</b> auf einer kleinen Insel zwischenlanden und den Mann aussetzen.
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.strip">
|
<sect1 id="language.modifier.strip">
|
||||||
<title>strip (Zeichenkette strippen)</title>
|
<title>strip (Zeichenkette strippen)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.truncate">
|
<sect1 id="language.modifier.truncate">
|
||||||
<title>truncate (kürzen)</title>
|
<title>truncate (kürzen)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.upper">
|
<sect1 id="language.modifier.upper">
|
||||||
<title>upper (in Grossbuchstaben umwandeln)</title>
|
<title>upper (in Grossbuchstaben umwandeln)</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.modifier.wordwrap">
|
<sect1 id="language.modifier.wordwrap">
|
||||||
<title>wordwrap (Zeilenumbruch)</title>
|
<title>wordwrap (Zeilenumbruch)</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="language.variables">
|
<chapter id="language.variables">
|
||||||
<title>Variablen</title>
|
<title>Variablen</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -13,16 +14,18 @@
|
|||||||
Um eine Variable auszugeben, umschliessen Sie sie mit Trennzeichen, so dass
|
Um eine Variable auszugeben, umschliessen Sie sie mit Trennzeichen, so dass
|
||||||
die Variable das einzige enthaltene Element ist. Beispiele:
|
die Variable das einzige enthaltene Element ist. Beispiele:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{$Name}
|
{$Name}
|
||||||
|
|
||||||
{$Kontakte[zeile].Telefon}
|
{$Kontakte[zeile].Telefon}
|
||||||
|
|
||||||
<body bgcolor="{#bgcolor#}"></programlisting>
|
<body bgcolor="{#bgcolor#}">
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&designers.language-variables.language-assigned-variables;
|
&designers.language-variables.language-assigned-variables;
|
||||||
&designers.language-variables.language-config-variables;
|
&designers.language-variables.language-config-variables;
|
||||||
|
|
||||||
&designers.language-variables.language-variables-smarty;
|
&designers.language-variables.language-variables-smarty;
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.assigned.variables">
|
<sect1 id="language.assigned.variables">
|
||||||
<title>Aus einem PHP-Skript zugewiesene Variablen</title>
|
<title>Aus einem PHP-Skript zugewiesene Variablen</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.config.variables">
|
<sect1 id="language.config.variables">
|
||||||
<title>Verwendung von Variablen aus Konfigurationsdateien</title>
|
<title>Verwendung von Variablen aus Konfigurationsdateien</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="language.variables.smarty">
|
<sect1 id="language.variables.smarty">
|
||||||
<title>Die reservierte {$smarty} Variable</title>
|
<title>Die reservierte {$smarty} Variable</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
|
||||||
<part id="getting.started">
|
<part id="getting.started">
|
||||||
<title>Erste Schritte</title>
|
<title>Erste Schritte</title>
|
||||||
<chapter id="what.is.smarty">
|
<chapter id="what.is.smarty">
|
||||||
@@ -422,3 +422,23 @@ $smarty->display('index.tpl');</screen>
|
|||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
</part>
|
</part>
|
||||||
|
<!-- 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
|
||||||
|
-->
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<!ENTITY SMARTYManual "Smarty - die kompilierende PHP Template-Engine">
|
<!ENTITY SMARTYManual "Smarty - die kompilierende PHP Template-Engine">
|
||||||
<!ENTITY SMARTYDesigners "Smarty für Template Designer">
|
<!ENTITY SMARTYDesigners "Smarty für Template Designer">
|
||||||
<!ENTITY SMARTYProgrammers "Smarty für Programmierer">
|
<!ENTITY SMARTYProgrammers "Smarty für Programmierer">
|
||||||
|
@@ -0,0 +1,11 @@
|
|||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
|
<!ENTITY note.parameter.merge '<note>
|
||||||
|
<title>Technische Bemerkung</title>
|
||||||
|
<para>
|
||||||
|
Der <parameter>merge</parameter> Parameter berüksichtigt Array Keys. Das bedeutet, dass numerisch indizierte Arrays sich gegenseitig überschreiben können, oder die Keys nicht sequentiell ausgegeben werden. Dies, im Gegensatz zur PHP Funktion array_merge(), die numerische Keys neu sortiert.
|
||||||
|
</para>
|
||||||
|
</note>'>
|
||||||
|
|
||||||
|
<!ENTITY parameter.compileid '<para>
|
||||||
|
Als optionaler dritter Parameter, können sie die <parameter>compile_id</parameter> angeben. Dies ist sinnvoll, wenn Sie verschiedene Versionen der komipilerten Templates für verschiedene Sprachen unterhalten wollen. Weiter ist dieser Parameter nützlich, wenn Sie mehrere $template_dir Verzeichnisse, aber nur ein $compile_dir nutzen. Setzen Sie <parameter>compile_id</parameter> für jedes Template Verzeichnis, da gleichnamige Templates sich sonst überschreiben. Sie können die <link linkend="variable.compile.id">$compile_id</link> auch nur einmal, global setzen.
|
||||||
|
</para>'>
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
<!-- Smarty German Documentation Port -->
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Id$ -->
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<!-- $Author$ -->
|
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
|
||||||
<preface id="preface">
|
<preface id="preface">
|
||||||
<title>Vorwort</title>
|
<title>Vorwort</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready -->
|
||||||
<chapter id="advanced.features">
|
<chapter id="advanced.features">
|
||||||
<title>Advanced Features</title>
|
<title>Advanced Features</title>
|
||||||
&programmers.advanced-features.advanced-features-objects;
|
&programmers.advanced-features.advanced-features-objects;
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="advanced.features.objects">
|
<sect1 id="advanced.features.objects">
|
||||||
<title>Objekte</title>
|
<title>Objekte</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="advanced.features.outputfilters">
|
<sect1 id="advanced.features.outputfilters">
|
||||||
<title>Ausgabefilter</title>
|
<title>Ausgabefilter</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="advanced.features.postfilters">
|
<sect1 id="advanced.features.postfilters">
|
||||||
<title>'post'-Filter</title>
|
<title>'post'-Filter</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="advanced.features.prefilters">
|
<sect1 id="advanced.features.prefilters">
|
||||||
<title>'pre'-Filter</title>
|
<title>'pre'-Filter</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="section.template.cache.handler.func">
|
<sect1 id="section.template.cache.handler.func">
|
||||||
<title>Cache Handler Funktion</title>
|
<title>Cache Handler Funktion</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -24,9 +25,9 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Beispiel mit einer MySQL Datenbank als Datenquelle</title>
|
<title>Beispiel mit einer MySQL Datenbank als Datenquelle</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<?php
|
<![CDATA[
|
||||||
/*
|
<?php
|
||||||
|
/*
|
||||||
Beispiel Anwendung:
|
Beispiel Anwendung:
|
||||||
|
|
||||||
include('Smarty.class.php');
|
include('Smarty.class.php');
|
||||||
@@ -132,7 +133,9 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?></programlisting>
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready -->
|
||||||
<sect1 id="template.resources">
|
<sect1 id="template.resources">
|
||||||
<title>Ressourcen</title>
|
<title>Ressourcen</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,7 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<chapter id="api.functions">
|
<!-- EN-Revision: 1.8 Maintainer: andreas Status: ready -->
|
||||||
<title>Methoden</title>
|
<reference id="api.functions">
|
||||||
|
<title>Methoden</title>
|
||||||
|
<titleabbrev></titleabbrev>
|
||||||
|
<partintro>
|
||||||
|
<section>
|
||||||
|
<title />
|
||||||
|
<para></para>
|
||||||
|
</section>
|
||||||
|
</partintro>
|
||||||
&programmers.api-functions.api-append;
|
&programmers.api-functions.api-append;
|
||||||
&programmers.api-functions.api-append-by-ref;
|
&programmers.api-functions.api-append-by-ref;
|
||||||
&programmers.api-functions.api-assign;
|
&programmers.api-functions.api-assign;
|
||||||
@@ -11,8 +19,12 @@
|
|||||||
&programmers.api-functions.api-clear-assign;
|
&programmers.api-functions.api-clear-assign;
|
||||||
&programmers.api-functions.api-clear-cache;
|
&programmers.api-functions.api-clear-cache;
|
||||||
&programmers.api-functions.api-clear-compiled-tpl;
|
&programmers.api-functions.api-clear-compiled-tpl;
|
||||||
|
&programmers.api-functions.api-clear-config;
|
||||||
|
&programmers.api-functions.api-config-load;
|
||||||
&programmers.api-functions.api-display;
|
&programmers.api-functions.api-display;
|
||||||
&programmers.api-functions.api-fetch;
|
&programmers.api-functions.api-fetch;
|
||||||
|
&programmers.api-functions.api-get-config-vars;
|
||||||
|
&programmers.api-functions.api-get-registered-object;
|
||||||
&programmers.api-functions.api-get-template-vars;
|
&programmers.api-functions.api-get-template-vars;
|
||||||
&programmers.api-functions.api-is-cached;
|
&programmers.api-functions.api-is-cached;
|
||||||
&programmers.api-functions.api-load-filter;
|
&programmers.api-functions.api-load-filter;
|
||||||
@@ -32,11 +44,12 @@
|
|||||||
&programmers.api-functions.api-unregister-compiler-function;
|
&programmers.api-functions.api-unregister-compiler-function;
|
||||||
&programmers.api-functions.api-unregister-function;
|
&programmers.api-functions.api-unregister-function;
|
||||||
&programmers.api-functions.api-unregister-modifier;
|
&programmers.api-functions.api-unregister-modifier;
|
||||||
|
&programmers.api-functions.api-unregister-object;
|
||||||
&programmers.api-functions.api-unregister-outputfilter;
|
&programmers.api-functions.api-unregister-outputfilter;
|
||||||
&programmers.api-functions.api-unregister-postfilter;
|
&programmers.api-functions.api-unregister-postfilter;
|
||||||
&programmers.api-functions.api-unregister-prefilter;
|
&programmers.api-functions.api-unregister-prefilter;
|
||||||
&programmers.api-functions.api-unregister-resource;
|
&programmers.api-functions.api-unregister-resource;
|
||||||
</chapter>
|
</reference>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,14 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.append.by.ref">
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<title>append_by_ref (via Referenz anhängen)</title>
|
<refentry id="api.append.by.ref">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>append_by_ref (Referenz anhängen)</refname>
|
||||||
<funcdef>void <function>append_by_ref</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef>string <parameter>varname</parameter></paramdef>
|
</refnamediv>
|
||||||
<paramdef>mixed <parameter>var</parameter></paramdef>
|
<refsect1>
|
||||||
</funcprototype>
|
<title />
|
||||||
</funcsynopsis>
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>append_by_ref</methodname>
|
||||||
|
<methodparam><type>string</type><parameter>varname</parameter></methodparam>
|
||||||
|
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||||
|
<methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Wird verwendet, um an Template-Variablen Werte via Referenz (pass by reference) anstatt via Kopie
|
Wird verwendet, um an Template-Variablen Werte via Referenz (pass by reference) anstatt via Kopie
|
||||||
anzuhängen. Konsultieren Sie das PHP-Manual zum Thema 'variable referencing'
|
anzuhängen. Konsultieren Sie das PHP-Manual zum Thema 'variable referencing'
|
||||||
@@ -24,15 +29,21 @@
|
|||||||
Funktion dient als Workaround.
|
Funktion dient als Workaround.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
|
¬e.parameter.merge;
|
||||||
<example>
|
<example>
|
||||||
<title>append_by_ref (via Referenz anhängen)</title>
|
<title>append_by_ref (via Referenz anhängen)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
// Namen/Wert-Paare übergeben
|
<?php
|
||||||
$smarty->append_by_ref("Name",$myname);
|
// Namen/Wert-Paare übergeben
|
||||||
$smarty->append_by_ref("Address",$address);</programlisting>
|
$smarty->append_by_ref("Name", $myname);
|
||||||
|
$smarty->append_by_ref("Address", $address);
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,18 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.append">
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<title>append (anhängen)</title>
|
<refentry id="api.append">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>append (anhängen)</refname>
|
||||||
<funcdef>void <function>append</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef>mixed <parameter>var</parameter></paramdef>
|
</refnamediv>
|
||||||
</funcprototype>
|
<refsect1>
|
||||||
<funcprototype>
|
<title />
|
||||||
<funcdef>void <function>append</function></funcdef>
|
<methodsynopsis>
|
||||||
<paramdef>string <parameter>varname</parameter></paramdef>
|
<type>void</type><methodname>append</methodname>
|
||||||
<paramdef>mixed <parameter>var</parameter></paramdef>
|
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||||
</funcprototype>
|
</methodsynopsis>
|
||||||
</funcsynopsis>
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>append</methodname>
|
||||||
|
<methodparam><type>string</type><parameter>varname</parameter></methodparam>
|
||||||
|
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||||
|
<methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Wird verwendet, um an Template-Variablen weitere Daten anzuhängen. Sie
|
Wird verwendet, um an Template-Variablen weitere Daten anzuhängen. Sie
|
||||||
können entweder ein Namen/Wert-Paar oder assoziative Arrays,
|
können entweder ein Namen/Wert-Paar oder assoziative Arrays,
|
||||||
@@ -21,15 +26,20 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>append (anhängen)</title>
|
<title>append (anhängen)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
// Namen/Wert-Paare übergeben
|
||||||
|
$smarty->append("Name", "Fred");
|
||||||
|
$smarty->append("Address", $address);
|
||||||
|
|
||||||
// Namen/Wert-Paare übergeben
|
// assoziatives Array übergeben
|
||||||
$smarty->append("Name","Fred");
|
$smarty->append(array("city" => "Lincoln", "state" => "Nebraska"));
|
||||||
$smarty->append("Address",$address);
|
?>
|
||||||
|
]]>
|
||||||
// assoziatives Array übergeben
|
</programlisting>
|
||||||
$smarty->append(array("city" => "Lincoln","state" => "Nebraska"));</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,14 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.assign.by.ref">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>assign_by_ref (via Referenz zuweisen)</title>
|
<refentry id="api.assign.by.ref">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>assign_by_ref (Referenz zuweisen)</refname>
|
||||||
<funcdef>void <function>assign_by_ref</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef>string <parameter>varname</parameter></paramdef>
|
</refnamediv>
|
||||||
<paramdef>mixed <parameter>var</parameter></paramdef>
|
<refsect1>
|
||||||
</funcprototype>
|
<title />
|
||||||
</funcsynopsis>
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>assign_by_ref</methodname>
|
||||||
|
<methodparam><type>string</type><parameter>varname</parameter></methodparam>
|
||||||
|
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Weist einen Wert via Referenz zu, anstatt eine Kopie zu machen.
|
Weist einen Wert via Referenz zu, anstatt eine Kopie zu machen.
|
||||||
Konsultieren Sie das PHP-Manual zum Thema 'variable referencing' für weitere Erklärungen.
|
Konsultieren Sie das PHP-Manual zum Thema 'variable referencing' für weitere Erklärungen.
|
||||||
@@ -26,12 +30,17 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>assign_by_ref (via Referenz zuweisen)</title>
|
<title>assign_by_ref (via Referenz zuweisen)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
// Namen/Wert-Paare übergeben
|
<?php
|
||||||
$smarty->assign_by_ref("Name",$myname);
|
// Namen/Wert-Paare übergeben
|
||||||
$smarty->assign_by_ref("Address",$address);</programlisting>
|
$smarty->assign_by_ref('Name', $myname);
|
||||||
|
$smarty->assign_by_ref('Address', $address);
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,18 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.assign">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>assign (zuweisen)</title>
|
<refentry id="api.assign">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>assign</refname>
|
||||||
<funcdef>void <function>assign</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef>mixed <parameter>var</parameter></paramdef>
|
</refnamediv>
|
||||||
</funcprototype>
|
<refsect1>
|
||||||
<funcprototype>
|
<title />
|
||||||
<funcdef>void <function>assign</function></funcdef>
|
<methodsynopsis>
|
||||||
<paramdef>string <parameter>varname</parameter></paramdef>
|
<type>void</type><methodname>assign</methodname>
|
||||||
<paramdef>mixed <parameter>var</parameter></paramdef>
|
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||||
</funcprototype>
|
</methodsynopsis>
|
||||||
</funcsynopsis>
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>assign</methodname>
|
||||||
|
<methodparam><type>string</type><parameter>varname</parameter></methodparam>
|
||||||
|
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Wird verwendet, um einem Template Werte zuzuweisen. Sie können
|
Wird verwendet, um einem Template Werte zuzuweisen. Sie können
|
||||||
entweder Namen/Wert-Paare oder ein assoziatives Array
|
entweder Namen/Wert-Paare oder ein assoziatives Array
|
||||||
@@ -21,16 +25,20 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>assign</title>
|
<title>assign</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
// Namen/Wert-Paare übergeben
|
||||||
|
$smarty->assign('Name', 'Fred');
|
||||||
|
$smarty->assign('Address', $address);
|
||||||
|
|
||||||
// Namen/Wert-Paare übergeben
|
// assoziatives Array mit Namen/Wert-Paaren übergeben
|
||||||
$smarty->assign("Name","Fred");
|
$smarty->assign(array("city" => "Lincoln", "state" => "Nebraska"));
|
||||||
$smarty->assign("Address",$address);
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
// assoziatives Array mit Namen/Wert-Paaren übergeben
|
|
||||||
$smarty->assign(array("city" => "Lincoln","state" => "Nebraska"));</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,24 +1,33 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.clear.all.assign">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>clear_all_assign (alle Zuweisungen löschen)</title>
|
<refentry id="api.clear.all.assign">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>clear_all_assign (alle Zuweisungen löschen)</refname>
|
||||||
<funcdef>void <function>clear_all_assign</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef><parameter></parameter></paramdef>
|
</refnamediv>
|
||||||
</funcprototype>
|
<refsect1>
|
||||||
</funcsynopsis>
|
<title />
|
||||||
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>clear_all_assign</methodname>
|
||||||
|
<void />
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Löscht die Werte aller zugewiesenen Variablen.
|
Löscht die Werte aller zugewiesenen Variablen.
|
||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>clear_all_assign (alle Zuweisungen löschen)</title>
|
<title>clear_all_assign (alle Zuweisungen löschen)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
// lösche alle zugewiesenen Variablen
|
<?php
|
||||||
$smarty->clear_all_assign();</programlisting>
|
// lösche alle zugewiesenen Variablen
|
||||||
|
$smarty->clear_all_assign();
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,13 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.clear.all.cache">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>clear_all_cache (Cache vollständig leeren)</title>
|
<refentry id="api.clear.all.cache">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>clear_all_cache (Cache vollständig leeren)</refname>
|
||||||
<funcdef>void <function>clear_all_cache</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef>int <parameter>expire time</parameter></paramdef>
|
</refnamediv>
|
||||||
</funcprototype>
|
<refsect1>
|
||||||
</funcsynopsis>
|
<title />
|
||||||
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>clear_all_cache</methodname>
|
||||||
|
<methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Leert den gesamten Template-Cache. Als optionaler Parameter kann ein
|
Leert den gesamten Template-Cache. Als optionaler Parameter kann ein
|
||||||
Mindestalter in Sekunden angegeben werden, das die einzelne Datei haben
|
Mindestalter in Sekunden angegeben werden, das die einzelne Datei haben
|
||||||
@@ -16,11 +20,16 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>clear_all_cache (Cache vollständig leeren)</title>
|
<title>clear_all_cache (Cache vollständig leeren)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
// leere den gesamten cache
|
<?php
|
||||||
$smarty->clear_all_cache();</programlisting>
|
// leere den gesamten cache
|
||||||
|
$smarty->clear_all_cache();
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,28 +1,36 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.clear.assign">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>clear_assign (lösche Zuweisung)</title>
|
<refentry id="api.clear.assign">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>clear_assign (lösche Zuweisung)</refname>
|
||||||
<funcdef>void <function>clear_assign</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef>string <parameter>var</parameter></paramdef>
|
</refnamediv>
|
||||||
</funcprototype>
|
<refsect1>
|
||||||
</funcsynopsis>
|
<title />
|
||||||
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>clear_assign</methodname>
|
||||||
|
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Löscht den Wert einer oder mehrerer (übergabe als Array) zugewiesener Variablen.
|
Löscht den Wert einer oder mehrerer (übergabe als Array) zugewiesener Variablen.
|
||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>clear_assign (lösche Zuweisung)</title>
|
<title>clear_assign (lösche Zuweisung)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
// lösche eine einzelne Variable
|
||||||
|
$smarty->clear_assign("Name");
|
||||||
|
|
||||||
// lösche eine einzelne Variable
|
// lösche mehrere Variablen
|
||||||
$smarty->clear_assign("Name");
|
$smarty->clear_assign(array("Name", "Address", "Zip"));
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
// lösche mehrere Variablen
|
</programlisting>
|
||||||
$smarty->clear_assign(array("Name","Address","Zip"));</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,14 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.clear.cache">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>clear_cache (leere Cache)</title>
|
<refentry id="api.clear.cache">
|
||||||
<methodsynopsis>
|
<refnamediv>
|
||||||
<type>void</type><methodname>clear_cache</methodname>
|
<refname>clear_cache (leere Cache)</refname>
|
||||||
<methodparam choice="opt"><type>string</type><parameter>template</parameter></methodparam>
|
<refpurpose></refpurpose>
|
||||||
<methodparam choice="opt"><type>string</type><parameter>cache id</parameter></methodparam>
|
</refnamediv>
|
||||||
<methodparam choice="opt"><type>string</type><parameter>compile id</parameter></methodparam>
|
<refsect1>
|
||||||
<methodparam choice="opt"><type>int</type><parameter>expire time</parameter></methodparam>
|
<title />
|
||||||
</methodsynopsis>
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>clear_cache</methodname>
|
||||||
|
<methodparam><type>string</type><parameter>template</parameter></methodparam>
|
||||||
|
<methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam>
|
||||||
|
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
|
||||||
|
<methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Löscht den Cache eines bestimmten Templates. Falls Sie mehrere
|
Löscht den Cache eines bestimmten Templates. Falls Sie mehrere
|
||||||
Caches für ein Template verwenden, können Sie als zweiten Parameter
|
Caches für ein Template verwenden, können Sie als zweiten Parameter
|
||||||
@@ -22,15 +28,19 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>clear_cache (Cache leeren)</title>
|
<title>clear_cache (Cache leeren)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
// Cache eines Templates leeren
|
||||||
|
$smarty->clear_cache("index.tpl");
|
||||||
|
|
||||||
// Cache eines Templates leeren
|
// leere den Cache einer bestimmten 'cache-id' eines mehrfach-gecachten Templates
|
||||||
$smarty->clear_cache("index.tpl");
|
$smarty->clear_cache("index.tpl", "CACHEID");
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
// leere den Cache einer bestimmten 'cache-id' eines mehrfach-gecachten Templates
|
</programlisting>
|
||||||
$smarty->clear_cache("index.tpl","CACHEID");</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,13 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.clear.compiled.tpl">
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<title>clear_compiled_tpl (kompiliertes Template löschen)</title>
|
<refentry id="api.clear.compiled.tpl">
|
||||||
<funcsynopsis>
|
<refnamediv>
|
||||||
<funcprototype>
|
<refname>clear_compiled_tpl (kompiliertes Template löschen)</refname>
|
||||||
<funcdef>void <function>clear_compiled_tpl</function></funcdef>
|
<refpurpose></refpurpose>
|
||||||
<paramdef>string <parameter>tpl_file</parameter></paramdef>
|
</refnamediv>
|
||||||
</funcprototype>
|
<refsect1>
|
||||||
</funcsynopsis>
|
<title />
|
||||||
|
<methodsynopsis>
|
||||||
|
<type>void</type><methodname>clear_compiled_tpl</methodname>
|
||||||
|
<methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam>
|
||||||
|
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
|
||||||
|
<methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam>
|
||||||
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Löscht die kompilierte Version des angegebenen Templates. Falls
|
Löscht die kompilierte Version des angegebenen Templates. Falls
|
||||||
kein Template-Name übergeben wird, werden alle kompilierten
|
kein Template-Name übergeben wird, werden alle kompilierten
|
||||||
@@ -16,15 +22,19 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>clear_compiled_tpl (kompiliertes Template löschen)</title>
|
<title>clear_compiled_tpl (kompiliertes Template löschen)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
// ein bestimmtes kompiliertes Template löschen
|
||||||
|
$smarty->clear_compiled_tpl("index.tpl");
|
||||||
|
|
||||||
// ein bestimmtes kompiliertes Template löschen
|
// das gesamte Kompilier-Verzeichnis löschen
|
||||||
$smarty->clear_compiled_tpl("index.tpl");
|
$smarty->clear_compiled_tpl();
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
// das gesamte Kompilier-Verzeichnis löschen
|
</programlisting>
|
||||||
$smarty->clear_compiled_tpl();</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<refentry id="api.clear.config">
|
<refentry id="api.clear.config">
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
<refname>clear_config</refname>
|
<refname>clear_config</refname>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<refentry id="api.config.load">
|
<refentry id="api.config.load">
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
<refname>config_load</refname>
|
<refname>config_load</refname>
|
||||||
|
@@ -1,13 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.display">
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<title>display (ausgeben)</title>
|
<refentry id="api.display">
|
||||||
<methodsynopsis>
|
<refnamediv>
|
||||||
|
<refname>display (ausgeben)</refname>
|
||||||
|
<refpurpose></refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
<refsect1>
|
||||||
|
<title />
|
||||||
|
<methodsynopsis>
|
||||||
<type>void</type><methodname>display</methodname>
|
<type>void</type><methodname>display</methodname>
|
||||||
<methodparam><type>string</type><parameter>template</parameter></methodparam>
|
<methodparam><type>string</type><parameter>template</parameter></methodparam>
|
||||||
<methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam>
|
<methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam>
|
||||||
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
|
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
|
||||||
</methodsynopsis>
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Gibt ein Template aus. Sie müssen einen gültigen
|
Gibt ein Template aus. Sie müssen einen gültigen
|
||||||
<link linkend="template.resources">Template Ressourcen</link>-Typ
|
<link linkend="template.resources">Template Ressourcen</link>-Typ
|
||||||
@@ -28,33 +34,34 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>display (ausgeben)</title>
|
<title>display (ausgeben)</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
include("Smarty.class.php");
|
<![CDATA[
|
||||||
$smarty = new Smarty;
|
<?php
|
||||||
$smarty->caching = true;
|
include("Smarty.class.php");
|
||||||
|
$smarty = new Smarty;
|
||||||
|
$smarty->caching = true;
|
||||||
|
|
||||||
|
// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert
|
||||||
|
if(!$smarty->is_cached("index.tpl")) {
|
||||||
|
|
||||||
// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert
|
// Beispieldaten
|
||||||
if(!$smarty->is_cached("index.tpl"))
|
$address = "245 N 50th";
|
||||||
{
|
$db_data = array(
|
||||||
|
"City" => "Lincoln",
|
||||||
|
"State" => "Nebraska",
|
||||||
|
"Zip" => "68502"
|
||||||
|
);
|
||||||
|
|
||||||
|
$smarty->assign("Name","Fred");
|
||||||
|
$smarty->assign("Address",$address);
|
||||||
|
$smarty->assign($db_data);
|
||||||
|
|
||||||
// Beispieldaten
|
}
|
||||||
$address = "245 N 50th";
|
|
||||||
$db_data = array(
|
|
||||||
"City" => "Lincoln",
|
|
||||||
"State" => "Nebraska",
|
|
||||||
"Zip" = > "68502"
|
|
||||||
);
|
|
||||||
|
|
||||||
$smarty->assign("Name","Fred");
|
// ausgabe
|
||||||
$smarty->assign("Address",$address);
|
$smarty->display("index.tpl");
|
||||||
$smarty->assign($db_data);
|
?>
|
||||||
|
]]>
|
||||||
}
|
</programlisting>
|
||||||
|
|
||||||
|
|
||||||
// Ausgabe
|
|
||||||
$smarty->display("index.tpl");</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Verwenden Sie die Syntax von <link linkend="template.resources">template resources</link>
|
Verwenden Sie die Syntax von <link linkend="template.resources">template resources</link>
|
||||||
@@ -63,24 +70,25 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Beispiele von Template-Ressourcen für 'display()'</title>
|
<title>Beispiele von Template-Ressourcen für 'display()'</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
// absoluter Dateipfad
|
||||||
|
$smarty->display("/usr/local/include/templates/header.tpl");
|
||||||
|
|
||||||
// absoluter Dateipfad
|
// absoluter Dateipfad (alternativ)
|
||||||
$smarty->display("/usr/local/include/templates/header.tpl");
|
$smarty->display("file:/usr/local/include/templates/header.tpl");
|
||||||
|
|
||||||
|
// absoluter Dateipfad unter Windows (MUSS mit 'file:'-Prefix versehen werden)
|
||||||
|
$smarty->display("file:C:/www/pub/templates/header.tpl");
|
||||||
|
|
||||||
// absoluter Dateipfad (alternativ)
|
// aus der Template-Ressource 'db' einbinden
|
||||||
$smarty->display("file:/usr/local/include/templates/header.tpl");
|
$smarty->display("db:header.tpl");
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
// absoluter Dateipfad unter Windows (MUSS mit 'file:'-Prefix versehen werden)
|
</programlisting>
|
||||||
$smarty->display("file:C:/www/pub/templates/header.tpl");
|
|
||||||
|
|
||||||
|
|
||||||
// aus der Template-Ressource 'db' einbinden
|
|
||||||
$smarty->display("db:header.tpl");</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
|
</refsect1>
|
||||||
</sect1>
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,13 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<sect1 id="api.fetch">
|
<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready -->
|
||||||
<title>fetch</title>
|
<refentry id="api.fetch">
|
||||||
<methodsynopsis>
|
<refnamediv>
|
||||||
|
<refname>fetch</refname>
|
||||||
|
<refpurpose></refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
<refsect1>
|
||||||
|
<title />
|
||||||
|
<methodsynopsis>
|
||||||
<type>string</type><methodname>fetch</methodname>
|
<type>string</type><methodname>fetch</methodname>
|
||||||
<methodparam><type>string</type><parameter>template</parameter></methodparam>
|
<methodparam><type>string</type><parameter>template</parameter></methodparam>
|
||||||
<methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam>
|
<methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam>
|
||||||
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
|
<methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam>
|
||||||
</methodsynopsis>
|
</methodsynopsis>
|
||||||
<para>
|
<para>
|
||||||
Gibt die Ausgabe des Template zurück, anstatt es direkt anzuzeigen. Übergeben Sie
|
Gibt die Ausgabe des Template zurück, anstatt es direkt anzuzeigen. Übergeben Sie
|
||||||
einen gültigen <link linkend="template.resources">Template Ressource</link>-Typ
|
einen gültigen <link linkend="template.resources">Template Ressource</link>-Typ
|
||||||
@@ -29,41 +35,42 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>fetch</title>
|
<title>fetch</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
include("Smarty.class.php");
|
<![CDATA[
|
||||||
$smarty = new Smarty;
|
<?php
|
||||||
|
include("Smarty.class.php");
|
||||||
|
$smarty = new Smarty;
|
||||||
|
|
||||||
$smarty->caching = true;
|
$smarty->caching = true;
|
||||||
|
|
||||||
|
// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert
|
||||||
|
if(!$smarty->is_cached("index.tpl")) {
|
||||||
|
|
||||||
// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert
|
// Beispieldaten
|
||||||
if(!$smarty->is_cached("index.tpl"))
|
$address = "245 N 50th";
|
||||||
{
|
$db_data = array(
|
||||||
|
"City" => "Lincoln",
|
||||||
|
"State" => "Nebraska",
|
||||||
|
"Zip" => "68502"
|
||||||
|
);
|
||||||
|
|
||||||
|
$smarty->assign("Name","Fred");
|
||||||
|
$smarty->assign("Address",$address);
|
||||||
|
$smarty->assign($db_data);
|
||||||
|
|
||||||
// Beispieldaten
|
}
|
||||||
$address = "245 N 50th";
|
|
||||||
$db_data = array(
|
|
||||||
"City" => "Lincoln",
|
|
||||||
"State" => "Nebraska",
|
|
||||||
"Zip" = > "68502"
|
|
||||||
);
|
|
||||||
|
|
||||||
$smarty->assign("Name","Fred");
|
// ausgabe abfangen
|
||||||
$smarty->assign("Address",$address);
|
$output = $smarty->fetch("index.tpl");
|
||||||
$smarty->assign($db_data);
|
|
||||||
|
|
||||||
}
|
// Etwas mit $output anstellen
|
||||||
|
|
||||||
|
echo $output;
|
||||||
// Ausgabe abfangen
|
?>
|
||||||
$output = $smarty->fetch("index.tpl");
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
|
||||||
// Etwas mit $output anstellen
|
|
||||||
|
|
||||||
echo $output;</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</refsect1>
|
||||||
|
</refentry>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
mode: sgml
|
mode: sgml
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<refentry id="api.get.config.vars">
|
<refentry id="api.get.config.vars">
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
<refname>get_config_vars</refname>
|
<refname>get_config_vars</refname>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
|
||||||
<refentry id="api.get.registered.object">
|
<refentry id="api.get.registered.object">
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
<refname>get_registered_object</refname>
|
<refname>get_registered_object</refname>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user