File: oop5.xml

package info (click to toggle)
php-doc 20100521-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 59,992 kB
  • ctags: 4,085
  • sloc: xml: 796,833; php: 21,338; cpp: 500; sh: 117; makefile: 58; awk: 28
file content (76 lines) | stat: -rw-r--r-- 2,428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 299539 $ -->
 <chapter xml:id="language.oop5" xmlns="http://docbook.org/ns/docbook">
  <title>Classes and Objects</title>

  <sect1  xml:id="oop5.intro">
   <title>Introduction</title>
   <para>
    Starting with PHP 5, the object model was rewritten to allow for better
    performance and more features. This was a major change from PHP 4. PHP 5
    has a full object model.
   </para>
   <para>
    Among the features in PHP 5 are the inclusions of 
    <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>, 
    <link linkend="language.oop5.cloning">cloning</link> and 
    <link linkend="language.oop5.typehinting">typehinting</link>. 
   </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>
   </para>
   &tip.userlandnaming;
  </sect1>

  &language.oop5.basic;
  &language.oop5.properties;
  &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.overloading;
  &language.oop5.iterations;
  &language.oop5.patterns;
  &language.oop5.magic;
  &language.oop5.final;
  &language.oop5.cloning;
  &language.oop5.object-comparison;
  &language.oop5.typehinting;
  &language.oop5.late-static-bindings;
  &language.oop5.references;
  &language.oop5.serialization;
  &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
-->