| 15 |
* $Id$ |
* $Id$ |
| 16 |
* |
* |
| 17 |
* $Log$ |
* $Log$ |
| 18 |
|
* Revision 1.3 2003/03/01 22:43:56 joko |
| 19 |
|
* propagating options properly |
| 20 |
|
* |
| 21 |
|
* Revision 1.2 2003/03/01 21:19:02 joko |
| 22 |
|
* now actually does something via '->handle' |
| 23 |
|
* established static component registry here |
| 24 |
|
* |
| 25 |
* Revision 1.1 2003/03/01 17:02:09 joko |
* Revision 1.1 2003/03/01 17:02:09 joko |
| 26 |
* + initial commit, inheriting from DesignPattern::MVC |
* + initial commit, inheriting from DesignPattern::MVC |
| 27 |
* |
* |
| 80 |
function user_setup() { |
function user_setup() { |
| 81 |
$this->_abstract_method('user_setup'); |
$this->_abstract_method('user_setup'); |
| 82 |
} |
} |
| 83 |
|
|
| 84 |
|
function handle() { |
| 85 |
|
|
| 86 |
|
// trace |
| 87 |
|
print "MVC - performed result: " . Dumper($this->_performed_result); |
| 88 |
|
//exit; |
| 89 |
|
|
| 90 |
|
if (!sizeof($this->_performed_result)) { |
| 91 |
|
user_error("MVC failed - performed result was empty."); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
// encapsulation here - no passthrough!!! |
| 95 |
|
$result = array( |
| 96 |
|
'view' => $this->_performed_result[view], |
| 97 |
|
'options' => $this->_performed_result[options], |
| 98 |
|
); |
| 99 |
|
|
| 100 |
|
return $result; |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
|
| 104 |
|
function &getStaticRegistryDatabase() { |
| 105 |
|
$registry = array ( |
| 106 |
|
'123435-54554-435435-435345' => array( |
| 107 |
|
'name' => 'Page::Overview', |
| 108 |
|
'version' => null, |
| 109 |
|
), |
| 110 |
|
'456-54554-435435-435345' => array( |
| 111 |
|
'name' => 'Page::Jobs', |
| 112 |
|
'version' => null, |
| 113 |
|
), |
| 114 |
|
'678-54554-435435-435345' => array( |
| 115 |
|
'name' => 'Page::DataBrowser', |
| 116 |
|
'version' => null, |
| 117 |
|
), |
| 118 |
|
'555-54554-435435-435345' => array( |
| 119 |
|
'name' => 'Page::NavigationHistory', |
| 120 |
|
'version' => null, |
| 121 |
|
), |
| 122 |
|
); |
| 123 |
|
return $registry; |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
|
| 127 |
|
|
| 128 |
/* |
/* |