| 1 | <?php | <?php | 
|  |  |  | 
| 2 | /** | /** | 
| 3 | * This file contains the DesignPattern::Facade class. | * This file contains the DesignPattern::Facade class. | 
| 4 | * | * | 
| 5 | * @author Andreas Motl <andreas.motl@ilo.de> | * @author Andreas Motl <andreas.motl@ilo.de> | 
| 6 | * @module DesignPattern::Facade | * @package org.netfrag.glib | 
| 7 |  | * @name DesignPattern::Facade | 
| 8 | * | * | 
| 9 | */ | */ | 
| 10 |  |  | 
| 11 | /** |  | 
| 12 |  | /** | 
| 13 |  | * <b>Cvs-Log:</b> | 
| 14 |  | * | 
| 15 |  | * <pre> | 
| 16 |  | * | 
| 17 | * $Id$ | * $Id$ | 
| 18 | * | * | 
| 19 | * $Log$ | * $Log$ | 
| 20 |  | * Revision 1.12  2003/03/11 02:23:04  joko | 
| 21 |  | * + fixed metadata for phpDocumentor | 
| 22 |  | * | 
| 23 |  | * Revision 1.11  2003/03/11 02:14:25  joko | 
| 24 |  | * + fixed metadata for phpDocumentor | 
| 25 |  | * | 
| 26 |  | * Revision 1.10  2003/03/11 02:04:37  joko | 
| 27 |  | * + fixed metadata for phpDocumentor | 
| 28 |  | * | 
| 29 |  | * Revision 1.9  2003/03/11 01:43:01  joko | 
| 30 |  | * + fixed metadata for phpDocumentor | 
| 31 |  | * | 
| 32 |  | * Revision 1.8  2003/03/11 01:22:26  joko | 
| 33 |  | * + fixed metadata for phpDocumentor | 
| 34 |  | * | 
| 35 |  | * Revision 1.7  2003/03/10 23:30:27  joko | 
| 36 |  | * + fixed metadata for phpDocumentor | 
| 37 |  | * | 
| 38 |  | * Revision 1.6  2003/03/10 23:25:04  joko | 
| 39 |  | * + fixed metadata for phpDocumentor | 
| 40 |  | * | 
| 41 |  | * Revision 1.5  2003/03/10 22:31:56  joko | 
| 42 |  | * + fixed metadata for phpDocumentor | 
| 43 |  | * | 
| 44 |  | * Revision 1.4  2003/03/05 23:16:48  joko | 
| 45 |  | * updated docu - phpDocumentor is very strict about its 'blocks'... | 
| 46 |  | * | 
| 47 |  | * Revision 1.3  2003/03/05 17:28:43  joko | 
| 48 |  | * updated docu (phpDocumentor testing....) | 
| 49 |  | * | 
| 50 |  | * Revision 1.2  2003/03/05 17:02:22  joko | 
| 51 |  | * updated docu (phpDocumentor testing....) | 
| 52 |  | * | 
| 53 | * Revision 1.1  2003/03/03 21:56:01  joko | * Revision 1.1  2003/03/03 21:56:01  joko | 
| 54 | * + initial commit | * + initial commit | 
| 55 | * just a skeleton by now... | * just a skeleton by now... | 
| 56 | * | * | 
| 57 |  | * </pre> | 
| 58 | * | * | 
| 59 | */ | */ | 
| 60 |  |  | 
| 61 |  |  | 
| 62 | /** | /** | 
| 63 | * --- An attempt to implement some software design patterns... | * Load required modules: | 
| 64 | * --- FacadePattern | * | 
| 65 |  | */ | 
| 66 |  | loadModule('Class::Logger'); | 
| 67 |  |  | 
| 68 |  |  | 
| 69 |  | /** | 
| 70 |  | * --- An attempt to implement some software design patterns...  The FacadePattern | 
| 71 |  | * | 
| 72 |  | * @link http://c2.com/cgi-bin/wiki?FacadePattern | 
| 73 | * | * | 
|  | * --- http://c2.com/cgi-bin/wiki?FacadePattern |  | 
| 74 | *  Intent: Provide a unified interface to a set of interfaces in a subsystem. | *  Intent: Provide a unified interface to a set of interfaces in a subsystem. | 
| 75 | *  Facade defines a higher-level interface that makes the subsystem easier to use. | *  Facade defines a higher-level interface that makes the subsystem easier to use. | 
| 76 | *  This can be used to simplify a number of complicated object interactions into a single interface. | *  This can be used to simplify a number of complicated object interactions into a single interface. | 
| 77 | * | * | 
| 78 |  | * | 
| 79 | * @author Andreas Motl <andreas.motl@ilo.de> | * @author Andreas Motl <andreas.motl@ilo.de> | 
| 80 | * @copyright (c) 2003 - All Rights reserved. | * @copyright (c) 2003 - All Rights reserved. | 
| 81 | * @license GNU LGPL (GNU Lesser General Public License) | * @link http://www.netfrag.org/~joko/ | 
| 82 | * | * | 
| 83 | * @author-url http://www.netfrag.org/~joko/ | * @license GNU LGPL (GNU Lesser General Public License) | 
| 84 | * @license-url http://www.gnu.org/licenses/lgpl.txt | * @link http://www.gnu.org/licenses/lgpl.txt | 
| 85 | * | * | 
| 86 | * @package org.netfrag.glib | * @package org.netfrag.glib | 
| 87 | * @module DesignPattern::Facade | * @subpackage DesignPattern | 
| 88 |  | * @name DesignPattern::Facade | 
| 89 | * | * | 
| 90 | */ | * @todo this: | 
| 91 |  | * o xyz | 
| 92 | /** | * o bla, bli, blub | 
|  | * Todo: |  | 
|  | * |  | 
|  | *  o xyz |  | 
|  | *  o bla, bli, blub |  | 
| 93 | * | * | 
| 94 | * | * | 
| 95 | */ | */ | 
|  |  |  | 
|  | /** |  | 
|  | * Load required modules: |  | 
|  | * |  | 
|  | */ |  | 
|  | loadModule('Class::Logger'); |  | 
|  |  |  | 
| 96 | class DesignPattern_Facade extends Class_Logger { | class DesignPattern_Facade extends Class_Logger { | 
| 97 |  |  | 
| 98 | var $_about; | var $_about; | 
| 125 |  |  | 
| 126 | } | } | 
| 127 |  |  | 
| 128 | ?> | ?> |