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:
Brett Bieber 2009-04-01 18:37:02 +00:00
parent 914e351857
commit ae218ccd6a

View file

@ -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";
}
}