| 5 |
* which inherits from the DesignPattern::MVC class. |
* which inherits from the DesignPattern::MVC class. |
| 6 |
* |
* |
| 7 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
| 8 |
* @package phpHtmlLib |
* @package org.netfrag.glib |
| 9 |
* @module controller::WebMVC |
* @name Site::WebAppMVC |
| 10 |
* @base DesignPattern::MVC |
* @uses DesignPattern::MVC |
| 11 |
* |
* |
| 12 |
*/ |
*/ |
| 13 |
|
|
| 14 |
/** |
/** |
| 15 |
|
* <b>Cvs-Log:</b> |
| 16 |
|
* |
| 17 |
|
* <pre> |
| 18 |
* $Id$ |
* $Id$ |
| 19 |
* |
* |
| 20 |
* $Log$ |
* $Log$ |
| 21 |
|
* Revision 1.5 2003/04/04 21:18:37 joko |
| 22 |
|
* modified exception handling |
| 23 |
|
* |
| 24 |
|
* Revision 1.4 2003/03/11 01:22:27 joko |
| 25 |
|
* + fixed metadata for phpDocumentor |
| 26 |
|
* |
| 27 |
|
* Revision 1.3 2003/03/05 18:54:45 joko |
| 28 |
|
* updated docu - phpDocumentor is very strict about its 'blocks'... |
| 29 |
|
* |
| 30 |
* Revision 1.2 2003/03/05 16:10:20 joko |
* Revision 1.2 2003/03/05 16:10:20 joko |
| 31 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
| 32 |
* |
* |
| 42 |
* |
* |
| 43 |
* Revision 1.1 2003/03/01 17:02:09 joko |
* Revision 1.1 2003/03/01 17:02:09 joko |
| 44 |
* + initial commit, inheriting from DesignPattern::MVC |
* + initial commit, inheriting from DesignPattern::MVC |
| 45 |
* |
* </pre> |
| 46 |
* |
* |
| 47 |
*/ |
*/ |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
loadModule('DesignPattern::MVC'); |
| 51 |
|
|
| 52 |
|
|
| 53 |
/** |
/** |
| 54 |
* This tries to implement some parts of the MVC Pattern |
* This tries to implement some parts of the MVC Pattern |
| 55 |
* suitable to work together with phpHtmlLib or maybe |
* suitable to work together with phpHtmlLib or maybe |
| 60 |
* @copyright (c) 2003 - All Rights reserved. |
* @copyright (c) 2003 - All Rights reserved. |
| 61 |
* @license GNU LGPL (GNU Lesser General Public License) |
* @license GNU LGPL (GNU Lesser General Public License) |
| 62 |
* |
* |
| 63 |
* @author-url http://www.netfrag.org/~joko/ |
* @link http://www.netfrag.org/~joko/ |
| 64 |
* @license-url http://www.gnu.org/licenses/lgpl.txt |
* @link http://www.gnu.org/licenses/lgpl.txt |
| 65 |
* |
* |
| 66 |
* @package phpHtmlLib |
* @package org.netfrag.glib |
| 67 |
* @module controller::WebMVC |
* @subpackage Site |
| 68 |
* @base DesignPattern::MVC |
* @name Site::WebAppMVC |
| 69 |
|
* @uses DesignPattern::MVC |
| 70 |
* |
* |
| 71 |
*/ |
*/ |
|
|
|
|
/** |
|
|
* Todo: |
|
|
* |
|
|
* o xyz |
|
|
* o bla, bli, blub |
|
|
* |
|
|
* |
|
|
*/ |
|
|
|
|
|
|
|
|
// isn't required by now: |
|
|
//loadModule('DesignPattern::Object'); |
|
|
//class DesignPattern_MVC extends DesignPattern_Object { |
|
|
|
|
|
loadModule('DesignPattern::MVC'); |
|
| 72 |
class Site_WebAppMVC extends DesignPattern_MVC { |
class Site_WebAppMVC extends DesignPattern_MVC { |
| 73 |
|
|
| 74 |
|
|
| 94 |
//print "MVC - performed result: " . Dumper($this->_performed_result); |
//print "MVC - performed result: " . Dumper($this->_performed_result); |
| 95 |
//exit; |
//exit; |
| 96 |
|
|
| 97 |
if (!sizeof($this->_performed_result)) { |
if ($this->check_performed_result()) { |
| 98 |
user_error("MVC failed - performed result was empty."); |
// encapsulation here - no passthrough!!! |
| 99 |
|
$result = array( |
| 100 |
|
'view' => $this->_performed_result[view], |
| 101 |
|
'options' => $this->_performed_result[options], |
| 102 |
|
); |
| 103 |
|
return $result; |
| 104 |
} |
} |
| 105 |
|
|
|
// encapsulation here - no passthrough!!! |
|
|
$result = array( |
|
|
'view' => $this->_performed_result[view], |
|
|
'options' => $this->_performed_result[options], |
|
|
); |
|
|
|
|
|
return $result; |
|
| 106 |
} |
} |
| 107 |
|
|
| 108 |
|
|