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