svn: /phpdoc/ru/trunk/language/predefined/ weakreference.xml

From: Date: Mon, 12 Aug 2019 11:40:48 +0000
Subject: svn: /phpdoc/ru/trunk/language/predefined/ weakreference.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-7930@lists.php.net to get a copy of this message
lex Mon, 12 Aug 2019 11:40:48 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=347842 Log: weakreference: new by "Vitaly Artemyev" <mail@vitalyart.ru> Changed paths: A phpdoc/ru/trunk/language/predefined/weakreference.xml Added: phpdoc/ru/trunk/language/predefined/weakreference.xml =================================================================== --- phpdoc/ru/trunk/language/predefined/weakreference.xml (rev 0) +++ phpdoc/ru/trunk/language/predefined/weakreference.xml 2019-08-12 11:40:48 UTC (rev 347842) @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 347473 Maintainer: lex Status: ready --> +<!-- Reviewed: no --> + +<phpdoc:classref xml:id="class.weakreference" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> + + <title>Класс WeakReference</title> + <titleabbrev>WeakReference</titleabbrev> + + <partintro> + +<!-- {{{ WeakReference intro --> + <section xml:id="weakreference.intro"> + &reftitle.intro; + <para> + Класс WeakReference предоставляет способ доступа к объекту, не влияя при этом на количество ссылок на него, таким образом сборщик мусора сможет освободить этот объект. + </para> + <note> + <para> + Класс <classname>WeakReference</classname> не следует путать с классом <classname>WeakRef</classname> расширения <link linkend="class.weakref">Weakref</link>. + </para> + </note> + <para> + Объект класса <classname>WeakReference</classname> не может быть сериализован. + </para> + </section> +<!-- }}} --> + + <section xml:id="weakreference.synopsis"> + &reftitle.classsynopsis; + +<!-- {{{ Synopsis --> + <classsynopsis> + <ooclass><classname>WeakReference</classname></ooclass> + +<!-- {{{ Class synopsis --> + <classsynopsisinfo> + <ooclass> + <classname>WeakReference</classname> + </ooclass> + </classsynopsisinfo> +<!-- }}} --> + + <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo> + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.weakreference')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])"> + <xi:fallback /> + </xi:include> + <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.weakreference')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])"> + <xi:fallback /> + </xi:include> + </classsynopsis> +<!-- }}} --> + + </section> + + <section xml:id="weakreference.examples"> + <title>Примеры использования WeakReference</title> + <para> + <example xml:id="weakreference.basic-example"> + <title>Пример #1. Простое использование WeakReference</title> + <programlisting role="php"> +<![CDATA[ +<?php +$obj = new stdClass; +$weakref = WeakReference::create($obj); +var_dump($weakref->get()); +unset($obj); +var_dump($weakref->get()); +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +object(stdClass)#1 (0) { +} +NULL +]]> + </screen> + </example> + </para> + </section> + + </partintro> + + &language.predefined.weakreference.construct; + &language.predefined.weakreference.create; + &language.predefined.weakreference.get; + +</phpdoc:classref> + +<!-- 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 +--> Property changes on: phpdoc/ru/trunk/language/predefined/weakreference.xml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL \ No newline at end of property

« previous php.doc.ru (#7930) next »