text formatting ...

This commit is contained in:
Dominik Liebler
2011-08-23 09:27:50 +03:00
parent 1e15c7b6a4
commit 0fa424f127

View File

@@ -7,12 +7,13 @@ namespace DesignPatterns;
*
* Purpose:
* 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:
* - 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.))
* - 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