Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion reference/classobj/functions/is-a.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: fd65805e83f7dc3b12ab5844cafc4489dc367a27 Maintainer: nio Status: ready -->
<!-- EN-Revision: c558c3af38874a913c7515bbd49aaf2e689cbdd0 Maintainer: nio Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.is-a" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -89,6 +89,15 @@ if (is_a($WF, 'WidgetFactory')) {
<programlisting role="php">
<![CDATA[
<?php
// define a class
class WidgetFactory
{
var $oink = 'moo';
}

// create a new object
$WF = new WidgetFactory();

if ($WF instanceof WidgetFactory) {
echo 'Yes, $WF is a WidgetFactory';
}
Expand Down
35 changes: 32 additions & 3 deletions reference/classobj/functions/method-exists.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6846ebb4e33d51faee4a1e99c241a7a24861e0e4 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 57c38808e4eed7fce33992a32b2ffee78dd8004e Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.method-exists" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>method_exists</refname>
Expand Down Expand Up @@ -51,6 +51,28 @@
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>7.4.0</entry>
<entry>
针对继承的私有方法的类检查现在返回 <parameter>false</parameter>。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down Expand Up @@ -94,6 +116,13 @@ bool(true)
<refsect1 role="notes">
&reftitle.notes;
&note.uses-autoload;
<note>
<simpara>
<function>method_exists</function> 函数无法检测使用
<link linkend="language.oop5.overloading.methods"><literal>__call</literal></link>
魔术方法访问的方法。
</simpara>
</note>
</refsect1>

<refsect1 role="seealso">
Expand Down Expand Up @@ -126,4 +155,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-->
5 changes: 3 additions & 2 deletions reference/curl/book.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 27fd6d7147a855eb0e407110f1db39a9c61b26d6 Maintainer: daijie Status: ready -->
<!-- CREDITS: LuffyRytia -->
<!-- EN-Revision: 01d19a544891db839e36de8316e78f81de56c1ca Maintainer: daijie Status: ready -->
<!-- CREDITS: Luffy, Rytia -->

<book xml:id="book.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="bundledexternal" ?>
Expand All @@ -24,6 +24,7 @@
&reference.curl.curlhandle;
&reference.curl.curlmultihandle;
&reference.curl.curlsharehandle;
&reference.curl.curlsharepersistenthandle;
&reference.curl.curlfile;
&reference.curl.curlstringfile;

Expand Down
80 changes: 80 additions & 0 deletions reference/curl/curlsharepersistenthandle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 01d19a544891db839e36de8316e78f81de56c1ca Maintainer: Luffy Status: ready -->
<reference xml:id="class.curlsharepersistenthandle" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>CurlSharePersistentHandle 类</title>
<titleabbrev>CurlSharePersistentHandle</titleabbrev>

<partintro>

<!-- {{{ CurlSharePersistentHandle intro -->
<section xml:id="curlsharepersistenthandle.intro">
&reftitle.intro;
<simpara>
代表一个持久的 cURL "share" 句柄。
</simpara>
</section>
<!-- }}} -->

<section xml:id="curlsharepersistenthandle.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<modifier>final</modifier>
<classname>CurlSharePersistentHandle</classname>
</ooclass>

<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>array</type>
<varname linkend="curlsharepersistenthandle.props.options">options</varname>
</fieldsynopsis>
</classsynopsis>
<!-- }}} -->

</section>

