mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-05 14:51:37 +01:00
Tidy up formatting and examples
This commit is contained in:
@@ -18,42 +18,20 @@
|
||||
<link linkend="plugins.compiler.functions">compiler function</link> name,
|
||||
followed by the PHP function that implements it.
|
||||
</para>
|
||||
<para>
|
||||
The php-function callback <parameter>impl</parameter> can be either:
|
||||
</para>
|
||||
<orderedlist numeration="loweralpha">
|
||||
<listitem>
|
||||
<para>
|
||||
a string containing the function name
|
||||
</para>
|
||||
</listitem><listitem>
|
||||
<para>an array of the form <literal>array(&$object, $method)</literal> with
|
||||
<literal>&$object</literal> being a reference to an
|
||||
object and <literal>$method</literal> being a string
|
||||
containing the method-name
|
||||
</para>
|
||||
</listitem><listitem>
|
||||
<para>an array of the form
|
||||
<literal>array(&$class, $method)</literal> with
|
||||
<literal>$class</literal> being a classname and
|
||||
<literal>$method</literal> being a class method of that
|
||||
class.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
<para>
|
||||
&api.register.snippet;
|
||||
|
||||
<para>
|
||||
<parameter>cacheable</parameter> can be omitted in
|
||||
most cases. See <link linkend="caching.cacheable">Controlling
|
||||
Cacheability of Plugins' Output</link> on how to use it properly.
|
||||
most cases. See <link linkend="caching.cacheable">controlling
|
||||
cacheability of plugin output</link> on how to use it properly.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
See also
|
||||
<link
|
||||
linkend="api.unregister.compiler.function">unregister_compiler_function()
|
||||
</link>
|
||||
and
|
||||
<link linkend="plugins.compiler.functions">Plugin Compiler Functions</link>.
|
||||
<link linkend="api.unregister.compiler.function">
|
||||
<varname>unregister_compiler_function()</varname></link>
|
||||
and the
|
||||
<link linkend="plugins.compiler.functions">plugin compiler functions</link> section.
|
||||
</para>
|
||||
|
||||
</refsect1>
|
||||
|
||||
Reference in New Issue
Block a user