mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-08 16:21:39 +01:00
71 lines
2.6 KiB
XML
71 lines
2.6 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<!-- $Revision$ -->
|
||
|
|
<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready -->
|
||
|
|
<!-- CREDITS: mat-sh,daichi,joe -->
|
||
|
|
<chapter id="plugins">
|
||
|
|
<title>プラグインによる Smarty の拡張</title>
|
||
|
|
<para>
|
||
|
|
Smarty 2.0 から導入されたプラグインアーキテクチャにより、
|
||
|
|
Smarty のほとんど全ての機能がカスタマイズ可能になりました。
|
||
|
|
プラグインには次のものがあります。
|
||
|
|
<itemizedlist spacing="compact">
|
||
|
|
<listitem><simpara>テンプレート関数プラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>修飾子プラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>ブロック関数プラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>コンパイラ関数プラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>プリフィルタプラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>ポストフィルタプラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>アウトプットフィルタプラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>リソースプラグイン</simpara></listitem>
|
||
|
|
<listitem><simpara>インサートプラグイン</simpara></listitem>
|
||
|
|
</itemizedlist>
|
||
|
|
リソースを除いて、register_* API
|
||
|
|
によって関数を登録する古い方法の後方互換性はサポートされます。
|
||
|
|
API を使わずに、代わりに <literal>$custom_funcs</literal>,
|
||
|
|
<literal>$custom_mods</literal> や その他のクラス変数を変更していたなら、
|
||
|
|
API を使用するか、行った拡張をプラグインに変換するようにスクリプトを調整する必要があります。
|
||
|
|
</para>
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-howto;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-naming-conventions;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-writing;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-functions;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-modifiers;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-block-functions;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-compiler-functions;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-prefilters-postfilters;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-outputfilters;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-resources;
|
||
|
|
|
||
|
|
&programmers.plugins.plugins-inserts;
|
||
|
|
</chapter>
|
||
|
|
<!-- Keep this comment at the end of the file
|
||
|
|
Local variables:
|
||
|
|
mode: sgml
|
||
|
|
sgml-omittag:t
|
||
|
|
sgml-shorttag:t
|
||
|
|
sgml-minimize-attributes:nil
|
||
|
|
sgml-always-quote-attributes:t
|
||
|
|
sgml-indent-step:1
|
||
|
|
sgml-indent-data:t
|
||
|
|
indent-tabs-mode:nil
|
||
|
|
sgml-parent-document:nil
|
||
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
||
|
|
sgml-exposed-tags:nil
|
||
|
|
sgml-local-catalogs:nil
|
||
|
|
sgml-local-ecat-files:nil
|
||
|
|
End:
|
||
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
|
|
vim: et tw=78 syn=sgml
|
||
|
|
vi: ts=1 sw=1
|
||
|
|
-->
|