mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
correct minor spelling errors
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278136 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
914e351857
commit
ae218ccd6a
1 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<chapter xml:id="language.exceptions" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Exceptions</title>
|
||||
|
||||
|
@ -136,10 +136,10 @@ class Exception
|
|||
final function getFile(); // source filename
|
||||
final function getLine(); // source line
|
||||
final function getTrace(); // an array of the backtrace()
|
||||
final function getTraceAsString(); // formated string of trace
|
||||
final function getTraceAsString(); // formatted string of trace
|
||||
|
||||
/* Overrideable */
|
||||
function __toString(); // formated string for display
|
||||
function __toString(); // formatted string for display
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
@ -147,11 +147,11 @@ class Exception
|
|||
</example>
|
||||
<para>
|
||||
If a class extends the built-in Exception class and re-defines the <link
|
||||
linkend="language.oop5.decon">constructor</link>, it is highly recomended
|
||||
linkend="language.oop5.decon">constructor</link>, it is highly recommended
|
||||
that it also call <link
|
||||
linkend="language.oop5.paamayim-nekudotayim">parent::__construct()</link>
|
||||
to ensure all available data has been properly assigned. The <link
|
||||
linkend="language.oop5.magic">__toString()</link> method can be overriden
|
||||
linkend="language.oop5.magic">__toString()</link> method can be overridden
|
||||
to provide a custom output when the object is presented as a string.
|
||||
</para>
|
||||
<example>
|
||||
|
@ -178,7 +178,7 @@ class MyException extends Exception
|
|||
}
|
||||
|
||||
public function customFunction() {
|
||||
echo "A Custom function for this type of exception\n";
|
||||
echo "A custom function for this type of exception\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue