mirror of
https://github.com/php/doc-zh.git
synced 2026-03-23 22:52:08 +01:00
* Removed the old and unused DomXML section
* Improve English grammar for disable_{functions|classes} INI setting
75 lines
2.3 KiB
XML
75 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: verdana Status: ready -->
|
||
<!-- CREDITS: dallas, HonestQiao, Luffy, mowangjuanzi -->
|
||
<chapter xml:id="language.oop5" xmlns="http://docbook.org/ns/docbook" annotations="interactive">
|
||
<title>类与对象</title>
|
||
|
||
<sect1 xml:id="oop5.intro">
|
||
<title>简介</title>
|
||
<para>
|
||
PHP 具有完整的对象模型。特性包括:
|
||
<link
|
||
linkend="language.oop5.visibility">访问控制</link>,<link
|
||
linkend="language.oop5.abstract">抽象类</link>和 <link
|
||
linkend="language.oop5.final">final</link> 类与方法,附加的<link
|
||
linkend="language.oop5.magic">魔术方法</link>,<link
|
||
linkend="language.oop5.interfaces">接口</link>,<link
|
||
linkend="language.oop5.cloning">对象复制</link>。
|
||
</para>
|
||
<para>
|
||
PHP 对待对象的方式等同于引用或句柄,即每个变量都持有对象的引用,而不是整个对象的复制。参见
|
||
<link linkend="language.oop5.references">对象和引用</link>。
|
||
</para>
|
||
&tip.userlandnaming;
|
||
</sect1>
|
||
|
||
&language.oop5.basic;
|
||
&language.oop5.properties;
|
||
&language.oop5.property-hooks;
|
||
&language.oop5.constants;
|
||
&language.oop5.autoload;
|
||
&language.oop5.decon;
|
||
&language.oop5.visibility;
|
||
&language.oop5.inheritance;
|
||
&language.oop5.paamayim-nekudotayim;
|
||
&language.oop5.static;
|
||
&language.oop5.abstract;
|
||
&language.oop5.interfaces;
|
||
&language.oop5.traits;
|
||
&language.oop5.anonymous;
|
||
&language.oop5.overloading;
|
||
&language.oop5.iterations;
|
||
&language.oop5.magic;
|
||
&language.oop5.final;
|
||
&language.oop5.cloning;
|
||
&language.oop5.object-comparison;
|
||
&language.oop5.late-static-bindings;
|
||
&language.oop5.references;
|
||
&language.oop5.serialization;
|
||
&language.oop5.variance;
|
||
&language.oop5.lazy-objects;
|
||
&language.oop5.changelog;
|
||
</chapter>
|
||
|
||
<!-- 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
|
||
-->
|