/[cvs]/nfo/php/libs/org.netfrag.glib/DesignPattern/Facade.php
ViewVC logotype

Contents of /nfo/php/libs/org.netfrag.glib/DesignPattern/Facade.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations)
Tue Mar 11 01:43:01 2003 UTC (21 years, 4 months ago) by joko
Branch: MAIN
Changes since 1.8: +7 -5 lines
+ fixed metadata for phpDocumentor

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

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed