| 5 | * @author Andreas Motl <andreas.motl@ilo.de> | * @author Andreas Motl <andreas.motl@ilo.de> | 
| 6 | * @package org.netfrag.glib | * @package org.netfrag.glib | 
| 7 | * @name DesignPattern::MVC | * @name DesignPattern::MVC | 
|  | * @filesource |  | 
| 8 | * | * | 
| 9 | * | * | 
| 10 |  | */ | 
| 11 |  |  | 
| 12 |  |  | 
| 13 |  | /** | 
| 14 | * | * | 
| 15 | * <b>Cvs-Log:</b> | * <b>Cvs-Log:</b> | 
| 16 | * | * | 
| 18 | * $Id$ | * $Id$ | 
| 19 | * | * | 
| 20 | * $Log$ | * $Log$ | 
| 21 |  | * Revision 1.13  2003/04/04 17:37:05  joko | 
| 22 |  | * modifications regarding error-/exception-handling | 
| 23 |  | * | 
| 24 |  | * Revision 1.12  2003/03/10 23:30:27  joko | 
| 25 |  | * + fixed metadata for phpDocumentor | 
| 26 |  | * | 
| 27 |  | * Revision 1.11  2003/03/10 22:31:56  joko | 
| 28 |  | * + fixed metadata for phpDocumentor | 
| 29 |  | * | 
| 30 | * Revision 1.10  2003/03/05 17:02:22  joko | * Revision 1.10  2003/03/05 17:02:22  joko | 
| 31 | * updated docu (phpDocumentor testing....) | * updated docu (phpDocumentor testing....) | 
| 32 | * | * | 
| 99 | * @param registry | * @param registry | 
| 100 | */ | */ | 
| 101 | function constructor() { | function constructor() { | 
| 102 |  | set_error_handler('php_error_handler'); | 
| 103 | parent::constructor(); | parent::constructor(); | 
| 104 | } | } | 
| 105 |  |  | 
| 106 | function _abstract_method($method) { | function _abstract_method($method) { | 
| 107 | $package = get_class($this); | $package = get_class($this); | 
| 108 | $package_p = get_parent_class($this); | $package_p = get_parent_class($this); | 
| 109 | print "DesignPattern::MVC.$package_p.$package: Please implement method '$method'.<br/>"; | user_error( "DesignPattern::MVC.$package_p.$package: Please implement method '$method'." ); | 
| 110 | } | } | 
| 111 |  |  | 
| 112 | // spool controller rules | // spool controller rules | 
| 180 | return $this->_container->last('controller'); | return $this->_container->last('controller'); | 
| 181 | } | } | 
| 182 |  |  | 
| 183 |  | function check_performed_result() { | 
| 184 |  | if (sizeof($this->_performed_result)) { | 
| 185 |  | return 1; | 
| 186 |  | } else { | 
| 187 |  | user_error("MVC[" . get_class($this) . "] failed - performed result was empty."); | 
| 188 |  | } | 
| 189 |  | } | 
| 190 |  |  | 
| 191 | } | } | 
| 192 |  |  | 
| 193 | ?> | ?> |