For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > February 2005 > cvs: phpdoc /en/language/oop5 patterns.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/language/oop5 patterns.xml
Curt Zirzow

2005-02-03, 3:56 am

curt Wed Feb 2 21:51:07 2005 EDT

Modified files:
/phpdoc/en/language/oop5 patterns.xml
Log:
Changed example to use php5 syntax.


http://cvs.php.net/diff.php/phpdoc/...1.4&r2=1.5&ty=u
Index: phpdoc/en/language/oop5/patterns.xml
diff -u phpdoc/en/language/oop5/patterns.xml:1.4 phpdoc/en/language/oop5/patterns.xml:1.5
--- phpdoc/en/language/oop5/patterns.xml:1.4 Wed Jan 19 08:16:14 2005
+++ phpdoc/en/language/oop5/patterns.xml Wed Feb 2 21:51:07 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<sect1 id="language.oop5.patterns">
<title>Patterns</title>
<para>
@@ -22,7 +22,7 @@
class Example
{
// The factory method
- function &factory($type)
+ public static function factory($type)
{
if (include_once 'Drivers/' . $type . '.php') {
$classname = 'Driver_' . $type;
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com