mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-08 16:21:39 +01:00
60 lines
2.0 KiB
XML
60 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 2972 Maintainer: takagi Status: ready -->
|
|
<!-- CREDITS: mat-sh,daichi,joe -->
|
|
<refentry id="api.register.compiler.function">
|
|
<refnamediv>
|
|
<refname>register_compiler_function()</refname>
|
|
<refpurpose>コンパイラ関数プラグインを動的に登録します。</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>説明</title>
|
|
<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>
|
|
<link linkend="plugins.compiler.functions">コンパイラ関数</link> の名前と、
|
|
それを実装する PHP のユーザー定義関数名を渡します。
|
|
</para>
|
|
&api.register.snippet;
|
|
|
|
<para>
|
|
<parameter>cacheable</parameter> はほとんどの場合に省略可能です。
|
|
これらの正しい使用法についての詳細は、<link linkend="caching.cacheable">
|
|
キャッシュ可能なプラグインの出力の制御</link> を参照して下さい。
|
|
</para>
|
|
|
|
<para>
|
|
<link linkend="api.unregister.compiler.function">
|
|
<varname>unregister_compiler_function()</varname></link>
|
|
および
|
|
<link linkend="plugins.compiler.functions">コンパイラ関数プラグイン</link>
|
|
も参照してください。
|
|
</para>
|
|
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- 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
|
|
-->
|