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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations)
Tue Mar 11 02:14:25 2003 UTC (21 years, 4 months ago) by joko
Branch: MAIN
Changes since 1.10: +7 -3 lines
+ fixed metadata for phpDocumentor

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

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