From 05d0bbbca18dbc113fa1c7490d9e7bdf33faff22 Mon Sep 17 00:00:00 2001 From: andreas Date: Fri, 16 Jul 2004 14:32:31 +0000 Subject: [PATCH] - 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 --- docs/de/appendixes/bugs.xml | 5 +- docs/de/appendixes/resources.xml | 5 +- docs/de/appendixes/tips.xml | 109 ++++-- docs/de/appendixes/troubleshooting.xml | 3 +- docs/de/bookinfo.xml | 2 +- .../designers/chapter-debugging-console.xml | 3 +- docs/de/designers/config-files.xml | 7 +- docs/de/designers/language-basic-syntax.xml | 8 +- .../language-escaping.xml | 1 + .../language-basic-syntax/language-math.xml | 7 +- .../language-syntax-attributes.xml | 10 +- .../language-syntax-comments.xml | 9 +- .../language-syntax-functions.xml | 8 +- .../language-syntax-quotes.xml | 6 +- .../designers/language-builtin-functions.xml | 3 +- .../language-function-capture.xml | 3 +- .../language-function-config-load.xml | 57 +-- .../language-function-foreach.xml | 3 +- .../language-function-if.xml | 3 +- .../language-function-include-php.xml | 3 +- .../language-function-include.xml | 3 +- .../language-function-insert.xml | 3 +- .../language-function-ldelim.xml | 3 +- .../language-function-literal.xml | 3 +- .../language-function-php.xml | 3 +- .../language-function-section.xml | 5 +- .../language-function-strip.xml | 27 +- .../language-combining-modifiers.xml | 33 +- .../designers/language-custom-functions.xml | 4 +- .../language-function-assign.xml | 3 +- .../language-function-counter.xml | 37 +- .../language-function-cycle.xml | 36 +- .../language-function-debug.xml | 3 +- .../language-function-eval.xml | 3 +- .../language-function-fetch.xml | 14 +- .../language-function-html-checkboxes.xml | 86 +++-- .../language-function-html-image.xml | 43 ++- .../language-function-html-options.xml | 3 +- .../language-function-html-radios.xml | 3 +- .../language-function-html-select-date.xml | 24 +- .../language-function-html-select-time.xml | 325 +++++++++--------- .../language-function-html-table.xml | 3 +- .../language-function-mailto.xml | 1 + .../language-function-math.xml | 3 +- .../language-function-popup-init.xml | 11 +- .../language-function-popup.xml | 3 +- .../language-function-textformat.xml | 3 +- docs/de/designers/language-modifiers.xml | 12 +- .../language-modifier-capitalize.xml | 3 +- .../language-modifier-cat.xml | 3 +- .../language-modifier-count-characters.xml | 6 +- .../language-modifier-count-paragraphs.xml | 3 +- .../language-modifier-count-sentences.xml | 3 +- .../language-modifier-count-words.xml | 3 +- .../language-modifier-date-format.xml | 3 +- .../language-modifier-default.xml | 3 +- .../language-modifier-escape.xml | 3 +- .../language-modifier-indent.xml | 26 +- .../language-modifier-lower.xml | 3 +- .../language-modifier-nl2br.xml | 1 + .../language-modifier-regex-replace.xml | 3 +- .../language-modifier-replace.xml | 3 +- .../language-modifier-spacify.xml | 3 +- .../language-modifier-string-format.xml | 3 +- .../language-modifier-strip-tags.xml | 83 ++++- .../language-modifier-strip.xml | 3 +- .../language-modifier-truncate.xml | 3 +- .../language-modifier-upper.xml | 3 +- .../language-modifier-wordwrap.xml | 3 +- docs/de/designers/language-variables.xml | 9 +- .../language-assigned-variables.xml | 3 +- .../language-config-variables.xml | 3 +- .../language-variables-smarty.xml | 3 +- docs/de/getting-started.xml | 22 +- docs/de/language-defs.ent | 2 +- docs/de/language-snippets.ent | 11 + docs/de/preface.xml | 6 +- docs/de/programmers/advanced-features.xml | 1 + .../advanced-features-objects.xml | 3 +- .../advanced-features-outputfilters.xml | 3 +- .../advanced-features-postfilters.xml | 3 +- .../advanced-features-prefilters.xml | 3 +- .../section-template-cache-handler-func.xml | 13 +- .../advanced-features/template-resources.xml | 3 +- docs/de/programmers/api-functions.xml | 19 +- .../api-functions/api-append-by-ref.xml | 41 ++- .../programmers/api-functions/api-append.xml | 52 +-- .../api-functions/api-assign-by-ref.xml | 39 ++- .../programmers/api-functions/api-assign.xml | 54 +-- .../api-functions/api-clear-all-assign.xml | 35 +- .../api-functions/api-clear-all-cache.xml | 35 +- .../api-functions/api-clear-assign.xml | 42 ++- .../api-functions/api-clear-cache.xml | 46 ++- .../api-functions/api-clear-compiled-tpl.xml | 44 ++- .../api-functions/api-clear-config.xml | 1 + .../api-functions/api-config-load.xml | 1 + .../programmers/api-functions/api-display.xml | 112 +++--- .../programmers/api-functions/api-fetch.xml | 91 ++--- .../api-functions/api-get-config-vars.xml | 1 + .../api-get-registered-object.xml | 1 + .../api-functions/api-get-template-vars.xml | 45 ++- .../api-functions/api-is-cached.xml | 74 ++-- .../api-functions/api-load-filter.xml | 40 ++- .../api-functions/api-register-block.xml | 73 ++-- .../api-register-compiler-function.xml | 29 +- .../api-functions/api-register-function.xml | 59 ++-- .../api-functions/api-register-modifier.xml | 46 ++- .../api-functions/api-register-object.xml | 33 +- .../api-register-outputfilter.xml | 25 +- .../api-functions/api-register-postfilter.xml | 25 +- .../api-functions/api-register-prefilter.xml | 25 +- .../api-functions/api-register-resource.xml | 40 ++- .../api-functions/api-template-exists.xml | 33 +- .../api-functions/api-trigger-error.xml | 33 +- .../api-functions/api-unregister-block.xml | 33 +- .../api-unregister-compiler-function.xml | 29 +- .../api-functions/api-unregister-function.xml | 52 +-- .../api-functions/api-unregister-modifier.xml | 53 +-- .../api-functions/api-unregister-object.xml | 1 + .../api-unregister-outputfilter.xml | 32 +- .../api-unregister-postfilter.xml | 32 +- .../api-unregister-prefilter.xml | 32 +- .../api-functions/api-unregister-resource.xml | 46 ++- docs/de/programmers/api-variables.xml | 10 +- .../variable-autoload-filters.xml | 11 +- .../api-variables/variable-cache-dir.xml | 3 +- .../variable-cache-handler-func.xml | 3 +- .../api-variables/variable-cache-lifetime.xml | 3 +- .../variable-cache-modified-check.xml | 3 +- .../api-variables/variable-caching.xml | 3 +- .../api-variables/variable-compile-check.xml | 3 +- .../api-variables/variable-compile-dir.xml | 3 +- .../api-variables/variable-compile-id.xml | 3 +- .../api-variables/variable-compiler-class.xml | 3 +- .../variable-config-booleanize.xml | 1 + .../api-variables/variable-config-dir.xml | 3 +- .../variable-config-fix-newlines.xml | 1 + .../variable-config-overwrite.xml | 1 + .../variable-config-read-hidden.xml | 1 + .../api-variables/variable-debug-tpl.xml | 3 +- .../api-variables/variable-debugging-ctrl.xml | 3 +- .../api-variables/variable-debugging.xml | 3 +- .../variable-default-modifiers.xml | 3 +- .../variable-default-resource-type.xml | 3 +- ...variable-default-template-handler-func.xml | 3 +- .../variable-error-reporting.xml | 1 + .../api-variables/variable-force-compile.xml | 3 +- .../api-variables/variable-left-delimiter.xml | 3 +- .../api-variables/variable-php-handling.xml | 3 +- .../api-variables/variable-plugins-dir.xml | 3 +- .../variable-request-use-auto-globals.xml | 3 +- .../variable-request-vars-order.xml | 3 +- .../variable-right-delimiter.xml | 3 +- .../api-variables/variable-secure-dir.xml | 3 +- .../variable-security-settings.xml | 3 +- .../api-variables/variable-security.xml | 3 +- .../api-variables/variable-template-dir.xml | 3 +- .../api-variables/variable-trusted-dir.xml | 3 +- .../api-variables/variable-use-sub-dirs.xml | 3 +- docs/de/programmers/caching.xml | 3 +- .../programmers/caching/caching-cacheable.xml | 48 ++- .../de/programmers/caching/caching-groups.xml | 33 +- .../caching/caching-multiple-caches.xml | 82 +++-- .../caching/caching-setting-up.xml | 143 ++++---- docs/de/programmers/plugins.xml | 1 + .../plugins/plugins-block-functions.xml | 44 +-- .../plugins/plugins-compiler-functions.xml | 47 +-- .../programmers/plugins/plugins-functions.xml | 101 +++--- docs/de/programmers/plugins/plugins-howto.xml | 3 +- .../programmers/plugins/plugins-inserts.xml | 48 +-- .../programmers/plugins/plugins-modifiers.xml | 99 +++--- .../plugins/plugins-naming-conventions.xml | 3 +- .../plugins/plugins-outputfilters.xml | 35 +- .../plugins-prefilters-postfilters.xml | 69 ++-- .../programmers/plugins/plugins-resources.xml | 112 +++--- .../programmers/plugins/plugins-writing.xml | 10 +- docs/de/programmers/smarty-constants.xml | 17 +- 177 files changed, 2251 insertions(+), 1474 deletions(-) diff --git a/docs/de/appendixes/bugs.xml b/docs/de/appendixes/bugs.xml index ae4965ad..a89763c1 100644 --- a/docs/de/appendixes/bugs.xml +++ b/docs/de/appendixes/bugs.xml @@ -1,9 +1,10 @@ + BUGS - Bitte konsultieren Sie die Datei 'BUGS' welche mit Smarty ausgeliefert wird, + Bitte konsultieren Sie die Datei BUGS welche mit Smarty ausgeliefert wird, oder die Webseite. @@ -26,4 +27,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/appendixes/resources.xml b/docs/de/appendixes/resources.xml index e1174c4a..330f05f2 100644 --- a/docs/de/appendixes/resources.xml +++ b/docs/de/appendixes/resources.xml @@ -1,12 +1,13 @@ + Weiterführende Informationen - Smarty's Homepage erreicht man unter &url.smarty;. + Smarty's Homepage erreicht man unter &url.smarty;. Sie können der Smarty Mailingliste beitreten in dem sie ein E-mail an &ml.general.sub;. Das Archiv der Liste - ist hier &url.ml.archive; einsehbar. + ist hier &url.ml.archive; einsehbar. Tips & Tricks @@ -121,23 +122,39 @@ footer.tpl Die Verwendung von date_format -{$startDatum|date_format} - + + + AUSGABE: + + + + + + + + AUSGABE: - + + + + + + +{/if} +]]> + Falls {html_select_date} in einem Template verwendet wird, hat der Programmierer @@ -147,6 +164,8 @@ AUSGABE: Formular Datum-Elemente nach Timestamp konvertieren + +} +]]> + @@ -180,6 +201,8 @@ function makeTimeStamp($year="",$month="",$day="") Die verwendung von 'insert' um einen WML Content-Type header zu senden + +]]> + + // Ihr Template _muss_ danach wie folgt beginnen: - + + + +</wml> +]]> + @@ -248,25 +278,42 @@ Einfach, oder? Template/Script Komponenten +assign($params['assign'], $ticker_info); +} +?> +]]> + + +assign("ticker_name",$ticker_name); - $this->assign("ticker_price",$ticker_price); - -{/php} - -Symbol: {$ticker_name} Preis: {$ticker_price} +Stock Name: {$ticker.name} Stock Price: {$ticker.price} +]]> + Seit Smarty 1.5.0, gibt es einen noch einfacheren und auch saubereren Weg @@ -358,4 +405,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/appendixes/troubleshooting.xml b/docs/de/appendixes/troubleshooting.xml index 24595ef7..ba956d39 100644 --- a/docs/de/appendixes/troubleshooting.xml +++ b/docs/de/appendixes/troubleshooting.xml @@ -1,5 +1,6 @@ + Problemlösung @@ -66,4 +67,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/bookinfo.xml b/docs/de/bookinfo.xml index 543760ce..360dd66f 100755 --- a/docs/de/bookinfo.xml +++ b/docs/de/bookinfo.xml @@ -1,5 +1,6 @@ + Smarty - die kompilierende PHP Template-Engine @@ -24,7 +25,6 @@ ispi of Lincoln, Inc. - + Debugging Konsole @@ -55,4 +56,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/config-files.xml b/docs/de/designers/config-files.xml index d7878ff6..b0f74b5a 100644 --- a/docs/de/designers/config-files.xml +++ b/docs/de/designers/config-files.xml @@ -1,5 +1,6 @@ + Konfigurationsdateien @@ -13,6 +14,7 @@ Beispiel der Konfigurationsdatei-Syntax + +pass=foobar +]]> Die Werte in einer Konfigurationsdatei können in einfachen/doppelten Anführungszeichen @@ -85,4 +88,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-basic-syntax.xml b/docs/de/designers/language-basic-syntax.xml index fa599089..ee600f9a 100644 --- a/docs/de/designers/language-basic-syntax.xml +++ b/docs/de/designers/language-basic-syntax.xml @@ -1,5 +1,6 @@ + Grundlegende Syntax @@ -14,15 +15,12 @@ auf Template-Tags stösst, versucht es diese zu interpretieren und die entsprechenden Ausgaben an deren Stelle einzufügen. - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; &designers.language-basic-syntax.language-math; +&designers.language-basic-syntax.language-escaping; \ No newline at end of file +--> diff --git a/docs/de/designers/language-basic-syntax/language-escaping.xml b/docs/de/designers/language-basic-syntax/language-escaping.xml index cc8582d9..4b8db90f 100644 --- a/docs/de/designers/language-basic-syntax/language-escaping.xml +++ b/docs/de/designers/language-basic-syntax/language-escaping.xml @@ -1,5 +1,6 @@ + Smarty Parsing umgehen diff --git a/docs/de/designers/language-basic-syntax/language-math.xml b/docs/de/designers/language-basic-syntax/language-math.xml index 8e4438fa..98a1ac08 100644 --- a/docs/de/designers/language-basic-syntax/language-math.xml +++ b/docs/de/designers/language-basic-syntax/language-math.xml @@ -1,5 +1,6 @@ + Math @@ -8,6 +9,7 @@ Mathematik Beispiele + +{assign var="foo" value="`$foo+$bar`"} +]]> \ No newline at end of file +--> diff --git a/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml index cf92c7ff..42592947 100644 --- a/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml +++ b/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml @@ -1,5 +1,6 @@ + Attribute / Parameter @@ -18,6 +19,7 @@ Funktions-Parameter Syntax + {html_options values=$vals selected=$selected output=$output} -</SELECT> + +]]> + \ No newline at end of file +--> diff --git a/docs/de/designers/language-basic-syntax/language-syntax-comments.xml b/docs/de/designers/language-basic-syntax/language-syntax-comments.xml index a815abb4..9e59b8a2 100644 --- a/docs/de/designers/language-basic-syntax/language-syntax-comments.xml +++ b/docs/de/designers/language-basic-syntax/language-syntax-comments.xml @@ -1,5 +1,6 @@ + Kommentare @@ -11,6 +12,7 @@ Kommentare + {html_options values=$vals selected=$selected output=$output} -</SELECT> + +]]> \ No newline at end of file +--> diff --git a/docs/de/designers/language-basic-syntax/language-syntax-functions.xml b/docs/de/designers/language-basic-syntax/language-syntax-functions.xml index a310376a..0074d3cc 100644 --- a/docs/de/designers/language-basic-syntax/language-syntax-functions.xml +++ b/docs/de/designers/language-basic-syntax/language-syntax-functions.xml @@ -1,5 +1,6 @@ + Funktionen @@ -10,6 +11,7 @@ Funktions-Syntax + +{include file="footer.tpl"} +]]> + Sowohl der Aufruf von eingebauten, als auch der von eigenen Funktionen folgt der @@ -50,4 +54,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml index b1d02ac8..7b0530f7 100644 --- a/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml +++ b/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml @@ -1,5 +1,6 @@ + Variablen mit Doppelten Anführungszeichen @@ -10,6 +11,7 @@ Syntax von eingebetteten Anfürungszeichen + +]]> + \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions.xml b/docs/de/designers/language-builtin-functions.xml index bdec22f1..38579ee8 100644 --- a/docs/de/designers/language-builtin-functions.xml +++ b/docs/de/designers/language-builtin-functions.xml @@ -1,5 +1,6 @@ + Eingebaute Funktionen @@ -39,4 +40,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-capture.xml b/docs/de/designers/language-builtin-functions/language-function-capture.xml index 6a57030d..c20057f4 100644 --- a/docs/de/designers/language-builtin-functions/language-function-capture.xml +++ b/docs/de/designers/language-builtin-functions/language-function-capture.xml @@ -1,5 +1,6 @@ + capture (Ausgabe abfangen) @@ -99,4 +100,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-config-load.xml b/docs/de/designers/language-builtin-functions/language-function-config-load.xml index cda57fcf..8506d2c0 100644 --- a/docs/de/designers/language-builtin-functions/language-function-config-load.xml +++ b/docs/de/designers/language-builtin-functions/language-function-config-load.xml @@ -1,5 +1,6 @@ + config_load (Konfiguration laden) @@ -71,19 +72,22 @@ Funktion config_load + + +{#seitenTitel#} + + + + + + + +
VornamenNachnamenAdresse
+ + +]]> +
Konfigurationsdateien können Abschnitte enthalten. Um Variablen @@ -98,19 +102,22 @@ Funktion config_load mit Abschnitten + + +{#seitenTitel#} + + + + + + + +
VornamenNachnamenAdresse
+ + +]]> +
\ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-foreach.xml b/docs/de/designers/language-builtin-functions/language-function-foreach.xml index 32ec29e1..2ed3ca56 100644 --- a/docs/de/designers/language-builtin-functions/language-function-foreach.xml +++ b/docs/de/designers/language-builtin-functions/language-function-foreach.xml @@ -1,5 +1,6 @@ + foreach, foreachelse @@ -175,4 +176,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-if.xml b/docs/de/designers/language-builtin-functions/language-function-if.xml index a17d275a..cbe10a76 100644 --- a/docs/de/designers/language-builtin-functions/language-function-if.xml +++ b/docs/de/designers/language-builtin-functions/language-function-if.xml @@ -1,5 +1,6 @@ + if,elseif,else @@ -104,4 +105,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-include-php.xml b/docs/de/designers/language-builtin-functions/language-function-include-php.xml index 6f27c778..80a0d621 100644 --- a/docs/de/designers/language-builtin-functions/language-function-include-php.xml +++ b/docs/de/designers/language-builtin-functions/language-function-include-php.xml @@ -1,5 +1,6 @@ + include_php (PHP-Code einbinden) @@ -125,4 +126,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-include.xml b/docs/de/designers/language-builtin-functions/language-function-include.xml index e8d5d824..05188cab 100644 --- a/docs/de/designers/language-builtin-functions/language-function-include.xml +++ b/docs/de/designers/language-builtin-functions/language-function-include.xml @@ -1,5 +1,6 @@ + include (einbinden) @@ -118,4 +119,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-insert.xml b/docs/de/designers/language-builtin-functions/language-function-insert.xml index d8a5f836..f07bfa5d 100644 --- a/docs/de/designers/language-builtin-functions/language-function-insert.xml +++ b/docs/de/designers/language-builtin-functions/language-function-insert.xml @@ -1,5 +1,6 @@ + insert (einfügen) @@ -135,4 +136,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-ldelim.xml b/docs/de/designers/language-builtin-functions/language-function-ldelim.xml index 5f4145fc..0ceac50a 100644 --- a/docs/de/designers/language-builtin-functions/language-function-ldelim.xml +++ b/docs/de/designers/language-builtin-functions/language-function-ldelim.xml @@ -1,5 +1,6 @@ + ldelim,rdelim (Ausgabe der Trennzeichen) @@ -40,4 +41,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-literal.xml b/docs/de/designers/language-builtin-functions/language-function-literal.xml index def4fd90..650377dc 100644 --- a/docs/de/designers/language-builtin-functions/language-function-literal.xml +++ b/docs/de/designers/language-builtin-functions/language-function-literal.xml @@ -1,5 +1,6 @@ + literal @@ -50,4 +51,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-php.xml b/docs/de/designers/language-builtin-functions/language-function-php.xml index dac82e39..286cd7ed 100644 --- a/docs/de/designers/language-builtin-functions/language-function-php.xml +++ b/docs/de/designers/language-builtin-functions/language-function-php.xml @@ -1,5 +1,6 @@ + php @@ -37,4 +38,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-section.xml b/docs/de/designers/language-builtin-functions/language-function-section.xml index 5e32d0da..fd4d86b1 100644 --- a/docs/de/designers/language-builtin-functions/language-function-section.xml +++ b/docs/de/designers/language-builtin-functions/language-function-section.xml @@ -1,5 +1,6 @@ + section,sectionelse @@ -60,7 +61,7 @@ max integer Nein - 1 + n/a Maximale Anzahl an Iterationen, die Durchlaufen werden. @@ -567,4 +568,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-builtin-functions/language-function-strip.xml b/docs/de/designers/language-builtin-functions/language-function-strip.xml index 87e7fd4e..175a1879 100644 --- a/docs/de/designers/language-builtin-functions/language-function-strip.xml +++ b/docs/de/designers/language-builtin-functions/language-function-strip.xml @@ -1,5 +1,6 @@ + strip @@ -23,24 +24,26 @@ strip tags - + + + + + Das ist ein Test. + + + + {/strip} AUSGABE: -<table border=0><tr><td><A HREF="http://my.domain.com"><font color="red">Das ist ein Test.</font></A></td></tr></table> +
Das ist ein Test.
+]]> +
Achtung: im obigen Beispiel beginnen und enden alle Zeilen mit HTML-Tags. @@ -67,4 +70,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-combining-modifiers.xml b/docs/de/designers/language-combining-modifiers.xml index 98493410..70c139a3 100644 --- a/docs/de/designers/language-combining-modifiers.xml +++ b/docs/de/designers/language-combining-modifiers.xml @@ -1,5 +1,6 @@ + Kombinieren von Modifikatoren @@ -10,15 +11,28 @@ Kombinieren von Modifikatoren -{$artikelTitel} -{$artikelTitel|upper|spacify} -{$artikelTitel|lower|spacify|truncate} -{$artikelTitel|lower|truncate:30|spacify} -{$artikelTitel|lower|spacify|truncate:30:". . ."} +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:". . ."} +]]> + + + AUSGABE: + + + +e i n e m s t a d t r. . .]]> + \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions.xml b/docs/de/designers/language-custom-functions.xml index e02d8816..8142de5a 100644 --- a/docs/de/designers/language-custom-functions.xml +++ b/docs/de/designers/language-custom-functions.xml @@ -1,5 +1,6 @@ + Eigene Funktionen @@ -21,6 +22,7 @@ &designers.language-custom-functions.language-function-html-select-time; &designers.language-custom-functions.language-function-html-table; &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; &designers.language-custom-functions.language-function-textformat; @@ -44,4 +46,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-assign.xml b/docs/de/designers/language-custom-functions/language-function-assign.xml index 72219df0..13082390 100644 --- a/docs/de/designers/language-custom-functions/language-function-assign.xml +++ b/docs/de/designers/language-custom-functions/language-function-assign.xml @@ -1,5 +1,6 @@ + assign (zuweisen) @@ -70,4 +71,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-counter.xml b/docs/de/designers/language-custom-functions/language-function-counter.xml index 8c040002..54a7ee15 100644 --- a/docs/de/designers/language-custom-functions/language-function-counter.xml +++ b/docs/de/designers/language-custom-functions/language-function-counter.xml @@ -1,5 +1,6 @@ + counter (Zähler) @@ -79,21 +80,25 @@ counter (Zähler) - -{* initialisieren *} -{counter start=0 skip=2 print=false} - -{counter}<br> -{counter}<br> -{counter}<br> -{counter}<br> - -AUSGABE: - -2<br> -4<br> -6<br> -8<br> + +{counter}
+{counter}
+{counter}
+]]> + + + AUSGABE: + + + +2
+4
+6
+]]> +
\ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-cycle.xml b/docs/de/designers/language-custom-functions/language-function-cycle.xml index db683d12..ec6ac5a8 100644 --- a/docs/de/designers/language-custom-functions/language-function-cycle.xml +++ b/docs/de/designers/language-custom-functions/language-function-cycle.xml @@ -1,5 +1,6 @@ + cycle (Zyklus) @@ -94,18 +95,27 @@ cycle (Zyklus) - -{* initialisieren *} -{cycle values="#eeeeee,#d0d0d0"} -{cycle} -{cycle} - - -AUSGABE: - -#eeeeee -#d0d0d0 -#eeeeee + + {$data[rows]} + +{/section} +]]> + + + + 1 + + + 2 + + + 3 + +]]> + \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-debug.xml b/docs/de/designers/language-custom-functions/language-function-debug.xml index 459cc1ff..61bef026 100644 --- a/docs/de/designers/language-custom-functions/language-function-debug.xml +++ b/docs/de/designers/language-custom-functions/language-function-debug.xml @@ -1,5 +1,6 @@ + debug @@ -54,4 +55,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-eval.xml b/docs/de/designers/language-custom-functions/language-function-eval.xml index 3c613a88..418f2283 100644 --- a/docs/de/designers/language-custom-functions/language-function-eval.xml +++ b/docs/de/designers/language-custom-functions/language-function-eval.xml @@ -1,5 +1,6 @@ + eval (auswerten) @@ -114,4 +115,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-fetch.xml b/docs/de/designers/language-custom-functions/language-function-fetch.xml index 5f101b8d..3ff9ceea 100644 --- a/docs/de/designers/language-custom-functions/language-function-fetch.xml +++ b/docs/de/designers/language-custom-functions/language-function-fetch.xml @@ -1,5 +1,6 @@ + fetch @@ -66,24 +67,23 @@ fetch - + + {$weather} +{/if} +]]> + \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml index 881c5f4e..b728e761 100644 --- a/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml +++ b/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml @@ -1,5 +1,6 @@ + html_checkboxes (Ausgabe von HTML-CHECKBOX Tag) @@ -82,44 +83,65 @@ html_checkboxes -index.php: +assign('cust_ids', array(1000,1001,1002,1003)); +$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown')); +$smarty->assign('customer_id', 1001); +$smarty->display('index.tpl'); - -index.tpl: - -{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"} - - -index.php: +?> +]] + + + where index.tpl is: + + +"} +]] + + + +$smarty->assign('cust_checkboxes', array( + 1000 => 'Joe Schmoe', + 1001 => 'Jack Smith', + 1002 => 'Jane Johnson', + 1003 => 'Charlie Brown')); +$smarty->assign('customer_id', 1001); +$smarty->display('index.tpl'); +?> +]]> + + + Wobei index.tpl wie folgt aussieht: + + + + + + Das Ergebnis beider Listings: + + +Joe Schmoe
+ +
+
+]]> +
\ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-html-image.xml b/docs/de/designers/language-custom-functions/language-function-html-image.xml index 55035c25..5ad8be06 100644 --- a/docs/de/designers/language-custom-functions/language-function-html-image.xml +++ b/docs/de/designers/language-custom-functions/language-function-html-image.xml @@ -1,5 +1,6 @@ + html_image (Ausgabe von HTML-IMG Tag) @@ -85,6 +86,9 @@ href 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.
+ + Alle weiteren Paarameter werden als Name/Wert Paare (Attribute) im <img>-Tag ausgegeben. + Technische Bemerkung @@ -95,27 +99,36 @@ html_image -index.php: +display('index.tpl'); +?> +]]> + + + Wobei index.tpl wie folgt aussieht: + + + - - - - +]]> + + + Mögliche Ausgabe: + + + + + +]]> +
\ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-html-options.xml b/docs/de/designers/language-custom-functions/language-function-html-options.xml index 1c3f8359..773567ba 100644 --- a/docs/de/designers/language-custom-functions/language-function-html-options.xml +++ b/docs/de/designers/language-custom-functions/language-function-html-options.xml @@ -1,5 +1,6 @@ + html_options (Ausgabe von HTML-Options) @@ -106,4 +107,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-html-radios.xml b/docs/de/designers/language-custom-functions/language-function-html-radios.xml index 23fe2671..fb200fd0 100644 --- a/docs/de/designers/language-custom-functions/language-function-html-radios.xml +++ b/docs/de/designers/language-custom-functions/language-function-html-radios.xml @@ -1,5 +1,6 @@ + html_radios (Ausgabe von HTML-RADIO Tags) @@ -133,4 +134,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-html-select-date.xml b/docs/de/designers/language-custom-functions/language-function-html-select-date.xml index c519b393..98426df0 100644 --- a/docs/de/designers/language-custom-functions/language-function-html-select-date.xml +++ b/docs/de/designers/language-custom-functions/language-function-html-select-date.xml @@ -1,5 +1,6 @@ + html_select_date (Ausgabe von Daten als HTML-'options') @@ -175,6 +176,27 @@ %m Format zur Ausgabe der Monats-Werte, Standardwert ist %m. (strftime)
+ + year_empty + string + Nein + null + 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. + + + month_empty + string + Nein + null + 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. + + + day_empty + string + No + null + 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. +
@@ -297,4 +319,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-html-select-time.xml b/docs/de/designers/language-custom-functions/language-function-html-select-time.xml index d678647f..56833df8 100644 --- a/docs/de/designers/language-custom-functions/language-function-html-select-time.xml +++ b/docs/de/designers/language-custom-functions/language-function-html-select-time.xml @@ -1,5 +1,6 @@ + html_select_time (Ausgabe von Zeiten als HTML-'options') @@ -134,165 +135,171 @@ html_select_time + +]]> + + + Ausgabe: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-html-table.xml b/docs/de/designers/language-custom-functions/language-function-html-table.xml index 0b892edf..97f2b790 100644 --- a/docs/de/designers/language-custom-functions/language-function-html-table.xml +++ b/docs/de/designers/language-custom-functions/language-function-html-table.xml @@ -1,5 +1,6 @@ + html_table (Ausgabe von HTML-TABLE Tag) @@ -142,4 +143,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-mailto.xml b/docs/de/designers/language-custom-functions/language-function-mailto.xml index afd4b262..4d4f4cca 100644 --- a/docs/de/designers/language-custom-functions/language-function-mailto.xml +++ b/docs/de/designers/language-custom-functions/language-function-mailto.xml @@ -1,5 +1,6 @@ + mailto diff --git a/docs/de/designers/language-custom-functions/language-function-math.xml b/docs/de/designers/language-custom-functions/language-function-math.xml index 69538155..d98ae291 100644 --- a/docs/de/designers/language-custom-functions/language-function-math.xml +++ b/docs/de/designers/language-custom-functions/language-function-math.xml @@ -1,5 +1,6 @@ + math (Mathematik) @@ -148,4 +149,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-popup-init.xml b/docs/de/designers/language-custom-functions/language-function-popup-init.xml index 31941ca0..8734b6db 100644 --- a/docs/de/designers/language-custom-functions/language-function-popup-init.xml +++ b/docs/de/designers/language-custom-functions/language-function-popup-init.xml @@ -1,5 +1,6 @@ + popup_init (Popup Initialisieren) @@ -20,9 +21,11 @@ popup_init - -{* 'popup_init' muss einmalig am Anfang der Seite aufgerufen werden *} -{popup_init src="/javascripts/overlib.js"} + + \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-popup.xml b/docs/de/designers/language-custom-functions/language-function-popup.xml index 27de472c..626ac410 100644 --- a/docs/de/designers/language-custom-functions/language-function-popup.xml +++ b/docs/de/designers/language-custom-functions/language-function-popup.xml @@ -1,5 +1,6 @@ + popup (Popup-Inhalt definieren) @@ -408,4 +409,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-custom-functions/language-function-textformat.xml b/docs/de/designers/language-custom-functions/language-function-textformat.xml index c1b69285..25f5154d 100644 --- a/docs/de/designers/language-custom-functions/language-function-textformat.xml +++ b/docs/de/designers/language-custom-functions/language-function-textformat.xml @@ -1,5 +1,6 @@ + textformat (Textformatierung) @@ -248,4 +249,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers.xml b/docs/de/designers/language-modifiers.xml index f5e3664e..bf140e67 100644 --- a/docs/de/designers/language-modifiers.xml +++ b/docs/de/designers/language-modifiers.xml @@ -1,5 +1,6 @@ + Variablen-Modifikatoren @@ -11,11 +12,19 @@ Modifikator Beispiel + +Thema: {$thema|truncate:40:"..."} + +{* formatierung einer Zeichenkette *} +{"now"|date_format:"%Y/%m/%d"} + +{* modifier auf eigene Funktion anwenden *} +{mailto|upper address="me@domain.dom"} +]]> Wenn Sie einen Modifikator auf ein Array anwenden, wird dieser auf jeden Wert angewandt. @@ -46,6 +55,7 @@ Thema: {$thema|truncate:40:"..."} &designers.language-modifiers.language-modifier-escape; &designers.language-modifiers.language-modifier-indent; &designers.language-modifiers.language-modifier-lower; +&designers.language-modifiers.language-modifier-nl2br; &designers.language-modifiers.language-modifier-regex-replace; &designers.language-modifiers.language-modifier-replace; &designers.language-modifiers.language-modifier-spacify; diff --git a/docs/de/designers/language-modifiers/language-modifier-capitalize.xml b/docs/de/designers/language-modifiers/language-modifier-capitalize.xml index a2b2d86d..80c39290 100644 --- a/docs/de/designers/language-modifiers/language-modifier-capitalize.xml +++ b/docs/de/designers/language-modifiers/language-modifier-capitalize.xml @@ -1,5 +1,6 @@ + capitalize (in Grossbuchstaben schreiben) @@ -36,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-cat.xml b/docs/de/designers/language-modifiers/language-modifier-cat.xml index ef8c8ee5..15af33f0 100644 --- a/docs/de/designers/language-modifiers/language-modifier-cat.xml +++ b/docs/de/designers/language-modifiers/language-modifier-cat.xml @@ -1,5 +1,6 @@ + cat @@ -69,4 +70,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-count-characters.xml b/docs/de/designers/language-modifiers/language-modifier-count-characters.xml index f7212447..0d2e7c66 100644 --- a/docs/de/designers/language-modifiers/language-modifier-count-characters.xml +++ b/docs/de/designers/language-modifiers/language-modifier-count-characters.xml @@ -1,5 +1,6 @@ + count_characters (Buchstaben zählen) @@ -43,8 +44,9 @@ AUSGABE: 20% der US-Amerikaner finden ihr Land (die USA) nicht auf der Landkarte. +61 72 -61 + \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml index 862932ce..e3a49f9d 100644 --- a/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ b/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml @@ -1,5 +1,6 @@ + count_paragraphs (Absätze zählen) @@ -39,4 +40,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml index d7b58e3d..dc27ad40 100644 --- a/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml +++ b/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml @@ -1,5 +1,6 @@ + count_sentences (Sätze zählen) @@ -37,4 +38,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-count-words.xml b/docs/de/designers/language-modifiers/language-modifier-count-words.xml index eb0ff54e..ff219ac3 100644 --- a/docs/de/designers/language-modifiers/language-modifier-count-words.xml +++ b/docs/de/designers/language-modifiers/language-modifier-count-words.xml @@ -1,5 +1,6 @@ + count_words (Wörter zählen) @@ -37,4 +38,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-date-format.xml b/docs/de/designers/language-modifiers/language-modifier-date-format.xml index 3006bd62..52fa2c88 100644 --- a/docs/de/designers/language-modifiers/language-modifier-date-format.xml +++ b/docs/de/designers/language-modifiers/language-modifier-date-format.xml @@ -1,5 +1,6 @@ + date_format (Datums Formatierung) @@ -156,4 +157,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-default.xml b/docs/de/designers/language-modifiers/language-modifier-default.xml index d0bfece5..cff4bd5f 100644 --- a/docs/de/designers/language-modifiers/language-modifier-default.xml +++ b/docs/de/designers/language-modifiers/language-modifier-default.xml @@ -1,5 +1,6 @@ + default (Standardwert) @@ -65,4 +66,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-escape.xml b/docs/de/designers/language-modifiers/language-modifier-escape.xml index bf4d8efe..8c7b453b 100644 --- a/docs/de/designers/language-modifiers/language-modifier-escape.xml +++ b/docs/de/designers/language-modifiers/language-modifier-escape.xml @@ -1,5 +1,6 @@ + escape (Maskieren) @@ -89,4 +90,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-indent.xml b/docs/de/designers/language-modifiers/language-modifier-indent.xml index 37c70470..f71709f4 100644 --- a/docs/de/designers/language-modifiers/language-modifier-indent.xml +++ b/docs/de/designers/language-modifiers/language-modifier-indent.xml @@ -1,5 +1,6 @@ + indent (Einrücken) @@ -46,16 +47,21 @@ indent (Einrücken) -{$arikelTitel} + + + + Ausgabe: + + + + dort stand das Fahrzeug nach einem Jahr auch noch. +]]> + \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-lower.xml b/docs/de/designers/language-modifiers/language-modifier-lower.xml index 3e2e0784..7abcaa39 100644 --- a/docs/de/designers/language-modifiers/language-modifier-lower.xml +++ b/docs/de/designers/language-modifiers/language-modifier-lower.xml @@ -1,5 +1,6 @@ + lower (in Kleinbuchstaben schreiben) @@ -36,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-nl2br.xml b/docs/de/designers/language-modifiers/language-modifier-nl2br.xml index 20d78e01..b688a387 100644 --- a/docs/de/designers/language-modifiers/language-modifier-nl2br.xml +++ b/docs/de/designers/language-modifiers/language-modifier-nl2br.xml @@ -1,5 +1,6 @@ + nl2br diff --git a/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml index 12bfba59..df88de4e 100644 --- a/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml +++ b/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml @@ -1,5 +1,6 @@ + regex_replace (Ersetzen mit regulären Ausdrücken) @@ -73,4 +74,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-replace.xml b/docs/de/designers/language-modifiers/language-modifier-replace.xml index 72945de7..c3dc4ce4 100644 --- a/docs/de/designers/language-modifiers/language-modifier-replace.xml +++ b/docs/de/designers/language-modifiers/language-modifier-replace.xml @@ -1,5 +1,6 @@ + replace (Ersetzen) @@ -73,4 +74,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-spacify.xml b/docs/de/designers/language-modifiers/language-modifier-spacify.xml index 491422e0..5f30e122 100644 --- a/docs/de/designers/language-modifiers/language-modifier-spacify.xml +++ b/docs/de/designers/language-modifiers/language-modifier-spacify.xml @@ -1,5 +1,6 @@ + spacify (Zeichenkette splitten) @@ -67,4 +68,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-string-format.xml b/docs/de/designers/language-modifiers/language-modifier-string-format.xml index 97ddee7d..b9a077ba 100644 --- a/docs/de/designers/language-modifiers/language-modifier-string-format.xml +++ b/docs/de/designers/language-modifiers/language-modifier-string-format.xml @@ -1,5 +1,6 @@ + string_format (Zeichenkette formatieren) @@ -66,4 +67,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml index dd136ddd..ee4e8df4 100644 --- a/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml +++ b/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml @@ -1,21 +1,70 @@ - - strip_tags (HTML-Tags entfernen) - - Entfernt alle HTML-Tags, beziehungsweise Zeichenketten die von < und > umschlossen sind. - - -strip_tags (HTML-Tags entfernen) - -{$atrikelTitel} -{$atrikelTitel|strip_tags} - -AUSGABE: - -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. - + + + strip_tags + + + + + + + + + + Parameter Position + Typ + Benötigt + Standard + Beschreibung + + + + + 1 + bool + Nein + true + Definiert ob Tags durch ' ' oder '' ersetzt werden sollen. + + + + + + Entfernt alle Markup tags. - Eigentlich alles zwischen < und >. + + + strip_tags + +assign('articleTitle', "Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen."); +$smarty->display('index.tpl'); +?> +]]> + + + where index.tpl is: + + + + + + This will output: + + +betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug 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 betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen. +]]> + + \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-strip.xml b/docs/de/designers/language-modifiers/language-modifier-strip.xml index d3d682aa..605fc7df 100644 --- a/docs/de/designers/language-modifiers/language-modifier-strip.xml +++ b/docs/de/designers/language-modifiers/language-modifier-strip.xml @@ -1,5 +1,6 @@ + strip (Zeichenkette strippen) @@ -48,4 +49,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-truncate.xml b/docs/de/designers/language-modifiers/language-modifier-truncate.xml index 96502077..93760f77 100644 --- a/docs/de/designers/language-modifiers/language-modifier-truncate.xml +++ b/docs/de/designers/language-modifiers/language-modifier-truncate.xml @@ -1,5 +1,6 @@ + truncate (kürzen) @@ -93,4 +94,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-upper.xml b/docs/de/designers/language-modifiers/language-modifier-upper.xml index 7ddad257..36a1c073 100644 --- a/docs/de/designers/language-modifiers/language-modifier-upper.xml +++ b/docs/de/designers/language-modifiers/language-modifier-upper.xml @@ -1,5 +1,6 @@ + upper (in Grossbuchstaben umwandeln) @@ -36,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml index 6b135b2b..a3cef8d5 100644 --- a/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml +++ b/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml @@ -1,5 +1,6 @@ + wordwrap (Zeilenumbruch) @@ -105,4 +106,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-variables.xml b/docs/de/designers/language-variables.xml index f821bcbe..a4ee76b2 100644 --- a/docs/de/designers/language-variables.xml +++ b/docs/de/designers/language-variables.xml @@ -1,5 +1,6 @@ + Variablen @@ -13,16 +14,18 @@ Um eine Variable auszugeben, umschliessen Sie sie mit Trennzeichen, so dass die Variable das einzige enthaltene Element ist. Beispiele: + +<body bgcolor="{#bgcolor#}"> +]]> + &designers.language-variables.language-assigned-variables; &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; \ No newline at end of file +--> diff --git a/docs/de/designers/language-variables/language-assigned-variables.xml b/docs/de/designers/language-variables/language-assigned-variables.xml index 4c27d898..26f044be 100644 --- a/docs/de/designers/language-variables/language-assigned-variables.xml +++ b/docs/de/designers/language-variables/language-assigned-variables.xml @@ -1,5 +1,6 @@ + Aus einem PHP-Skript zugewiesene Variablen @@ -98,4 +99,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-variables/language-config-variables.xml b/docs/de/designers/language-variables/language-config-variables.xml index 6eddda5b..522d8357 100644 --- a/docs/de/designers/language-variables/language-config-variables.xml +++ b/docs/de/designers/language-variables/language-config-variables.xml @@ -1,5 +1,6 @@ + Verwendung von Variablen aus Konfigurationsdateien @@ -48,4 +49,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/designers/language-variables/language-variables-smarty.xml b/docs/de/designers/language-variables/language-variables-smarty.xml index 9e88b96d..df348bf1 100644 --- a/docs/de/designers/language-variables/language-variables-smarty.xml +++ b/docs/de/designers/language-variables/language-variables-smarty.xml @@ -1,5 +1,6 @@ + Die reservierte {$smarty} Variable @@ -105,4 +106,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/getting-started.xml b/docs/de/getting-started.xml index 3bcbf925..23a17ca6 100644 --- a/docs/de/getting-started.xml +++ b/docs/de/getting-started.xml @@ -1,6 +1,6 @@ - + Erste Schritte @@ -422,3 +422,23 @@ $smarty->display('index.tpl'); + diff --git a/docs/de/language-defs.ent b/docs/de/language-defs.ent index 3cb41d88..21451b72 100644 --- a/docs/de/language-defs.ent +++ b/docs/de/language-defs.ent @@ -1,5 +1,5 @@ - + diff --git a/docs/de/language-snippets.ent b/docs/de/language-snippets.ent index e69de29b..87681d98 100644 --- a/docs/de/language-snippets.ent +++ b/docs/de/language-snippets.ent @@ -0,0 +1,11 @@ + + + Technische Bemerkung + + Der merge 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. + +'> + + + Als optionaler dritter Parameter, können sie die compile_id 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 compile_id für jedes Template Verzeichnis, da gleichnamige Templates sich sonst überschreiben. Sie können die $compile_id auch nur einmal, global setzen. +'> diff --git a/docs/de/preface.xml b/docs/de/preface.xml index da42027a..fabb9b26 100644 --- a/docs/de/preface.xml +++ b/docs/de/preface.xml @@ -1,8 +1,6 @@ - - - + + - Vorwort diff --git a/docs/de/programmers/advanced-features.xml b/docs/de/programmers/advanced-features.xml index 33f7dd76..9f030747 100644 --- a/docs/de/programmers/advanced-features.xml +++ b/docs/de/programmers/advanced-features.xml @@ -1,5 +1,6 @@ + Advanced Features &programmers.advanced-features.advanced-features-objects; diff --git a/docs/de/programmers/advanced-features/advanced-features-objects.xml b/docs/de/programmers/advanced-features/advanced-features-objects.xml index f1d88e3d..beaf35dc 100644 --- a/docs/de/programmers/advanced-features/advanced-features-objects.xml +++ b/docs/de/programmers/advanced-features/advanced-features-objects.xml @@ -1,5 +1,6 @@ + Objekte @@ -99,4 +100,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml index 49f55de9..96e0a6ae 100644 --- a/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml +++ b/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml @@ -1,5 +1,6 @@ + Ausgabefilter @@ -61,4 +62,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/advanced-features/advanced-features-postfilters.xml b/docs/de/programmers/advanced-features/advanced-features-postfilters.xml index 559b2e3e..242944b9 100644 --- a/docs/de/programmers/advanced-features/advanced-features-postfilters.xml +++ b/docs/de/programmers/advanced-features/advanced-features-postfilters.xml @@ -1,5 +1,6 @@ + 'post'-Filter @@ -52,4 +53,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/advanced-features/advanced-features-prefilters.xml b/docs/de/programmers/advanced-features/advanced-features-prefilters.xml index 12fdc129..d22c16a0 100644 --- a/docs/de/programmers/advanced-features/advanced-features-prefilters.xml +++ b/docs/de/programmers/advanced-features/advanced-features-prefilters.xml @@ -1,5 +1,6 @@ + 'pre'-Filter @@ -53,4 +54,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml index 1d815e44..84b76bda 100644 --- a/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml +++ b/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml @@ -1,5 +1,6 @@ + Cache Handler Funktion @@ -24,9 +25,9 @@ Beispiel mit einer MySQL Datenbank als Datenquelle - <?php - /* - + +?> +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/advanced-features/template-resources.xml b/docs/de/programmers/advanced-features/template-resources.xml index 09acea21..0c3e477b 100644 --- a/docs/de/programmers/advanced-features/template-resources.xml +++ b/docs/de/programmers/advanced-features/template-resources.xml @@ -1,5 +1,6 @@ + Ressourcen @@ -225,4 +226,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions.xml b/docs/de/programmers/api-functions.xml index 4db9abee..8d5a0dca 100644 --- a/docs/de/programmers/api-functions.xml +++ b/docs/de/programmers/api-functions.xml @@ -1,7 +1,15 @@ - - Methoden + + + Methoden + + +
+ + <para></para> + </section> + </partintro> &programmers.api-functions.api-append; &programmers.api-functions.api-append-by-ref; &programmers.api-functions.api-assign; @@ -11,8 +19,12 @@ &programmers.api-functions.api-clear-assign; &programmers.api-functions.api-clear-cache; &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-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-is-cached; &programmers.api-functions.api-load-filter; @@ -32,11 +44,12 @@ &programmers.api-functions.api-unregister-compiler-function; &programmers.api-functions.api-unregister-function; &programmers.api-functions.api-unregister-modifier; +&programmers.api-functions.api-unregister-object; &programmers.api-functions.api-unregister-outputfilter; &programmers.api-functions.api-unregister-postfilter; &programmers.api-functions.api-unregister-prefilter; &programmers.api-functions.api-unregister-resource; -</chapter> +</reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/docs/de/programmers/api-functions/api-append-by-ref.xml b/docs/de/programmers/api-functions/api-append-by-ref.xml index dfc2d2e7..90c42632 100644 --- a/docs/de/programmers/api-functions/api-append-by-ref.xml +++ b/docs/de/programmers/api-functions/api-append-by-ref.xml @@ -1,14 +1,19 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.append.by.ref"> - <title>append_by_ref (via Referenz anhängen) - - - void append_by_ref - string varname - mixed var - - + + + + append_by_ref (Referenz anhängen) + + + + + <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> 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' @@ -24,15 +29,21 @@ Funktion dient als Workaround. </para> </note> + ¬e.parameter.merge; <example> <title>append_by_ref (via Referenz anhängen) - - // Namen/Wert-Paare übergeben - $smarty->append_by_ref("Name",$myname); - $smarty->append_by_ref("Address",$address); +append_by_ref("Name", $myname); +$smarty->append_by_ref("Address", $address); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-append.xml b/docs/de/programmers/api-functions/api-append.xml index 56d7589f..a05dc112 100644 --- a/docs/de/programmers/api-functions/api-append.xml +++ b/docs/de/programmers/api-functions/api-append.xml @@ -1,18 +1,23 @@ - - append (anhängen) - - - void append - mixed var - - - void append - string varname - mixed var - - + + + + append (anhängen) + + + + + <methodsynopsis> + <type>void</type><methodname>append</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <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> Wird verwendet, um an Template-Variablen weitere Daten anzuhängen. Sie können entweder ein Namen/Wert-Paar oder assoziative Arrays, @@ -21,15 +26,20 @@ <example> <title>append (anhängen) - - // Namen/Wert-Paare übergeben - $smarty->append("Name","Fred"); - $smarty->append("Address",$address); +append("Name", "Fred"); +$smarty->append("Address", $address); - // assoziatives Array übergeben - $smarty->append(array("city" => "Lincoln","state" => "Nebraska")); +// assoziatives Array übergeben +$smarty->append(array("city" => "Lincoln", "state" => "Nebraska")); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-assign-by-ref.xml b/docs/de/programmers/api-functions/api-assign-by-ref.xml index 5886348b..1b00ac03 100644 --- a/docs/de/programmers/api-functions/api-assign-by-ref.xml +++ b/docs/de/programmers/api-functions/api-assign-by-ref.xml @@ -1,14 +1,18 @@ - - assign_by_ref (via Referenz zuweisen) - - - void assign_by_ref - string varname - mixed var - - + + + + assign_by_ref (Referenz zuweisen) + + + + + <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> 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. @@ -26,12 +30,17 @@ <example> <title>assign_by_ref (via Referenz zuweisen) - - // Namen/Wert-Paare übergeben - $smarty->assign_by_ref("Name",$myname); - $smarty->assign_by_ref("Address",$address); +assign_by_ref('Name', $myname); +$smarty->assign_by_ref('Address', $address); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-assign.xml b/docs/de/programmers/api-functions/api-assign.xml index 7d712ff4..248fffe4 100644 --- a/docs/de/programmers/api-functions/api-assign.xml +++ b/docs/de/programmers/api-functions/api-assign.xml @@ -1,18 +1,22 @@ - - assign (zuweisen) - - - void assign - mixed var - - - void assign - string varname - mixed var - - + + + + assign + + + + + <methodsynopsis> + <type>void</type><methodname>assign</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> + <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> Wird verwendet, um einem Template Werte zuzuweisen. Sie können entweder Namen/Wert-Paare oder ein assoziatives Array @@ -21,16 +25,20 @@ <example> <title>assign - - // Namen/Wert-Paare übergeben - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - - - // assoziatives Array mit Namen/Wert-Paaren übergeben - $smarty->assign(array("city" => "Lincoln","state" => "Nebraska")); +assign('Name', 'Fred'); +$smarty->assign('Address', $address); + +// assoziatives Array mit Namen/Wert-Paaren übergeben +$smarty->assign(array("city" => "Lincoln", "state" => "Nebraska")); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-clear-all-assign.xml b/docs/de/programmers/api-functions/api-clear-all-assign.xml index 4c4c874c..09be3118 100644 --- a/docs/de/programmers/api-functions/api-clear-all-assign.xml +++ b/docs/de/programmers/api-functions/api-clear-all-assign.xml @@ -1,24 +1,33 @@ - - clear_all_assign (alle Zuweisungen löschen) - - - void clear_all_assign - - - + + + + clear_all_assign (alle Zuweisungen löschen) + + + + + <methodsynopsis> + <type>void</type><methodname>clear_all_assign</methodname> + <void /> + </methodsynopsis> <para> Löscht die Werte aller zugewiesenen Variablen. </para> <example> <title>clear_all_assign (alle Zuweisungen löschen) - - // lösche alle zugewiesenen Variablen - $smarty->clear_all_assign(); +clear_all_assign(); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-clear-all-cache.xml b/docs/de/programmers/api-functions/api-clear-all-cache.xml index 880d178a..4710bfcf 100644 --- a/docs/de/programmers/api-functions/api-clear-all-cache.xml +++ b/docs/de/programmers/api-functions/api-clear-all-cache.xml @@ -1,13 +1,17 @@ - - clear_all_cache (Cache vollständig leeren) - - - void clear_all_cache - int expire time - - + + + + clear_all_cache (Cache vollständig leeren) + + + + + <methodsynopsis> + <type>void</type><methodname>clear_all_cache</methodname> + <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> + </methodsynopsis> <para> Leert den gesamten Template-Cache. Als optionaler Parameter kann ein Mindestalter in Sekunden angegeben werden, das die einzelne Datei haben @@ -16,11 +20,16 @@ <example> <title>clear_all_cache (Cache vollständig leeren) - - // leere den gesamten cache - $smarty->clear_all_cache(); +clear_all_cache(); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-clear-assign.xml b/docs/de/programmers/api-functions/api-clear-assign.xml index dd05ff13..c382a237 100644 --- a/docs/de/programmers/api-functions/api-clear-assign.xml +++ b/docs/de/programmers/api-functions/api-clear-assign.xml @@ -1,28 +1,36 @@ - - clear_assign (lösche Zuweisung) - - - void clear_assign - string var - - + + + + clear_assign (lösche Zuweisung) + + + + + <methodsynopsis> + <type>void</type><methodname>clear_assign</methodname> + <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + </methodsynopsis> <para> Löscht den Wert einer oder mehrerer (übergabe als Array) zugewiesener Variablen. </para> <example> <title>clear_assign (lösche Zuweisung) - - // lösche eine einzelne Variable - $smarty->clear_assign("Name"); - - - // lösche mehrere Variablen - $smarty->clear_assign(array("Name","Address","Zip")); +clear_assign("Name"); + +// lösche mehrere Variablen +$smarty->clear_assign(array("Name", "Address", "Zip")); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-clear-cache.xml b/docs/de/programmers/api-functions/api-clear-cache.xml index 8fed4697..64c147e9 100644 --- a/docs/de/programmers/api-functions/api-clear-cache.xml +++ b/docs/de/programmers/api-functions/api-clear-cache.xml @@ -1,14 +1,20 @@ - - clear_cache (leere Cache) - - voidclear_cache - stringtemplate - stringcache id - stringcompile id - intexpire time - + + + + clear_cache (leere Cache) + + + + + <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> Löscht den Cache eines bestimmten Templates. Falls Sie mehrere Caches für ein Template verwenden, können Sie als zweiten Parameter @@ -22,15 +28,19 @@ <example> <title>clear_cache (Cache leeren) - - // Cache eines Templates leeren - $smarty->clear_cache("index.tpl"); - - - // leere den Cache einer bestimmten 'cache-id' eines mehrfach-gecachten Templates - $smarty->clear_cache("index.tpl","CACHEID"); +clear_cache("index.tpl"); + +// leere den Cache einer bestimmten 'cache-id' eines mehrfach-gecachten Templates +$smarty->clear_cache("index.tpl", "CACHEID"); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml index 4f5484a9..76ea488e 100644 --- a/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml +++ b/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml @@ -1,13 +1,19 @@ - - clear_compiled_tpl (kompiliertes Template löschen) - - - void clear_compiled_tpl - string tpl_file - - + + + + clear_compiled_tpl (kompiliertes Template löschen) + + + + + <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> Löscht die kompilierte Version des angegebenen Templates. Falls kein Template-Name übergeben wird, werden alle kompilierten @@ -16,15 +22,19 @@ <example> <title>clear_compiled_tpl (kompiliertes Template löschen) - - // ein bestimmtes kompiliertes Template löschen - $smarty->clear_compiled_tpl("index.tpl"); - - - // das gesamte Kompilier-Verzeichnis löschen - $smarty->clear_compiled_tpl(); +clear_compiled_tpl("index.tpl"); + +// das gesamte Kompilier-Verzeichnis löschen +$smarty->clear_compiled_tpl(); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-clear-config.xml b/docs/de/programmers/api-functions/api-clear-config.xml index b7db6979..3ee0ea9d 100644 --- a/docs/de/programmers/api-functions/api-clear-config.xml +++ b/docs/de/programmers/api-functions/api-clear-config.xml @@ -1,5 +1,6 @@ + clear_config diff --git a/docs/de/programmers/api-functions/api-config-load.xml b/docs/de/programmers/api-functions/api-config-load.xml index 1cc4b49b..d544319e 100644 --- a/docs/de/programmers/api-functions/api-config-load.xml +++ b/docs/de/programmers/api-functions/api-config-load.xml @@ -1,5 +1,6 @@ + config_load diff --git a/docs/de/programmers/api-functions/api-display.xml b/docs/de/programmers/api-functions/api-display.xml index d3cb0c56..5d216099 100644 --- a/docs/de/programmers/api-functions/api-display.xml +++ b/docs/de/programmers/api-functions/api-display.xml @@ -1,13 +1,19 @@ - - display (ausgeben) - + + + + display (ausgeben) + + + + + <methodsynopsis> <type>void</type><methodname>display</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> - </methodsynopsis> + <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> + </methodsynopsis> <para> Gibt ein Template aus. Sie müssen einen gültigen <link linkend="template.resources">Template Ressourcen</link>-Typ @@ -28,33 +34,34 @@ <example> <title>display (ausgeben) - 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")) - { - - - // Beispieldaten - $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); - - } - - - // Ausgabe - $smarty->display("index.tpl"); +caching = true; + +// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert +if(!$smarty->is_cached("index.tpl")) { + + // Beispieldaten + $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); + +} + +// ausgabe +$smarty->display("index.tpl"); +?> +]]> + Verwenden Sie die Syntax von template resources @@ -63,24 +70,25 @@ Beispiele von Template-Ressourcen für 'display()' - - // absoluter Dateipfad - $smarty->display("/usr/local/include/templates/header.tpl"); - - - // absoluter Dateipfad (alternativ) - $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"); - - - // aus der Template-Ressource 'db' einbinden - $smarty->display("db:header.tpl"); +display("/usr/local/include/templates/header.tpl"); + +// absoluter Dateipfad (alternativ) +$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"); + +// aus der Template-Ressource 'db' einbinden +$smarty->display("db:header.tpl"); +?> +]]> + - - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-fetch.xml b/docs/de/programmers/api-functions/api-fetch.xml index 84b77fb3..ad249914 100644 --- a/docs/de/programmers/api-functions/api-fetch.xml +++ b/docs/de/programmers/api-functions/api-fetch.xml @@ -1,13 +1,19 @@ - - fetch - + + + + fetch + + + + + <methodsynopsis> <type>string</type><methodname>fetch</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> - </methodsynopsis> + <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> + </methodsynopsis> <para> Gibt die Ausgabe des Template zurück, anstatt es direkt anzuzeigen. Übergeben Sie einen gültigen <link linkend="template.resources">Template Ressource</link>-Typ @@ -29,41 +35,42 @@ <example> <title>fetch - 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")) - { - - - // Beispieldaten - $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); - - } - - - // Ausgabe abfangen - $output = $smarty->fetch("index.tpl"); - - - // Etwas mit $output anstellen - - echo $output; +caching = true; + +// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert +if(!$smarty->is_cached("index.tpl")) { + + // Beispieldaten + $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); + +} + +// ausgabe abfangen +$output = $smarty->fetch("index.tpl"); + +// Etwas mit $output anstellen + +echo $output; +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-get-config-vars.xml b/docs/de/programmers/api-functions/api-get-config-vars.xml index 40d3b59c..1d7370e8 100644 --- a/docs/de/programmers/api-functions/api-get-config-vars.xml +++ b/docs/de/programmers/api-functions/api-get-config-vars.xml @@ -1,5 +1,6 @@ + get_config_vars diff --git a/docs/de/programmers/api-functions/api-get-registered-object.xml b/docs/de/programmers/api-functions/api-get-registered-object.xml index 9836702b..d855b933 100644 --- a/docs/de/programmers/api-functions/api-get-registered-object.xml +++ b/docs/de/programmers/api-functions/api-get-registered-object.xml @@ -1,5 +1,6 @@ + get_registered_object diff --git a/docs/de/programmers/api-functions/api-get-template-vars.xml b/docs/de/programmers/api-functions/api-get-template-vars.xml index 84aaba11..54c65175 100644 --- a/docs/de/programmers/api-functions/api-get-template-vars.xml +++ b/docs/de/programmers/api-functions/api-get-template-vars.xml @@ -1,28 +1,39 @@ - - get_template_vars (Template-Variablen extrahieren) - - - array get_template_vars - - - + + + + get_template_vars (Template-Variablen extrahieren) + + + + + <methodsynopsis> + <type>array</type><methodname>get_template_vars</methodname> + <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> + </methodsynopsis> <para> Gibt ein Array der zugewiesenen Template-Variablen zurück. </para> <example> <title>get_template_vars (Template-Variablen extrahieren) - - // alle zugewiesenen Template-Variablen extrahieren - $tpl_vars = $smarty->get_template_vars(); - - - // Anschauen - var_dump($tpl_vars); +get_template_vars('foo'); + +// alle zugewiesenen Template-Variablen extrahieren +$tpl_vars = $smarty->get_template_vars(); + +// Anschauen +print_r($tpl_vars); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-is-cached.xml b/docs/de/programmers/api-functions/api-is-cached.xml index bde4afbf..5026c8a2 100644 --- a/docs/de/programmers/api-functions/api-is-cached.xml +++ b/docs/de/programmers/api-functions/api-is-cached.xml @@ -1,14 +1,19 @@ - - is_cached (gecachte Version existiert) - - - void is_cached - string template - [string cache_id] - - + + + + is_cached (gecachte Version existiert) + + + + + <methodsynopsis> + <type>bool</type><methodname>is_cached</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> + </methodsynopsis> <para> Gibt 'true' zurück, wenn ein gültiger Cache für das angegebene Template existiert. Dies funktioniert nur, wenn <link linkend="variable.caching">caching</link> eingeschaltet ist. @@ -16,14 +21,18 @@ <example> <title>is_cached - $smarty->caching = true; - - if(!$smarty->is_cached("index.tpl")) { - - // Datenbank-Abfragen, Variablen zuweisen... - } - - $smarty->display("index.tpl"); +caching = true; + +if(!$smarty->is_cached("index.tpl")) { +// Datenbank-Abfragen, Variablen zuweisen... +} + +$smarty->display("index.tpl"); +?> +]]> + Als optionalen zweiten Parameter können Sie die 'cache_id' übergeben, @@ -32,16 +41,27 @@ 'is_cached' bei mehreren Template-Caches - $smarty->caching = true; - - if(!$smarty->is_cached("index.tpl", "FrontPage")) { - - // Datenbank Abfragen, Variablen zuweisen... - } - - $smarty->display("index.tpl","FrontPage"); +caching = true; + +if(!$smarty->is_cached("index.tpl", "FrontPage")) { + // Datenbank Abfragen, Variablen zuweisen... +} + +$smarty->display("index.tpl", "FrontPage"); +?> +]]> + - + + Technische Bemerkung + + Wenn is_cached true zurück gibt, wird die Ausgabe geladen. Alle weiteren Aufrufe von display() oder fetch() werden aus diesem Cache bedient. Dies verhindert eine Race Condition, die auftauchen könnte, wenn ein anderes Script das besagte Template aus dem Cache löscht. Das bedeutet natürlich auch, dass clear_cache() und andere Cache spezifische Einstellungen keine Auswirkungen haben, nachdem is_cached true zurückgegeben hat. + + + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-load-filter.xml b/docs/de/programmers/api-functions/api-load-filter.xml index da919dc3..abb91233 100644 --- a/docs/de/programmers/api-functions/api-load-filter.xml +++ b/docs/de/programmers/api-functions/api-load-filter.xml @@ -1,14 +1,18 @@ - - load_filter (Filter laden) - - - void load_filter - string type - string name - - + + + + load_filter + + + + + <methodsynopsis> + <type>void</type><methodname>load_filter</methodname> + <methodparam><type>string</type><parameter>type</parameter></methodparam> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> <para> Mit dieser Funktion können Filter-Plugins geladen werden. Der erste Parameter definiert den Filter-Typ und kann einen der @@ -18,11 +22,19 @@ <example> <title>Filter-Plugins laden - $smarty->load_filter('pre', 'trim'); // lade den 'pre'-Filter (Vor-Filter) namens 'trim' - $smarty->load_filter('pre', 'datefooter'); // lade einen zweiten Vor-Filter namens 'datefooter' - $smarty->load_filter('output', 'compress'); // lade den 'output'-Filter (Ausgabe-Filter) namens 'compress' +load_filter('pre', 'trim'); // lade den 'pre'-Filter (Vor-Filter) namens 'trim' +$smarty->load_filter('pre', 'datefooter'); // lade einen zweiten Vor-Filter namens 'datefo +oter' +$smarty->load_filter('output', 'compress'); // lade den 'output'-Filter (Ausgabe-Filter) n +amens 'compress' +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-block.xml b/docs/de/programmers/api-functions/api-register-block.xml index 6b176e17..1289bcb4 100644 --- a/docs/de/programmers/api-functions/api-register-block.xml +++ b/docs/de/programmers/api-functions/api-register-block.xml @@ -1,16 +1,20 @@ - - register_block (Block-Funktion registrieren) - - - void register_block - string name - mixed impl - bool cacheable - array or null cache_attrs - - + + + + register_block (Block-Funktion registrieren) + + + + + <methodsynopsis> + <type>void</type><methodname>register_block</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> + <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> + <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet, um Block-Funktion-Plugins dynamisch zu registrieren. Übergeben Sie dazu den Namen der Block-Funktion und den Namen der @@ -28,24 +32,35 @@ <example> <title>register_block (Block-Funktion registrieren) - /* PHP */ - $smarty->register_block("translate", "do_translation"); - - function do_translation ($params, $content, &$smarty, &$repeat) { - if (isset($content)) { - $lang = $params['lang']; - - // übersetze den Inhalt von '$content' - return $translation; - } - } - - {* template *} - {translate lang="br"} - Hello, world! - {/translate} +register_block("translate", "do_translation"); + +function do_translation ($params, $content, &$smarty, &$repeat) +{ + if (isset($content)) { + $lang = $params['lang']; + // übersetze den Inhalt von '$content' + return $translation; + } +} +?> +]]> + + + Wobei das Template wie folgt aussieht: + + + + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-compiler-function.xml b/docs/de/programmers/api-functions/api-register-compiler-function.xml index 30875011..ec37eb0c 100644 --- a/docs/de/programmers/api-functions/api-register-compiler-function.xml +++ b/docs/de/programmers/api-functions/api-register-compiler-function.xml @@ -1,15 +1,19 @@ - - register_compiler_function (Compiler-Funktion registrieren) - - - void register_compiler_function - string name - mixed impl - bool cacheable - - + + + + register_compiler_function (Compiler-Funktion registrieren) + + + + + <methodsynopsis> + <type>bool</type><methodname>register_compiler_function</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> + <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet, um Compiler-Funktion-Plugins dynamisch zu registrieren. Übergeben Sie dazu den Namen der Compiler-Funktion und den Namen der @@ -24,7 +28,8 @@ <para> <parameter>$cacheable</parameter> und <parameter>$cache_attrs</parameter> können in den meisten Fällen weggelassen werden. Konsultieren Sie <link linkend="caching.cacheable">Die Ausgabe von cachebaren Plugins Kontrollieren</link> für weitere Informationen. </para> -</sect1> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -44,4 +49,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-function.xml b/docs/de/programmers/api-functions/api-register-function.xml index c3eee9c2..832d051c 100644 --- a/docs/de/programmers/api-functions/api-register-function.xml +++ b/docs/de/programmers/api-functions/api-register-function.xml @@ -1,16 +1,20 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.register.function"> - <title>register_function (Funktion registrieren) - - - void register_function - string name - mixed impl - bool cacheable - array or null cache_attrs - - + + + + register_function + + + + + <methodsynopsis> + <type>void</type><methodname>register_function</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> + <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> + <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet, um Template-Funktion-Plugins dynamisch zu registrieren. Übergeben Sie dazu den Namen der Template-Funktion @@ -28,19 +32,28 @@ <example> <title>register_function (Funktion registrieren) - $smarty->register_function("date_now", "print_current_date"); - - function print_current_date ($params) { - extract($params); - if(empty($format)) - $format="%b %e, %Y"; - return strftime($format,time()); - } +register_function("date_now", "print_current_date"); - // Von nun an können Sie {date_now} verwenden, um das aktuelle Datum auszugeben. - // Oder {date_now format="%Y/%m/%d"}, wenn Sie es formatieren wollen. +function print_current_date($params) +{ + if(empty($params['format'])) { + $format = "%b %e, %Y"; + } else { + $format = $params['format']; + return strftime($format,time()); + } +} + +// Von nun an können Sie {date_now} verwenden, um das aktuelle Datum auszugeben. +// Oder {date_now format="%Y/%m/%d"}, wenn Sie es formatieren wollen. +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-modifier.xml b/docs/de/programmers/api-functions/api-register-modifier.xml index 30fec531..c41c53f6 100644 --- a/docs/de/programmers/api-functions/api-register-modifier.xml +++ b/docs/de/programmers/api-functions/api-register-modifier.xml @@ -1,14 +1,18 @@ - - register_modifier (Modifikator-Plugin registrieren) - - - void register_modifier - string name - mixed impl - - + + + + register_modifier (Modifikator-Plugin registrieren) + + + + + <methodsynopsis> + <type>void</type><methodname>register_modifier</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet, um Modifikator-Plugins dynamisch zu registrieren. Übergeben Sie dazu den Namen der Modifikator-Funktion @@ -24,16 +28,20 @@ <example> <title>register_modifier (Modifikator-Plugin registrieren) - - // PHP's 'stripslashes()'-Funktion als Smarty Modifikator registrieren - - $smarty->register_modifier("sslash", "stripslashes"); - - - // Von nun an können Sie {$var|sslash} verwenden, - // um "\"-Zeichen (Backslash) aus Zeichenketten zu entfernen. ('\\' wird zu '\',...) +register_modifier("sslash", "stripslashes"); + +// Von nun an können Sie {$var|sslash} verwenden, +// um "\"-Zeichen (Backslash) aus Zeichenketten zu entfernen. ('\\' wird zu '\',...) +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-object.xml b/docs/de/programmers/api-functions/api-register-object.xml index f67716bb..ea52c80c 100644 --- a/docs/de/programmers/api-functions/api-register-object.xml +++ b/docs/de/programmers/api-functions/api-register-object.xml @@ -1,22 +1,27 @@ - - register_object - - - void register_object - string object_name - object $object - array allowed methods/properties - boolean format - array block methods - - + + + + register_object + + + + + <methodsynopsis> + <type>void</type><methodname>register_object</methodname> + <methodparam><type>string</type><parameter>object_name</parameter></methodparam> + <methodparam><type>object</type><parameter>object</parameter></methodparam> + <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> + <methodparam><type>boolean</type><parameter>format</parameter></methodparam> + <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet um ein Objekt zu registrieren. Konsultieren Sie den Abschnitt <link linkend="advanced.features.objects">Objekte</link> für weitere Informationen und Beispiele. </para> -</sect1> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -36,4 +41,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-outputfilter.xml b/docs/de/programmers/api-functions/api-register-outputfilter.xml index 357a67a2..55ec051a2 100644 --- a/docs/de/programmers/api-functions/api-register-outputfilter.xml +++ b/docs/de/programmers/api-functions/api-register-outputfilter.xml @@ -1,13 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.register.outputfilter"> - <title>register_outputfilter (Ausgabefilter registrieren) - - - void register_outputfilter - mixed function - - + + + + register_outputfilter (Ausgabefilter registrieren) + + + + + <methodsynopsis> + <type>void</type><methodname>register_outputfilter</methodname> + <methodparam><type>mixed</type><parameter>function</parameter></methodparam> + </methodsynopsis> <para> Verwenden Sie diese Funktion um dynamisch Ausgabefilter zu registrieren, welche die Template Ausgabe verarbeiten bevor sie angezeigt wird. Konsultieren Sie @@ -20,7 +24,8 @@ oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> der Name der Methode ist die aufgerufen werden soll, übergeben werden. </para> -</sect1> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -40,4 +45,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-postfilter.xml b/docs/de/programmers/api-functions/api-register-postfilter.xml index 49249a84..a770b0e4 100644 --- a/docs/de/programmers/api-functions/api-register-postfilter.xml +++ b/docs/de/programmers/api-functions/api-register-postfilter.xml @@ -1,13 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.register.postfilter"> - <title>register_postfilter ('post'-Filter registrieren) - - - void register_postfilter - mixed function - - + + + + register_postfilter ('post'-Filter registrieren) + + + + + <methodsynopsis> + <type>void</type><methodname>register_postfilter</methodname> + <methodparam><type>mixed</type><parameter>function</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet, um 'post'-Filter dynamisch zu registrieren. 'post'-Filter werden auf das kompilierte Template angewendet. Konsultieren Sie dazu den @@ -19,7 +23,8 @@ oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> der Name der Methode ist die aufgerufen werden soll, übergeben werden. </para> -</sect1> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -39,4 +44,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-prefilter.xml b/docs/de/programmers/api-functions/api-register-prefilter.xml index 77392903..5cdca691 100644 --- a/docs/de/programmers/api-functions/api-register-prefilter.xml +++ b/docs/de/programmers/api-functions/api-register-prefilter.xml @@ -1,13 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.register.prefilter"> - <title>register_prefilter ('pre'-Filter registrieren) - - - void register_prefilter - mixed function - - + + + + register_prefilter ('pre'-Filter registrieren) + + + + + <methodsynopsis> + <type>void</type><methodname>register_prefilter</methodname> + <methodparam><type>mixed</type><parameter>function</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet, um 'pre'-Filter dynamisch zu registrieren. 'pre'-Filter werden vor der Kompilierung auf das Template angewendet. Konsultieren Sie dazu den @@ -19,7 +23,8 @@ oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> der Name der Methode ist die aufgerufen werden soll, übergeben werden. </para> -</sect1> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -39,4 +44,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-register-resource.xml b/docs/de/programmers/api-functions/api-register-resource.xml index 8820f773..62c623f7 100644 --- a/docs/de/programmers/api-functions/api-register-resource.xml +++ b/docs/de/programmers/api-functions/api-register-resource.xml @@ -1,14 +1,18 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.register.resource"> - <title>register_resource (Ressource registrieren) - - - void register_resource - string name - array resource_funcs - - + + + + register_resource (Ressource registrieren) + + + + + <methodsynopsis> + <type>void</type><methodname>register_resource</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> + </methodsynopsis> <para> Wird verwendet, um ein Ressource-Plugin dynamisch zu registrieren. Übergeben Sie dazu den Ressourcen-Namen und @@ -31,12 +35,18 @@ <example> <title>register_resource (Ressource registrieren) - $smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); +register_resource("db", array("db_get_template", +"db_get_timestamp", +"db_get_secure", +"db_get_trusted")); +?> +]]> + - + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-template-exists.xml b/docs/de/programmers/api-functions/api-template-exists.xml index 134ba62e..afb1bba8 100644 --- a/docs/de/programmers/api-functions/api-template-exists.xml +++ b/docs/de/programmers/api-functions/api-template-exists.xml @@ -1,18 +1,23 @@ - - template_exists (Template existiert) - - - bool template_exists - string template - - - - Diese Funktion prüft, ob das angegebene Template existiert. Als Parameter - können entweder ein Pfad im Dateisystem oder eine Ressource übergeben werden. - - + + + + template_exists (Template existiert) + + + + + <methodsynopsis> + <type>bool</type><methodname>template_exists</methodname> + <methodparam><type>string</type><parameter>template</parameter></methodparam> + </methodsynopsis> + <para> + Diese Funktion prüft, ob das angegebene Template existiert. Als Parameter + können entweder ein Pfad im Dateisystem oder eine Ressource übergeben werden. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -32,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-trigger-error.xml b/docs/de/programmers/api-functions/api-trigger-error.xml index 68daf0dc..a46967fd 100644 --- a/docs/de/programmers/api-functions/api-trigger-error.xml +++ b/docs/de/programmers/api-functions/api-trigger-error.xml @@ -1,22 +1,27 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.trigger.error"> - <title>trigger_error (Fehler auslösen) - - - void trigger_error - string error_msg - [int level] - - - + + + + trigger_error (Fehler auslösen) + + + + + <methodsynopsis> + <type>void</type><methodname>trigger_error</methodname> + <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> + </methodsynopsis> + <para> Wird verwendet, um eine Fehlermeldung via Smarty auszugeben. Der <parameter>level</parameter>-Parameter kann alle - Werte der 'trigger_error()'-PHP-Funktion haben, + Werte der 'trigger_error()'-PHP-Funktion haben, zum Beispiel E_USER_NOTICE, E_USER_WARNING, usw. Voreingestellt ist E_USER_WARNING. - </para> -</sect1> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -36,4 +41,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-block.xml b/docs/de/programmers/api-functions/api-unregister-block.xml index e5a2c7d1..56ccd53f 100644 --- a/docs/de/programmers/api-functions/api-unregister-block.xml +++ b/docs/de/programmers/api-functions/api-unregister-block.xml @@ -1,18 +1,23 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.unregister.block"> - <title>unregister_block (Block-Funktion deaktivieren) - - - void unregister_block - string name - - - - Wird verwendet, um registrierte Block-Funktionen auszuschalten. - Übergeben Sie dazu den Namen der Block-Funktion. - - + + + + unregister_block (Block-Funktion deaktivieren) + + + + + <methodsynopsis> + <type>void</type><methodname>unregister_block</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + Wird verwendet, um registrierte Block-Funktionen auszuschalten. + Übergeben Sie dazu den Namen der Block-Funktion. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -32,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-compiler-function.xml b/docs/de/programmers/api-functions/api-unregister-compiler-function.xml index 24674fef..65b16773 100644 --- a/docs/de/programmers/api-functions/api-unregister-compiler-function.xml +++ b/docs/de/programmers/api-functions/api-unregister-compiler-function.xml @@ -1,18 +1,23 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.unregister.compiler.function"> - <title>unregister_compiler_function (Compiler-Funktion deaktivieren) - - - void unregister_compiler_function - string name - - - + + + + unregister_compiler_function (Compiler-Funktion deaktivieren) + + + + + <methodsynopsis> + <type>void</type><methodname>unregister_compiler_function</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> Wird verwendet, um registrierte Compiler-Funktionen auszuschalten. Übergeben Sie dazu den Funktionsnamen der Compiler-Funktion. - </para> -</sect1> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -32,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-function.xml b/docs/de/programmers/api-functions/api-unregister-function.xml index 5bf6d2ae..b6d4fe24 100644 --- a/docs/de/programmers/api-functions/api-unregister-function.xml +++ b/docs/de/programmers/api-functions/api-unregister-function.xml @@ -1,26 +1,34 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.unregister.function"> - <title>unregister_function (Template-Funktion deaktivieren) - - - void unregister_function - string name - - - - Wird verwendet, um registrierte Template-Funktionen auszuschalten. - Übergeben Sie dazu den Namen der Template-Funktion. - - - unregister_function - - - // Template-Designer sollen keinen Zugriff auf das Dateisystem haben - - $smarty->unregister_function("fetch"); - - + + + + unregister_function (Template-Funktion deaktivieren) + + + + + <methodsynopsis> + <type>void</type><methodname>unregister_function</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + Wird verwendet, um registrierte Template-Funktionen auszuschalten. + Übergeben Sie dazu den Namen der Template-Funktion. + </para> + <example> + <title>unregister_function + +unregister_function("fetch"); +?> +]]> + + + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-modifier.xml b/docs/de/programmers/api-functions/api-unregister-modifier.xml index e65452e4..2113e117 100644 --- a/docs/de/programmers/api-functions/api-unregister-modifier.xml +++ b/docs/de/programmers/api-functions/api-unregister-modifier.xml @@ -1,26 +1,35 @@ - - unregister_modifier (Modifikator deaktivieren) - - - void unregister_modifier - string name - - - - Wird verwendet, um registrierte Variablen-Modifikatoren auszuschalten. - Übergeben Sie dazu den Modifikator-Namen. - - - unregister_modifier - - - // Verhindern, dass Template-Designer 'strip_tags' anwenden - - $smarty->unregister_modifier("strip_tags"); - - + + + + unregister_modifier (Modifikator deaktivieren) + + + + + <methodsynopsis> + <type>void</type><methodname>unregister_modifier</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + Wird verwendet, um registrierte Variablen-Modifikatoren auszuschalten. + Übergeben Sie dazu den Modifikator-Namen. + </para> + <example> + <title>unregister_modifier + +unregister_modifier("strip_tags"); +?> +]]> + + + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-object.xml b/docs/de/programmers/api-functions/api-unregister-object.xml index 8070521d..1b81589d 100644 --- a/docs/de/programmers/api-functions/api-unregister-object.xml +++ b/docs/de/programmers/api-functions/api-unregister-object.xml @@ -1,5 +1,6 @@ + unregister_object diff --git a/docs/de/programmers/api-functions/api-unregister-outputfilter.xml b/docs/de/programmers/api-functions/api-unregister-outputfilter.xml index 9178faf8..9a6ae6fb 100644 --- a/docs/de/programmers/api-functions/api-unregister-outputfilter.xml +++ b/docs/de/programmers/api-functions/api-unregister-outputfilter.xml @@ -1,18 +1,22 @@ - - unregister_outputfilter (Ausgabefilter deaktivieren) - - - void unregister_outputfilter - string function_name - - - - - Wird verwendet, um registrierte Ausgabefilter auszuschalten. - - + + + + unregister_outputfilter (Ausgabefilter deaktivieren) + + + + + <methodsynopsis> + <type>void</type><methodname>unregister_outputfilter</methodname> + <methodparam><type>string</type><parameter>function_name</parameter></methodparam> + </methodsynopsis> + <para> + Wird verwendet, um registrierte Ausgabefilter auszuschalten. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -32,4 +36,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-postfilter.xml b/docs/de/programmers/api-functions/api-unregister-postfilter.xml index 3a75d07a..61f11d29 100644 --- a/docs/de/programmers/api-functions/api-unregister-postfilter.xml +++ b/docs/de/programmers/api-functions/api-unregister-postfilter.xml @@ -1,18 +1,22 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.unregister.postfilter"> - <title>unregister_postfilter ('post'-Filter deaktivieren) - - - void unregister_postfilter - string function_name - - - - - Wird verwendet, um registrierte 'post'-Filter auszuschalten. - - + + + + unregister_postfilter ('post'-Filter deaktivieren) + + + + + <methodsynopsis> + <type>void</type><methodname>unregister_postfilter</methodname> + <methodparam><type>string</type><parameter>function_name</parameter></methodparam> + </methodsynopsis> + <para> + Wird verwendet, um registrierte 'post'-Filter auszuschalten. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -32,4 +36,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-prefilter.xml b/docs/de/programmers/api-functions/api-unregister-prefilter.xml index d5808e3c..153c5f4d 100644 --- a/docs/de/programmers/api-functions/api-unregister-prefilter.xml +++ b/docs/de/programmers/api-functions/api-unregister-prefilter.xml @@ -1,18 +1,22 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.unregister.prefilter"> - <title>unregister_prefilter ('pre'-Filter deaktiviern) - - - void unregister_prefilter - string function_name - - - - - Wird verwendet, um registrierte 'pre'-Filter auszuschalten. - - + + + + unregister_prefilter ('pre'-Filter deaktiviern) + + + + + <methodsynopsis> + <type>void</type><methodname>unregister_prefilter</methodname> + <methodparam><type>string</type><parameter>function_name</parameter></methodparam> + </methodsynopsis> + <para> + Wird verwendet, um registrierte 'pre'-Filter auszuschalten. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -32,4 +36,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-functions/api-unregister-resource.xml b/docs/de/programmers/api-functions/api-unregister-resource.xml index 60413a2d..2a300b68 100644 --- a/docs/de/programmers/api-functions/api-unregister-resource.xml +++ b/docs/de/programmers/api-functions/api-unregister-resource.xml @@ -1,23 +1,33 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> - <sect1 id="api.unregister.resource"> +<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> +<refentry id="api.unregister.resource"> + <refnamediv> + <refname>unregister_resource (Ressource deaktivieren)</refname> + <refpurpose></refpurpose> + </refnamediv> + <refsect1> + <title /> + <methodsynopsis> + <type>void</type><methodname>unregister_resource</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + <para> + Wird verwendet, um registrierte Ressourcen auszuschalten. + Übergeben Sie dazu den Namen der Ressource. + </para> + <example> <title>unregister_resource (Ressource deaktivieren) - - - void unregister_resource - string name - - - - Wird verwendet, um registrierte Ressourcen auszuschalten. - Übergeben Sie dazu den Namen der Ressource. - - - unregister_resource (Ressource deaktivieren) - - $smarty->unregister_resource("db"); - - + +unregister_resource("db"); +?> +]]> + + + + \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables.xml b/docs/de/programmers/api-variables.xml index 98427fe5..35584f1a 100644 --- a/docs/de/programmers/api-variables.xml +++ b/docs/de/programmers/api-variables.xml @@ -1,5 +1,6 @@ + Variablen @@ -10,8 +11,6 @@ &programmers.api-variables.variable-debugging; &programmers.api-variables.variable-debug-tpl; &programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-global-assign; -&programmers.api-variables.variable-undefined; &programmers.api-variables.variable-autoload-filters; &programmers.api-variables.variable-compile-check; &programmers.api-variables.variable-force-compile; @@ -20,6 +19,10 @@ &programmers.api-variables.variable-cache-lifetime; &programmers.api-variables.variable-cache-handler-func; &programmers.api-variables.variable-cache-modified-check; +&programmers.api-variables.variable-config-overwrite; +&programmers.api-variables.variable-config-booleanize; +&programmers.api-variables.variable-config-read-hidden; +&programmers.api-variables.variable-config-fix-newlines; &programmers.api-variables.variable-default-template-handler-func; &programmers.api-variables.variable-php-handling; &programmers.api-variables.variable-security; @@ -33,6 +36,7 @@ &programmers.api-variables.variable-compiler-class; &programmers.api-variables.variable-request-vars-order; &programmers.api-variables.variable-request-use-auto-globals; +&programmers.api-variables.variable-error-reporting; &programmers.api-variables.variable-compile-id; &programmers.api-variables.variable-use-sub-dirs; &programmers.api-variables.variable-default-modifiers; @@ -57,4 +61,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-autoload-filters.xml b/docs/de/programmers/api-variables/variable-autoload-filters.xml index 42f7bd8d..6c6a5ed9 100644 --- a/docs/de/programmers/api-variables/variable-autoload-filters.xml +++ b/docs/de/programmers/api-variables/variable-autoload-filters.xml @@ -1,5 +1,6 @@ + $autoload_filters @@ -9,8 +10,12 @@ und der Wert den Filter-Namen definiert. Zum Beispiel: - $smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); +autoload_filters = array('pre' => array('trim', 'stamp'), + 'output' => array('convert')); +?> +]]> @@ -34,4 +39,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-cache-dir.xml b/docs/de/programmers/api-variables/variable-cache-dir.xml index 4c3ca903..addce9fd 100644 --- a/docs/de/programmers/api-variables/variable-cache-dir.xml +++ b/docs/de/programmers/api-variables/variable-cache-dir.xml @@ -1,5 +1,6 @@ + $cache_dir @@ -42,4 +43,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-cache-handler-func.xml b/docs/de/programmers/api-variables/variable-cache-handler-func.xml index 73830d06..cf71a27c 100644 --- a/docs/de/programmers/api-variables/variable-cache-handler-func.xml +++ b/docs/de/programmers/api-variables/variable-cache-handler-func.xml @@ -1,5 +1,6 @@ + $cache_handler_func @@ -26,4 +27,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-cache-lifetime.xml b/docs/de/programmers/api-variables/variable-cache-lifetime.xml index cee3334c..98ba6825 100644 --- a/docs/de/programmers/api-variables/variable-cache-lifetime.xml +++ b/docs/de/programmers/api-variables/variable-cache-lifetime.xml @@ -1,5 +1,6 @@ + $cache_lifetime @@ -48,4 +49,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-cache-modified-check.xml b/docs/de/programmers/api-variables/variable-cache-modified-check.xml index de4bec5e..b29ef00e 100644 --- a/docs/de/programmers/api-variables/variable-cache-modified-check.xml +++ b/docs/de/programmers/api-variables/variable-cache-modified-check.xml @@ -1,5 +1,6 @@ + $cache_modified_check @@ -30,4 +31,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-caching.xml b/docs/de/programmers/api-variables/variable-caching.xml index d86d861f..45f07802 100644 --- a/docs/de/programmers/api-variables/variable-caching.xml +++ b/docs/de/programmers/api-variables/variable-caching.xml @@ -1,5 +1,6 @@ + $caching @@ -38,4 +39,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-compile-check.xml b/docs/de/programmers/api-variables/variable-compile-check.xml index bbf8eb45..aeb4e071 100644 --- a/docs/de/programmers/api-variables/variable-compile-check.xml +++ b/docs/de/programmers/api-variables/variable-compile-check.xml @@ -1,5 +1,6 @@ + $compile_check @@ -41,4 +42,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-compile-dir.xml b/docs/de/programmers/api-variables/variable-compile-dir.xml index 5f2e90f4..c015d55b 100644 --- a/docs/de/programmers/api-variables/variable-compile-dir.xml +++ b/docs/de/programmers/api-variables/variable-compile-dir.xml @@ -1,5 +1,6 @@ + $compile_dir @@ -42,4 +43,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-compile-id.xml b/docs/de/programmers/api-variables/variable-compile-id.xml index 2f40ceb9..534a37e1 100644 --- a/docs/de/programmers/api-variables/variable-compile-id.xml +++ b/docs/de/programmers/api-variables/variable-compile-id.xml @@ -1,5 +1,6 @@ + $compile_id @@ -28,4 +29,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-compiler-class.xml b/docs/de/programmers/api-variables/variable-compiler-class.xml index 4c6d0521..bcf25e61 100644 --- a/docs/de/programmers/api-variables/variable-compiler-class.xml +++ b/docs/de/programmers/api-variables/variable-compiler-class.xml @@ -1,5 +1,6 @@ + $compiler_class @@ -27,4 +28,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-config-booleanize.xml b/docs/de/programmers/api-variables/variable-config-booleanize.xml index c31ae281..65a75600 100644 --- a/docs/de/programmers/api-variables/variable-config-booleanize.xml +++ b/docs/de/programmers/api-variables/variable-config-booleanize.xml @@ -1,5 +1,6 @@ + $config_booleanize diff --git a/docs/de/programmers/api-variables/variable-config-dir.xml b/docs/de/programmers/api-variables/variable-config-dir.xml index d3e70d29..d991fa7e 100644 --- a/docs/de/programmers/api-variables/variable-config-dir.xml +++ b/docs/de/programmers/api-variables/variable-config-dir.xml @@ -1,5 +1,6 @@ + $config_dir @@ -36,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-config-fix-newlines.xml b/docs/de/programmers/api-variables/variable-config-fix-newlines.xml index 9065994c..f2ff79b5 100644 --- a/docs/de/programmers/api-variables/variable-config-fix-newlines.xml +++ b/docs/de/programmers/api-variables/variable-config-fix-newlines.xml @@ -1,5 +1,6 @@ + $config_fix_newlines diff --git a/docs/de/programmers/api-variables/variable-config-overwrite.xml b/docs/de/programmers/api-variables/variable-config-overwrite.xml index 8d49775d..2d41174f 100644 --- a/docs/de/programmers/api-variables/variable-config-overwrite.xml +++ b/docs/de/programmers/api-variables/variable-config-overwrite.xml @@ -1,5 +1,6 @@ + $config_overwrite diff --git a/docs/de/programmers/api-variables/variable-config-read-hidden.xml b/docs/de/programmers/api-variables/variable-config-read-hidden.xml index 06094bb4..589df4ed 100644 --- a/docs/de/programmers/api-variables/variable-config-read-hidden.xml +++ b/docs/de/programmers/api-variables/variable-config-read-hidden.xml @@ -1,5 +1,6 @@ + $config_read_hidden diff --git a/docs/de/programmers/api-variables/variable-debug-tpl.xml b/docs/de/programmers/api-variables/variable-debug-tpl.xml index 30f5c73a..c9a7050e 100644 --- a/docs/de/programmers/api-variables/variable-debug-tpl.xml +++ b/docs/de/programmers/api-variables/variable-debug-tpl.xml @@ -1,5 +1,6 @@ + $debug_tpl @@ -26,4 +27,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-debugging-ctrl.xml b/docs/de/programmers/api-variables/variable-debugging-ctrl.xml index 619650d3..88d6ecef 100644 --- a/docs/de/programmers/api-variables/variable-debugging-ctrl.xml +++ b/docs/de/programmers/api-variables/variable-debugging-ctrl.xml @@ -1,5 +1,6 @@ + $debugging_ctrl @@ -28,4 +29,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-debugging.xml b/docs/de/programmers/api-variables/variable-debugging.xml index 85e563ce..9e3f6979 100644 --- a/docs/de/programmers/api-variables/variable-debugging.xml +++ b/docs/de/programmers/api-variables/variable-debugging.xml @@ -1,5 +1,6 @@ + $debugging @@ -27,4 +28,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-default-modifiers.xml b/docs/de/programmers/api-variables/variable-default-modifiers.xml index da84f498..56779397 100644 --- a/docs/de/programmers/api-variables/variable-default-modifiers.xml +++ b/docs/de/programmers/api-variables/variable-default-modifiers.xml @@ -1,5 +1,6 @@ + $default_modifiers @@ -30,4 +31,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-default-resource-type.xml b/docs/de/programmers/api-variables/variable-default-resource-type.xml index d51378dd..9d494d3b 100644 --- a/docs/de/programmers/api-variables/variable-default-resource-type.xml +++ b/docs/de/programmers/api-variables/variable-default-resource-type.xml @@ -1,5 +1,6 @@ + $default_resource_type @@ -28,4 +29,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-default-template-handler-func.xml b/docs/de/programmers/api-variables/variable-default-template-handler-func.xml index 0eabc3e4..2a83d542 100644 --- a/docs/de/programmers/api-variables/variable-default-template-handler-func.xml +++ b/docs/de/programmers/api-variables/variable-default-template-handler-func.xml @@ -1,5 +1,6 @@ + $default_template_handler_func @@ -26,4 +27,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-error-reporting.xml b/docs/de/programmers/api-variables/variable-error-reporting.xml index b3f550ba..a326fc72 100644 --- a/docs/de/programmers/api-variables/variable-error-reporting.xml +++ b/docs/de/programmers/api-variables/variable-error-reporting.xml @@ -1,5 +1,6 @@ + $error_reporting diff --git a/docs/de/programmers/api-variables/variable-force-compile.xml b/docs/de/programmers/api-variables/variable-force-compile.xml index bb29dce1..dd38cf19 100644 --- a/docs/de/programmers/api-variables/variable-force-compile.xml +++ b/docs/de/programmers/api-variables/variable-force-compile.xml @@ -1,5 +1,6 @@ + $force_compile @@ -30,4 +31,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-left-delimiter.xml b/docs/de/programmers/api-variables/variable-left-delimiter.xml index 10550527..e8242ff2 100644 --- a/docs/de/programmers/api-variables/variable-left-delimiter.xml +++ b/docs/de/programmers/api-variables/variable-left-delimiter.xml @@ -1,5 +1,6 @@ + $left_delimiter @@ -26,4 +27,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-php-handling.xml b/docs/de/programmers/api-variables/variable-php-handling.xml index ab9ff430..5b488044 100644 --- a/docs/de/programmers/api-variables/variable-php-handling.xml +++ b/docs/de/programmers/api-variables/variable-php-handling.xml @@ -1,5 +1,6 @@ + $php_handling @@ -40,4 +41,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-plugins-dir.xml b/docs/de/programmers/api-variables/variable-plugins-dir.xml index fb8cf9e0..231599ee 100644 --- a/docs/de/programmers/api-variables/variable-plugins-dir.xml +++ b/docs/de/programmers/api-variables/variable-plugins-dir.xml @@ -1,5 +1,6 @@ + $plugins_dir @@ -37,4 +38,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml index 9e5b9714..579505d6 100644 --- a/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml +++ b/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml @@ -1,5 +1,6 @@ + $request_use_auto_globals @@ -29,4 +30,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-request-vars-order.xml b/docs/de/programmers/api-variables/variable-request-vars-order.xml index 273c5703..c0482e74 100644 --- a/docs/de/programmers/api-variables/variable-request-vars-order.xml +++ b/docs/de/programmers/api-variables/variable-request-vars-order.xml @@ -1,5 +1,6 @@ + $request_vars_order @@ -26,4 +27,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-right-delimiter.xml b/docs/de/programmers/api-variables/variable-right-delimiter.xml index 9189cb89..fe321ecf 100644 --- a/docs/de/programmers/api-variables/variable-right-delimiter.xml +++ b/docs/de/programmers/api-variables/variable-right-delimiter.xml @@ -1,5 +1,6 @@ + $right_delimiter @@ -26,4 +27,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-secure-dir.xml b/docs/de/programmers/api-variables/variable-secure-dir.xml index d82a9b39..a179a750 100644 --- a/docs/de/programmers/api-variables/variable-secure-dir.xml +++ b/docs/de/programmers/api-variables/variable-secure-dir.xml @@ -1,5 +1,6 @@ + $secure_dir @@ -27,4 +28,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-security-settings.xml b/docs/de/programmers/api-variables/variable-security-settings.xml index 5babf259..91768d47 100644 --- a/docs/de/programmers/api-variables/variable-security-settings.xml +++ b/docs/de/programmers/api-variables/variable-security-settings.xml @@ -1,5 +1,6 @@ + $security_settings @@ -33,4 +34,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-security.xml b/docs/de/programmers/api-variables/variable-security.xml index 49f9d8a9..9a6624bd 100644 --- a/docs/de/programmers/api-variables/variable-security.xml +++ b/docs/de/programmers/api-variables/variable-security.xml @@ -1,5 +1,6 @@ + $security @@ -39,4 +40,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-template-dir.xml b/docs/de/programmers/api-variables/variable-template-dir.xml index cdbf5e6e..091bd546 100644 --- a/docs/de/programmers/api-variables/variable-template-dir.xml +++ b/docs/de/programmers/api-variables/variable-template-dir.xml @@ -1,5 +1,6 @@ + $template_dir @@ -36,4 +37,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-trusted-dir.xml b/docs/de/programmers/api-variables/variable-trusted-dir.xml index f6da5738..272840a7 100644 --- a/docs/de/programmers/api-variables/variable-trusted-dir.xml +++ b/docs/de/programmers/api-variables/variable-trusted-dir.xml @@ -1,5 +1,6 @@ + $trusted_dir @@ -29,4 +30,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/api-variables/variable-use-sub-dirs.xml b/docs/de/programmers/api-variables/variable-use-sub-dirs.xml index 21d64201..e7f25871 100644 --- a/docs/de/programmers/api-variables/variable-use-sub-dirs.xml +++ b/docs/de/programmers/api-variables/variable-use-sub-dirs.xml @@ -1,5 +1,6 @@ + $use_sub_dirs @@ -27,4 +28,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/caching.xml b/docs/de/programmers/caching.xml index 11372fb8..984ab9ca 100644 --- a/docs/de/programmers/caching.xml +++ b/docs/de/programmers/caching.xml @@ -1,5 +1,6 @@ + Caching @@ -43,4 +44,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/caching/caching-cacheable.xml b/docs/de/programmers/caching/caching-cacheable.xml index c5fff408..fe568117 100644 --- a/docs/de/programmers/caching/caching-cacheable.xml +++ b/docs/de/programmers/caching/caching-cacheable.xml @@ -1,5 +1,6 @@ + Die Ausgabe von cachebaren Plugins Kontrollieren @@ -17,13 +18,13 @@ Preventing a plugin's output from being cached -index.php: - +caching = true; -function remaining_seconds($params, &$smarty) { +function remaining_seconds($params, &$smarty) { $remain = $params['endtime'] - time(); if ($remain >=0) return $remain . " second(s)"; @@ -34,16 +35,22 @@ function remaining_seconds($params, &$smarty) { $smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); if (!$smarty->is_cached('index.tpl')) { - // objekt $obj aus datenbank dem template zuweisen + // objekt $obj aus datenbank dem template zuweisen $smarty->assign_by_ref('obj', $obj); } $smarty->display('index.tpl'); - - -index.tpl: - -Time Remaining: {remain endtime=$obj->endtime} +?> +]]> + + + where index.tpl is: + + +endtime} +]]> + Der Wert von $obj->endtime ändert bei jeder Anzeige der Seite, selbst wenn die Seite gecached wurde. Das Objekt $obj wird nur geladen wenn die Seite nicht gecached wurde. @@ -51,22 +58,28 @@ Time Remaining: {remain endtime=$obj->endtime} Verhindern dass Template Blöcke gecached werden +caching = true; -function smarty_block_dynamic($param, $content, &$smarty) { +function smarty_block_dynamic($param, $content, &$smarty) { return $content; } $smarty->register_block('dynamic', 'smarty_block_dynamic', false); $smarty->display('index.tpl'); - - -index.tpl: - +?> +]]> + + + where index.tpl is: + + + +{/dynamic} +]]> + + Um sicherzustellen dass ein Teil eines Templates nicht gecached werden soll, kann dieser Abschnitt in einen {dynamic}...{/dynamic} Block verpackt werden. @@ -100,4 +116,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/caching/caching-groups.xml b/docs/de/programmers/caching/caching-groups.xml index 29a5b003..392fc3e0 100644 --- a/docs/de/programmers/caching/caching-groups.xml +++ b/docs/de/programmers/caching/caching-groups.xml @@ -1,5 +1,6 @@ + Cache-Gruppen @@ -11,20 +12,24 @@ 'cache_id'-Gruppen - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - - - // leere alle Caches welche 'sports|basketball' als erste zwei 'cache_id'-Gruppen enthalten - $smarty->clear_cache(null, "sports|basketball"); +clear_cache(null, "sports"); - - $smarty->display('index.tpl',"sports|basketball"); +$smarty->caching = true; + +// leere alle Caches welche 'sports|basketball' als erste zwei 'cache_id'-Gruppen enthalten +$smarty->clear_cache(null,"sports|basketball"); + +// leere alle Caches welche 'sports' als erste 'cache_id'-Gruppe haben. Dies schliesst +// 'sports|basketball', oder 'sports|(anything)|(anything)|(anything)|...' ein +$smarty->clear_cache(null,"sports"); + +$smarty->display('index.tpl',"sports|basketball"); +?> +]]> + Technische Bemerkung @@ -58,4 +63,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/caching/caching-multiple-caches.xml b/docs/de/programmers/caching/caching-multiple-caches.xml index d12f3aca..c2177f6a 100644 --- a/docs/de/programmers/caching/caching-multiple-caches.xml +++ b/docs/de/programmers/caching/caching-multiple-caches.xml @@ -1,5 +1,6 @@ + Multiple Caches für eine Seite @@ -12,14 +13,19 @@ 'display()' eine 'cache_id' übergeben - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - - $my_cache_id = $_GET['article_id']; - - $smarty->display('index.tpl', $my_cache_id); +caching = true; + +$my_cache_id = $_GET['article_id']; + +$smarty->display('index.tpl',$my_cache_id); +?> +]]> + Im oberen Beispiel übergeben wir die Variable '$my_cache_id' @@ -51,21 +57,25 @@ 'is_cached()' mit 'cache_id' aufrufen - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - - $my_cache_id = $_GET['article_id']; - - if(!$smarty->is_cached('index.tpl', $my_cache_id)) { - - // kein Cache gefunden, also Variablen zuweisen - $contents = get_database_contents(); - $smarty->assign($contents); - } - - $smarty->display('index.tpl', $my_cache_id); +caching = true; + +$my_cache_id = $_GET['article_id']; + +if(!$smarty->is_cached('index.tpl',$my_cache_id)) { + // kein Cache gefunden, also Variablen zuweisen + $contents = get_database_contents(); + $smarty->assign($contents); +} + +$smarty->display('index.tpl',$my_cache_id); +?> +]]> + Sie können mit 'clear_cache()' den gesamten Cache einer bestimmten 'cache_id' @@ -74,16 +84,20 @@ Cache einer bestimmten 'cache_id' leeren - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - - - // Cache mit 'sports' als 'cache_id' löschen - $smarty->clear_cache(null, "sports"); - - $smarty->display('index.tpl', "sports"); +caching = true; + +// Cache mit 'sports' als 'cache_id' löschen +$smarty->clear_cache(null,"sports"); + +$smarty->display('index.tpl',"sports"); +?> +]]> + Indem Sie allen dieselbe 'cache_id' übergeben, lassen sich Caches gruppieren. @@ -108,4 +122,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/caching/caching-setting-up.xml b/docs/de/programmers/caching/caching-setting-up.xml index 102f9763..d9e47284 100644 --- a/docs/de/programmers/caching/caching-setting-up.xml +++ b/docs/de/programmers/caching/caching-setting-up.xml @@ -1,5 +1,6 @@ + Caching einrichten @@ -9,12 +10,17 @@ Caching einschalten - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - - $smarty->display('index.tpl'); +caching = true; + +$smarty->display('index.tpl'); +?> +]]> + Wenn Caching eingeschaltet ist, wird der Funktionsaufruf display('index.tpl') @@ -42,27 +48,30 @@ '$cache_lifetime' pro Cache einstellen - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = 2; // Lebensdauer ist pro Cache - - - // Standardwert für '$cache_lifetime' auf 5 Minuten setzen - $smarty->cache_lifetime = 300; - $smarty->display('index.tpl'); - - - // '$cache_lifetime' für 'home.tpl' auf 1 Stunde setzen - $smarty->cache_lifetime = 3600; - $smarty->display('home.tpl'); +cache_lifetime = 30; // 30 Sekunden - $smarty->display('home.tpl'); +$smarty->caching = 2; // Lebensdauer ist pro Cache + +// Standardwert für '$cache_lifetime' auf 5 Minuten setzen +$smarty->cache_lifetime = 300; +$smarty->display('index.tpl'); + +// '$cache_lifetime' für 'home.tpl' auf 1 Stunde setzen +$smarty->cache_lifetime = 3600; +$smarty->display('home.tpl'); + +// ACHTUNG: die folgende Zuweisung an '$cache_lifetime' wird nicht funktionieren, +// wenn '$caching' auf 2 gestellt ist. Wenn die '$cache_lifetime' für 'home.tpl' bereits +// auf 1 Stunde gesetzt wurde, werden neue Werte ignoriert. +// 'home.tpl' wird nach dieser Zuweisung immer noch eine '$cache_lifetime' von 1 Stunde haben +$smarty->cache_lifetime = 30; // 30 seconds +$smarty->display('home.tpl'); +?> +]]> + Wenn $compile_check eingeschaltet ist, @@ -76,13 +85,18 @@ '$compile_check' einschalten - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - $smarty->compile_check = true; - - $smarty->display('index.tpl'); +caching = true; +$smarty->compile_check = true; + +$smarty->display('index.tpl'); +?> +]]> + Wenn $force_compile eingeschaltet ist, @@ -100,19 +114,23 @@ is_cached() verwenden - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - - if(!$smarty->is_cached('index.tpl')) { - - // kein Cache gefunden, also Variablen zuweisen - $contents = get_database_contents(); - $smarty->assign($contents); - } - - $smarty->display('index.tpl'); +caching = true; + +if(!$smarty->is_cached('index.tpl')) { + // kein Cache gefunden, also Variablen zuweisen + $contents = get_database_contents(); + $smarty->assign($contents); +} + +$smarty->display('index.tpl'); +?> +]]> + Mit der insert Funktion können Sie @@ -129,20 +147,23 @@ Cache leeren - require('Smarty.class.php'); - $smarty = new Smarty; - - $smarty->caching = true; - - - // alle Cache-Dateien löschen - $smarty->clear_all_cache(); - - - // nur Cache von 'index.tpl' löschen - $smarty->clear_cache('index.tpl'); - - $smarty->display('index.tpl'); +caching = true; + +// alle Cache-Dateien löschen +$smarty->clear_all_cache(); + +// nur Cache von 'index.tpl' löschen +$smarty->clear_cache('index.tpl'); + +$smarty->display('index.tpl'); +?> +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins.xml b/docs/de/programmers/plugins.xml index fb9a9aa9..fb496e75 100644 --- a/docs/de/programmers/plugins.xml +++ b/docs/de/programmers/plugins.xml @@ -1,5 +1,6 @@ + Smarty durch Plugins erweitern diff --git a/docs/de/programmers/plugins/plugins-block-functions.xml b/docs/de/programmers/plugins/plugins-block-functions.xml index e8fe7792..55ec3fa3 100644 --- a/docs/de/programmers/plugins/plugins-block-functions.xml +++ b/docs/de/programmers/plugins/plugins-block-functions.xml @@ -1,5 +1,6 @@ + Block-Funktionen @@ -62,25 +63,28 @@ Block-Funktionen - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: translate a block of text - * ------------------------------------------------------------- - */ - function smarty_block_translate($params, $content, &$smarty) - { - if (isset($content)) { - $lang = $params['lang']; - - // den $content irgendwie intelligent übersetzuen - return $translation; - } - } + +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-compiler-functions.xml b/docs/de/programmers/plugins/plugins-compiler-functions.xml index c58f5655..2c88fc3f 100644 --- a/docs/de/programmers/plugins/plugins-compiler-functions.xml +++ b/docs/de/programmers/plugins/plugins-compiler-functions.xml @@ -1,5 +1,6 @@ + Compiler-Funktionen Compiler-Funktionen werden während der Kompilierung des Template @@ -30,22 +31,25 @@ Einfache Compiler-Funktionen - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: Output header containing the source file name and - * the time it was compiled. - * ------------------------------------------------------------- - */ - function smarty_compiler_tplheader($tag_arg, &$smarty) - { - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; - } - ?> +_current_file . " compiled at " . date('Y-m-d H:M'). "';"; +} +?> +]]> + Diese Funktion kann aus dem Template wie folgt aufgerufen werden: @@ -59,9 +63,12 @@ Der resultierende PHP-Code würde ungefähr so aussehen: - <php - echo 'index.tpl compiled at 2002-02-20 20:02'; - ?> + +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-functions.xml b/docs/de/programmers/plugins/plugins-functions.xml index 1ec81417..c7d66e52 100644 --- a/docs/de/programmers/plugins/plugins-functions.xml +++ b/docs/de/programmers/plugins/plugins-functions.xml @@ -1,5 +1,6 @@ + Template-Funktionen @@ -35,29 +36,32 @@ Funktionsplugin mit Ausgabe - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ - function smarty_function_eightball($params, &$smarty) - { - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - echo $answers[$result]; - } - ?> + +]]> + @@ -71,33 +75,34 @@ Funktionsplugin ohne Ausgabe - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ - function smarty_function_assign($params, &$smarty) - { - extract($params); - - if (empty($var)) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; +trigger_error("assign: missing 'var' parameter"); + return; } - + if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; + $smarty->trigger_error("assign: missing 'value' parameter"); + return; } - - $smarty->assign($var, $value); - } - ?> + + $smarty->assign($params['var'], $params['value']); +} +?> +]]> + @@ -120,4 +125,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-howto.xml b/docs/de/programmers/plugins/plugins-howto.xml index 2a367bfb..64b8d292 100644 --- a/docs/de/programmers/plugins/plugins-howto.xml +++ b/docs/de/programmers/plugins/plugins-howto.xml @@ -1,5 +1,6 @@ + Wie Plugins funktionieren @@ -39,4 +40,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-inserts.xml b/docs/de/programmers/plugins/plugins-inserts.xml index 83336d50..226b2a64 100644 --- a/docs/de/programmers/plugins/plugins-inserts.xml +++ b/docs/de/programmers/plugins/plugins-inserts.xml @@ -1,5 +1,6 @@ + Inserts Insert-Plugins werden verwendet, um Funktionen zu implementieren, die @@ -25,27 +26,30 @@ Insert-Plugin - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: Inserts current date/time according to format - * ------------------------------------------------------------- - */ - function smarty_insert_time($params, &$smarty) - { - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; - } - ?> +trigger_error("insert time: missing 'format' parameter"); + return; + } + + $datetime = strftime($params['format']); + return $datetime; +} +?> +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-modifiers.xml b/docs/de/programmers/plugins/plugins-modifiers.xml index 0c74b992..53009976 100644 --- a/docs/de/programmers/plugins/plugins-modifiers.xml +++ b/docs/de/programmers/plugins/plugins-modifiers.xml @@ -1,5 +1,6 @@ + Variablen-Modifikatoren Variablen-Modifikatoren sind kleine Funktionen, die auf eine Variable angewendet @@ -34,56 +35,62 @@ zusätzlichen Parameter. - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: capitalize words in the string - * ------------------------------------------------------------- - */ - function smarty_modifier_capitalize($string) - { - return ucwords($string); - } - ?> + +]]> + Komplexes Modifikator-Plugin - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: Truncate a string to a certain length if necessary, - * optionally splitting in the middle of a word, and - * appending the $etc string. - * ------------------------------------------------------------- - */ - function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) - { - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; - } - ?> + $length) { + $length -= strlen($etc); + $fragment = substr($string, 0, $length+1); + if ($break_words) + $fragment = substr($fragment, 0, -1); + else + $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); + return $fragment.$etc; + } else + return $string; +} +?> +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-naming-conventions.xml b/docs/de/programmers/plugins/plugins-naming-conventions.xml index bd712c11..86e440c0 100644 --- a/docs/de/programmers/plugins/plugins-naming-conventions.xml +++ b/docs/de/programmers/plugins/plugins-naming-conventions.xml @@ -1,5 +1,6 @@ + Namenskonvention @@ -77,4 +78,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-outputfilters.xml b/docs/de/programmers/plugins/plugins-outputfilters.xml index d39cf491..fe544da9 100644 --- a/docs/de/programmers/plugins/plugins-outputfilters.xml +++ b/docs/de/programmers/plugins/plugins-outputfilters.xml @@ -1,5 +1,6 @@ + Ausgabefilter Ausgabefilter werden auf das Template direkt vor der Ausgabe angewendet, @@ -20,21 +21,25 @@ Ausgabefilter Plugin - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: Converts @ sign in email addresses to %40 as - * a simple protection against spambots - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, &$smarty) - { + +]]> @@ -57,4 +62,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml index 9be4ff2a..2932853a 100644 --- a/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml +++ b/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml @@ -1,5 +1,6 @@ + 'pre'/'post'-Filter @@ -37,42 +38,48 @@ 'pre'-Filter Plugin - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: Convert html tags to be lowercase. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } - ?> +]+>!e', 'strtolower("$1")', $source); + } +?> +]]> + 'post'-Filter Plugin - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: Output code that lists all current template vars. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; +\nget_template_vars()); ?>\n" . $compiled; return $compiled; - } - ?> + } +?> +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-resources.xml b/docs/de/programmers/plugins/plugins-resources.xml index 1a33c870..0bc534d3 100644 --- a/docs/de/programmers/plugins/plugins-resources.xml +++ b/docs/de/programmers/plugins/plugins-resources.xml @@ -1,5 +1,6 @@ + Ressourcen Ressourcen-Plugins stellen einen generischen Weg dar, um Smarty mit @@ -76,60 +77,61 @@ Ressourcen Plugin - <?php - /* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ - function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) - { - // Datenbankabfragen machen, um '$tpl_source' das template zuzuweisen - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } - } - - function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) - { - - // Datenbankabfragen durchführen um '$tpl_timestamp' zuzuweisen - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } - } - - function smarty_resource_db_secure($tpl_name, &$smarty) - { - - // angenommen alle Templates seien sicher... - return true; - } - - function smarty_resource_db_trusted($tpl_name, &$smarty) - { - - // wird für Templates nicht verwendet - } - ?> +query("select tpl_source + from my_table + where tpl_name='$tpl_name'"); + if ($sql->num_rows) { + $tpl_source = $sql->record['tpl_source']; + return true; + } else { + return false; + } +} + +function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) +{ + // do database call here to populate $tpl_timestamp. + $sql = new SQL; + $sql->query("select tpl_timestamp + from my_table + where tpl_name='$tpl_name'"); + if ($sql->num_rows) { + $tpl_timestamp = $sql->record['tpl_timestamp']; + return true; + } else { + return false; + } +} + +function smarty_resource_db_secure($tpl_name, &$smarty) +{ + // assume all templates are secure + return true; +} + +function smarty_resource_db_trusted($tpl_name, &$smarty) +{ + // not used for templates +} +?> +]]> + \ No newline at end of file +--> diff --git a/docs/de/programmers/plugins/plugins-writing.xml b/docs/de/programmers/plugins/plugins-writing.xml index 46ba88db..cb0542de 100644 --- a/docs/de/programmers/plugins/plugins-writing.xml +++ b/docs/de/programmers/plugins/plugins-writing.xml @@ -1,5 +1,6 @@ + Plugins schreiben @@ -18,7 +19,12 @@ folgender Weg gewählt werden, um das benötigte Plugin zu laden: - require_once $smarty->_get_plugin_filepath('function', 'html_options'); +_get_plugin_filepath('function', 'html_options'); +?> +]]> + Das Smarty Objekt wird jedem Plugin immer als letzter Parameter übergeben (ausser bei Variablen-Modifikatoren und bei Blücken wird @@ -44,4 +50,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> diff --git a/docs/de/programmers/smarty-constants.xml b/docs/de/programmers/smarty-constants.xml index f7a28cb0..28f19ec7 100644 --- a/docs/de/programmers/smarty-constants.xml +++ b/docs/de/programmers/smarty-constants.xml @@ -1,5 +1,6 @@ + Konstanten @@ -14,11 +15,15 @@ SMARTY_DIR - - // Pfad zum Smarty Verzeichnis setzen - define("SMARTY_DIR","/usr/local/lib/php/Smarty/"); - - require_once(SMARTY_DIR."Smarty.class.php"); + +]]> + @@ -41,4 +46,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +-->