<!-- {{{ CurlSharePersistentHandle properties -->
<section xml:id="curlsharepersistenthandle.props">
&reftitle.properties;
<variablelist>
<varlistentry xml:id="curlsharepersistenthandle.props.options">
<term><varname>options</varname></term>
<listitem>
<simpara>使用此句柄共享的 <constant>CURL_LOCK_DATA_<replaceable>*</replaceable></constant> 缓存。</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->


</partintro>

<!-- &reference.curl.entities.curlsharepersistenthandle; -->

</reference>
<!-- 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
-->
5 changes: 3 additions & 2 deletions reference/curl/functions/curl-share-init.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: b7f8c11e56ff1c57a2993e2ed7e5c5ace18637fd Maintainer: duanxiaoqiang Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 01d19a544891db839e36de8316e78f81de56c1ca Maintainer: duanxiaoqiang Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.curl-share-init" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>curl_share_init</refname>
Expand Down Expand Up @@ -103,6 +103,7 @@ curl_close($ch2);
<simplelist>
<member><function>curl_share_setopt</function></member>
<member><function>curl_share_close</function></member>
<member><function>curl_share_init_persistent</function></member>
</simplelist>
</para>
</refsect1>
Expand Down
5 changes: 3 additions & 2 deletions reference/errorfunc/functions/restore-error-handler.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f781803449007bb0e3a96c693e0eee067f7eb466 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 4a6671fe697ead5b27603b56face01a2c4e7ebe5 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.restore-error-handler" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>restore_error_handler</refname>
Expand Down Expand Up @@ -73,6 +73,7 @@ Invalid serialized value.
<simplelist>
<member><function>error_reporting</function></member>
<member><function>set_error_handler</function></member>
<member><function>get_error_handler</function></member>
<member><function>restore_exception_handler</function></member>
<member><function>trigger_error</function></member>
</simplelist>
Expand Down
5 changes: 3 additions & 2 deletions reference/errorfunc/functions/restore-exception-handler.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f781803449007bb0e3a96c693e0eee067f7eb466 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 4a6671fe697ead5b27603b56face01a2c4e7ebe5 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.restore-exception-handler" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>restore_exception_handler</refname>
Expand Down Expand Up @@ -76,6 +76,7 @@
<para>
<simplelist>
<member><function>set_exception_handler</function></member>
<member><function>get_exception_handler</function></member>
<member><function>set_error_handler</function></member>
<member><function>restore_error_handler</function></member>
<member><function>error_reporting</function></member>
Expand Down
10 changes: 5 additions & 5 deletions reference/errorfunc/functions/set-error-handler.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 23906aa9f613d0f67538e4292b220cebf624d5f2 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 21ce7d7f4f9f6f241f3e09e7f0a5be5c504d90d2 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.set-error-handler" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>set_error_handler</refname>
Expand Down Expand Up @@ -141,8 +141,8 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
如果之前定义的错误处理程序(如果有)。如果是内置的错误处理程序,则返回
&null;。如果之前的错误处理程序是一个类的方法,此函数会返回带类和方法名的索引数组。
Returns the previously defined error handler (if any) as a <type>callable</type>.
If the built-in error handler is used &null; is returned.
</para>
</refsect1>

Expand Down Expand Up @@ -322,7 +322,7 @@ Aborting...<br />
<simplelist>
<member><classname>ErrorException</classname></member>
<member><function>error_reporting</function></member>
<member><function>restore_error_handler</function></member>
<member><function>get_error_handler</function></member>
<member><function>trigger_error</function></member>
<member><link linkend="errorfunc.constants">error level constants</link></member>
</simplelist>
Expand Down
5 changes: 3 additions & 2 deletions reference/errorfunc/functions/set-exception-handler.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 686b6869e2695d96d0f3a2055cfa629a8b3b1ac7 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: 4a6671fe697ead5b27603b56face01a2c4e7ebe5 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.set-exception-handler" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>set_exception_handler</refname>
Expand Down Expand Up @@ -85,6 +85,7 @@ echo "Not Executed\n";
&reftitle.seealso;
<para>
<simplelist>
<member><function>get_exception_handler</function></member>
<member><function>restore_exception_handler</function></member>
<member><function>restore_error_handler</function></member>
<member><function>error_reporting</function></member>
Expand Down
3 changes: 2 additions & 1 deletion reference/event/book.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: b621ab27a9d333285df99a03825b36a87eb67cad Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<book xml:id="book.event" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="pecl" ?>
<title>Event</title>
Expand Down
3 changes: 2 additions & 1 deletion reference/event/eventconfig.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4d17b7b4947e7819ff5036715dd706be87ae4def Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<reference xml:id="class.eventconfig" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>EventConfig 类</title>
<titleabbrev>EventConfig</titleabbrev>
Expand Down
2 changes: 1 addition & 1 deletion reference/event/setup.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e8ac70bf549a723cb36465667a6109d9933b8619 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<chapter xml:id="event.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.setup;
Expand Down