1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 07:42:22 +01:00
Files
2024-01-31 11:17:56 +03:00

81 lines
2.2 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: b621ab27a9d333285df99a03825b36a87eb67cad Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="eventconfig.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>EventConfig::__construct</refname>
<refpurpose>Создать объект EventConfig</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier>
<methodname>EventConfig::__construct</methodname>
<void />
</methodsynopsis>
<para>
Создаёт объект EventConfig, который можно передать в конструктор
<methodname>EventBase::__construct</methodname>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>
Пример использования метода <function>EventConfig::__construct</function></title>
<programlisting role="php">
<![CDATA[
<?php
// Игнорируем метод select
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "Метод 'select' будет игнорироваться\n";
}
// Создаём event_base, связанный с этим конфигом
$base = new EventBase($cfg);
/* Теперь объект $base настроен на игнорирование метода select (бэкенд) */
?>
]]>
</programlisting>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member>
<methodname>EventBase::__construct</methodname>
</member>
</simplelist>
</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:"~/.phpdoc/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
-->