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