svn: /phpdoc/en/trunk/reference/intl/transliterator/ construct.xml
| From: | Gustavo André dos Santos Lopes | Date: | Sat, 03 Mar 2012 15:08:21 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/intl/transliterator/ construct.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9822@lists.php.net to get a copy of this message | ||
cataphract Sat, 03 Mar 2012 15:08:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323851
Log:
- Documented Transliterator::__construct. See bug #61244.
Bug: https://bugs.php.net/61244 (Wont fix) Translitrator
__construct should be like create
Changed paths:
U phpdoc/en/trunk/reference/intl/transliterator/construct.xml
Modified: phpdoc/en/trunk/reference/intl/transliterator/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/intl/transliterator/construct.xml 2012-03-03 12:46:17 UTC (rev 323850)
+++ phpdoc/en/trunk/reference/intl/transliterator/construct.xml 2012-03-03 15:08:21 UTC (rev 323851)
@@ -4,7 +4,7 @@
<refentry xml:id="transliterator.construct" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Transliterator::__construct</refname>
- <refpurpose>Construct a Transliterator object</refpurpose>
+ <refpurpose>Private constructor to deny instantiation</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -14,11 +14,14 @@
<void />
</constructorsynopsis>
<para>
- Constructs a transliterator object.
+ This method should not be called. Its only purpose is to deny instantiation
+ with the <link linkend="language.oop5.basic.new">new</link> operator.
</para>
+ <para>
+ Use the factory methods <methodname>Transliterator::create</methodname> or
+ <methodname>Transliterator::createFromRules</methodname> instead.
+ </para>
- &warn.undocumented.func;
-
</refsect1>
<refsect1 role="parameters">
@@ -29,7 +32,8 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- A transliterator object.
+ This method should not be executed. If it is (e.g. through reflection), then
+ its return value is unspecified.
</para>
</refsect1>
@@ -37,8 +41,8 @@
&reftitle.seealso;
<para>
<simplelist>
-
<member><methodname>Transliterator::getErrorMessage</methodname></member>
<member><methodname>Transliterator::create</methodname></member>
+
<member><methodname>Transliterator::createFromRules</methodname></member>
</simplelist>
</para>
</refsect1>