mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Change link to interface
One more missing ?> extends keyword git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@170727 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
bec4ffc760
commit
c9d16cb4de
3 changed files with 8 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
|
||||
<sect1 id="language.oop5.basic">
|
||||
<title>The Basics</title>
|
||||
|
@ -95,11 +95,11 @@ object(SimpleClass)#1 (1) {
|
|||
</example>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="language.oop5.basic.extend">
|
||||
<title>extend</title>
|
||||
<sect2 id="language.oop5.basic.extends">
|
||||
<title>extends</title>
|
||||
<para>
|
||||
A class can inherit methods and members of another class by using the
|
||||
extend keyword in the declaration. It is not possible to extend multiple
|
||||
extends keyword in the declaration. It is not possible to extend multiple
|
||||
classes, a class can only inherit one base class.
|
||||
</para>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<sect1 id="language.oop5.exceptions">
|
||||
<title>Exceptions</title>
|
||||
|
||||
|
@ -197,6 +197,7 @@ try {
|
|||
// Continue execution
|
||||
var_dump($o);
|
||||
echo "\n\n";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<sect1 id="language.oop5.iterations">
|
||||
<title>Object Iteration</title>
|
||||
<para>
|
||||
|
@ -47,7 +47,7 @@ var3 => value 3
|
|||
As the output shows, the <link linkend="control-structures.foreach">foreach</link>
|
||||
iterated through each public variable that is defined. To take it
|
||||
a step further you can <varname>implement</varname> one of PHP 5's
|
||||
internal <xref linkend="language.oop5.interfaces" /> named
|
||||
internal <link linkend="language.oop5.interfaces">interface</link> named
|
||||
<varname>Iterator</varname>. This allows the object to decide what
|
||||
and how the object will be iterated.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue