/[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.4 - (show annotations)
Wed Mar 5 23:16:48 2003 UTC (21 years, 4 months ago) by joko
Branch: MAIN
Changes since 1.3: +5 -1 lines
updated docu - phpDocumentor is very strict about its 'blocks'...

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

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