Files
smarty/docs/ru/programmers/api-functions/api-unregister-function.xml

53 lines
1.5 KiB
XML
Raw Normal View History

2008-01-22 21:04:44 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2004-04-13 11:47:32 +00:00
<!-- $Revision$ -->
<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready -->
<refentry id="api.unregister.function">
<refnamediv>
<refname>unregister_function</refname>
<refpurpose></refpurpose>
</refnamediv>
<refsect1>
<title />
<methodsynopsis>
<type>void</type><methodname>unregister_function</methodname>
<methodparam><type>string</type><parameter>name</parameter></methodparam>
</methodsynopsis>
<para>
2008-01-22 21:04:44 +00:00
Используйте функцию для динамической деригистрации плагина функции шаблона.
В качестве аргумента передается имя функции шаблона.
</para>
<example>
<title>unregister_function</title>
<programlisting role="php">
<![CDATA[
<?php
2008-01-22 21:04:44 +00:00
// мы не хотим давать доступ дизайнеру шаблонов к системным файлам
2004-04-13 11:47:32 +00:00
$smarty->unregister_function("fetch");
?>
]]>
</programlisting>
</example>
</refsect1>
</refentry>
2004-04-13 11:47:32 +00:00
<!-- 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
-->