Tidy up formatting and examples

This commit is contained in:
pete_morgan
2006-09-26 23:29:02 +00:00
parent f56effe8fd
commit c9bdfdf1e5
38 changed files with 377 additions and 471 deletions

View File

@@ -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(&amp;$object, $method)</literal> with
<literal>&amp;$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(&amp;$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>