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

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