mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-03 22:01:36 +01:00
74 lines
2.5 KiB
XML
74 lines
2.5 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<refentry id="api.register.compiler.function">
|
|
<refnamediv>
|
|
<refname>register_compiler_function</refname>
|
|
<refpurpose>Registra dinamicamente un plugin de una funcion compiladora</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descripción </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>
|
|
Pase el nombre de la
|
|
<link linkend="plugins.compiler.functions">función compiladora</link>,
|
|
seguido por la función PHP que implemente esto.
|
|
</para>
|
|
<para>
|
|
La llamada a la funcion-php <parameter>impl</parameter> puede ser
|
|
</para>
|
|
<orderedlist numeration="loweralpha">
|
|
<listitem>
|
|
<para>
|
|
a una cadena conteniendo el nombre de la función
|
|
</para>
|
|
</listitem><listitem>
|
|
<para>un arreglo con la forma <literal>array(&$object, $method)</literal> con
|
|
<literal>&$object</literal> siendo una referencia para un objeto y
|
|
<literal>$method</literal> siendo una cadena conteniendo el nombre del método
|
|
</para>
|
|
</listitem><listitem>
|
|
<para>un arreglo con la forma
|
|
<literal>array(&$class, $method)</literal> con
|
|
<literal>$class</literal> siendo el nombre de una clase y
|
|
<literal>$method</literal> siendo el método de esta clase.
|
|
</para>
|
|
</listitem>
|
|
</orderedlist>
|
|
<para>
|
|
<parameter>cacheable</parameter> puede ser omitido en la mayoria de los casos.
|
|
Vea <link linkend="caching.cacheable">Controlando modos de Salida de
|
|
Cache de los Plugins</link> para obtener mayor información.
|
|
</para>
|
|
<para>
|
|
Ver también <link linkend="api.unregister.compiler.function">unregister_compiler_function() </link>
|
|
y <link linkend="plugins.compiler.functions">Plugin 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
|
|
-->
|