#33575 [Asn->Csd]: OOP5 "Patterns": Example not a Factory Method

From: Date: Fri, 18 Nov 2005 11:14:42 +0000
Subject: #33575 [Asn->Csd]: OOP5 "Patterns": Example not a Factory Method
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370915@lists.php.net to get a copy of this message
ID: 33575 Updated by: nlopess@php.net Reported By: nick dot telford at ntlworld dot com -Status: Assigned +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant Assigned To: aidan New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2005-09-19 14:13:14] sniper@php.net Feel free to fix it. FFTFI. :) ------------------------------------------------------------------------ [2005-07-05 17:55:32] nick dot telford at ntlworld dot com Description: ------------ http://www.php.net/manual/en/language.oop5.patterns.php The first description and example identify the example to be a Factory Method, this is not strictly true, it's a Parameterized Factory Method (sometimes referred to simply as "Factory"), and is a slight derivation of the Factory Method pattern. A pure Factory Method doesn't use parameters to select the class(es) to instanciate, it uses multiple methods and acts slightly differently. Ultra low priority bug report, I know i'm being pedantic, but I felt it was worth reporting anyway. Nicholas Telford ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33575&edit=1

« previous php.doc (#969370915) next »