2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 06:17:58 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<chapter xml:id="language.oop5" xmlns="http://docbook.org/ns/docbook">
|
2009-09-23 14:14:18 +00:00
|
|
|
<title>Classes and Objects</title>
|
2004-07-10 19:30:37 +00:00
|
|
|
|
2008-12-03 08:38:17 +00:00
|
|
|
<sect1 xml:id="oop5.intro">
|
2004-07-10 19:35:25 +00:00
|
|
|
<title>Introduction</title>
|
2004-08-15 00:17:30 +00:00
|
|
|
<para>
|
2020-10-31 19:13:58 +00:00
|
|
|
PHP includes a complete object model.
|
2019-03-24 19:38:53 +00:00
|
|
|
Some of its features are:
|
2020-11-12 18:39:19 +00:00
|
|
|
<link linkend="language.oop5.visibility">visibility</link>,
|
|
|
|
<link linkend="language.oop5.abstract">abstract</link> and
|
|
|
|
<link linkend="language.oop5.final">final</link> classes and methods,
|
|
|
|
additional <link linkend="language.oop5.magic">magic methods</link>,
|
|
|
|
<link linkend="language.oop5.interfaces">interfaces</link>, and
|
|
|
|
<link linkend="language.oop5.cloning">cloning</link>.
|
2009-09-09 20:17:33 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
PHP treats objects in the same way as references or handles, meaning that
|
|
|
|
each variable contains an object reference rather than a copy of the entire
|
|
|
|
object. See
|
|
|
|
<link linkend="language.oop5.references">Objects and References</link>
|
2004-08-15 00:17:30 +00:00
|
|
|
</para>
|
2006-08-11 16:55:35 +00:00
|
|
|
&tip.userlandnaming;
|
2004-07-10 19:35:25 +00:00
|
|
|
</sect1>
|
2004-07-10 19:30:37 +00:00
|
|
|
|
2004-08-15 00:17:30 +00:00
|
|
|
&language.oop5.basic;
|
2009-09-10 05:02:52 +00:00
|
|
|
&language.oop5.properties;
|
|
|
|
&language.oop5.constants;
|
2004-09-26 00:13:50 +00:00
|
|
|
&language.oop5.autoload;
|
2004-07-11 12:33:25 +00:00
|
|
|
&language.oop5.decon;
|
|
|
|
&language.oop5.visibility;
|
2009-09-22 21:33:16 +00:00
|
|
|
&language.oop5.inheritance;
|
2004-07-11 12:33:25 +00:00
|
|
|
&language.oop5.paamayim-nekudotayim;
|
|
|
|
&language.oop5.static;
|
|
|
|
&language.oop5.abstract;
|
|
|
|
&language.oop5.interfaces;
|
2011-07-21 21:49:37 +00:00
|
|
|
&language.oop5.traits;
|
2015-08-09 01:17:17 +00:00
|
|
|
&language.oop5.anonymous;
|
2004-07-11 12:33:25 +00:00
|
|
|
&language.oop5.overloading;
|
|
|
|
&language.oop5.iterations;
|
|
|
|
&language.oop5.magic;
|
|
|
|
&language.oop5.final;
|
|
|
|
&language.oop5.cloning;
|
|
|
|
&language.oop5.object-comparison;
|
2007-10-21 00:48:36 +00:00
|
|
|
&language.oop5.late-static-bindings;
|
2008-07-09 10:54:19 +00:00
|
|
|
&language.oop5.references;
|
2009-09-23 20:09:24 +00:00
|
|
|
&language.oop5.serialization;
|
2019-12-16 20:40:29 +00:00
|
|
|
&language.oop5.variance;
|
2010-05-20 22:30:34 +00:00
|
|
|
&language.oop5.changelog;
|
2004-07-10 19:30:37 +00:00
|
|
|
</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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2004-07-10 19:30:37 +00:00
|
|
|
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
|
|
|
|
-->
|