mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-04 22:17:25 +02:00
text formatting ...
This commit is contained in:
@@ -7,12 +7,13 @@ namespace DesignPatterns;
|
|||||||
*
|
*
|
||||||
* Purpose:
|
* Purpose:
|
||||||
* to create series of related or dependant objects without specifying their concrete classes,
|
* to create series of related or dependant objects without specifying their concrete classes,
|
||||||
* usually created classes would all implement the same interface
|
* usually the created classes all implement the same interface
|
||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* - A Factory to create media in a CMS: classes would be text, audio, video, picture
|
* - A Factory to create media in a CMS: classes would be text, audio, video, picture
|
||||||
* - SQL Factory (types are all strings with SQL, but they vary in detail (tables, fields, etc.))
|
* - SQL Factory (types are all strings with SQL, but they vary in detail (tables, fields, etc.))
|
||||||
* - Zend Framework: Zend_Form::createElement() creates form elements, but you could also call new TextElement() or so
|
* - Zend Framework: Zend_Form::createElement() creates form elements, but you could also call new T
|
||||||
|
* TextElement() instead
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
abstract class AbstractFactory
|
abstract class AbstractFactory
|
||||||
|
Reference in New Issue
Block a user