1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-24 07:02:08 +01:00
Files
archived-doc-ja/reference/reflection/reflectionclass/resetaslazyproxy.xml
KentarouTakeda f438331f83 [PHP 8.4] 「レイジーオブジェクト」の翻訳 (#159)
* 追加ドキュメント 英語版状態

* [PHP 8.4] 「レイジーオブジェクト」の翻訳
2024-11-14 21:59:35 +09:00

101 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: c0fa5077c8862405942d8aac7360c5169558b59b Maintainer: KentarouTakeda Status: ready -->
<!-- Credits: KentarouTakeda -->
<refentry xml:id="reflectionclass.resetaslazyproxy" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
<refname>ReflectionClass::resetAsLazyProxy</refname>
<refpurpose>オブジェクトをリセットしてレイジーとしてマークする</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ReflectionClass">
<modifier>public</modifier> <type>void</type><methodname>ReflectionClass::resetAsLazyProxy</methodname>
<methodparam><type>object</type><parameter>object</parameter></methodparam>
<methodparam><type>callable</type><parameter>factory</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<simpara>
このメソッドの動作は、
<methodname>ReflectionClass::resetAsLazyGhost</methodname>と同じですが、
プロキシ戦略を使用します。
</simpara>
<simpara>
<parameter>object</parameter>自体がプロキシになります。
<methodname>ReflectionClass::resetAsLazyGhost</methodname>と同様に、
オブジェクトは他のものに置き換えられず、初期化後もその同一性は
変わりません。プロキシと実インスタンスは別々のオブジェクトであり、
別々の実体を持ちます。
</simpara>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>object</parameter></term>
<listitem>
<simpara>
非レイジーなオブジェクト、または初期化されたレイジーオブジェクト。
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>factory</parameter></term>
<listitem>
<simpara>
<methodname>ReflectionClass::newLazyProxy</methodname>
同じシグネチャと目的を持つファクトリコールバック。
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('reflectionclass.resetaslazyghost.parameters.options')/*)">
<xi:fallback/>
</xi:include>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
&return.void;
</simpara>
</refsect1>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('reflectionclass.resetaslazyghost')/db:refsect1[@role='errors'])">
<xi:fallback/>
</xi:include>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>ReflectionClass::newLazyProxy</methodname></member>
<member><methodname>ReflectionClass::resetAsLazyGhost</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
-->