mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-05 14:51:37 +01:00
more examples, WS and linking from Peter. Thanks :)
This commit is contained in:
@@ -21,24 +21,30 @@
|
||||
<para>
|
||||
The php-function callback <parameter>impl</parameter> can be either:
|
||||
</para>
|
||||
<para>
|
||||
(a) a string containing the function name
|
||||
</para>
|
||||
<para>(b) 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 mehod-name
|
||||
</para>
|
||||
<para>(c) 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>
|
||||
<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 mehod-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>
|
||||
<parameter>cacheable</parameter> can be omitted in
|
||||
most cases. See <link linkend="caching.cacheable">Controlling
|
||||
Cacheability of Plugins' Output</link> on how to it properly.
|
||||
Cacheability of Plugins' Output</link> on how to use it properly.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user