| 4 |
* $Id$ |
* $Id$ |
| 5 |
* |
* |
| 6 |
* $Log$ |
* $Log$ |
| 7 |
|
* Revision 1.7 2003/04/07 22:32:27 jonen |
| 8 |
|
* + minor changes related to new ecom 'chooser' |
| 9 |
|
* |
| 10 |
|
* Revision 1.6 2003/04/06 01:32:57 jonen |
| 11 |
|
* + minor changes |
| 12 |
|
* |
| 13 |
* Revision 1.5 2003/04/05 21:18:29 joko |
* Revision 1.5 2003/04/05 21:18:29 joko |
| 14 |
* added Chooser and associated 'ecds'-parameter |
* added Chooser and associated 'ecds'-parameter |
| 15 |
* new rule (at bottom) to dispatch datasource-keys to each ecom-component |
* new rule (at bottom) to dispatch datasource-keys to each ecom-component |
| 148 |
// COID => '123', |
// COID => '123', |
| 149 |
caption => "Explorer - ExplorerDataItem", |
caption => "Explorer - ExplorerDataItem", |
| 150 |
)); |
)); |
| 151 |
|
|
| 152 |
// FIXME!!! enhance!?!? |
// FIXME!!! enhance!?!? |
| 153 |
// AIM: "dispatch a Request to a View by using rules..." |
// AIM: "dispatch a Request to a View by using rules..." |
| 154 |
// Todo: |
// Todo: |
| 160 |
|
|
| 161 |
// for "module", no component registry is required, just does 'mkObject' under the hood |
// for "module", no component registry is required, just does 'mkObject' under the hood |
| 162 |
module => 'Application::Request::HttpController', |
module => 'Application::Request::HttpController', |
| 163 |
|
//module_options => blah |
| 164 |
|
|
| 165 |
rules => array( |
rules => array( |
| 166 |
|
|
| 167 |
|
|
| 168 |
// get last page state |
// get last page state |
| 169 |
create_function('&$_in, &$_out', ' |
create_function('&$_in, &$_out', ' |
| 170 |
$requestTracker = mkObject("Application::Request::Tracker"); |
$requestTracker = mkObject("Application::Request::Tracker"); |
| 190 |
'), |
'), |
| 191 |
|
|
| 192 |
// check right $_GET[ap] |
// check right $_GET[ap] |
| 193 |
create_function('&$_in, &$_out', 'return ($_in[ap] != "explorer") ? print "Wrong application value $_in[ap], sure this is right here?" : null;'), |
create_function('&$_in, &$_out', 'return ($_in[ap] != "explorer") ? print "Wrong application value: $_in[ap], sure this is right here?<br>" : null;'), |
| 194 |
|
|
| 195 |
// write components variables to out |
// write components variables to out |
| 196 |
create_function('&$_in, &$_out', ' |
create_function('&$_in, &$_out', ' |
| 214 |
nav => array( |
nav => array( |
| 215 |
ecom_type => "nav", |
ecom_type => "nav", |
| 216 |
ecom_abstract_type => "list", |
ecom_abstract_type => "list", |
| 217 |
ecom_mode => "nav", |
ecom_mode => "link", |
| 218 |
ecom_data_locator_key => "rpc", |
ecom_data_locator_key => "rpc", |
| 219 |
), |
), |
| 220 |
chooser => array( |
chooser => array( |
| 221 |
ecom_type => "chooser", |
ecom_type => "nav", |
| 222 |
ecom_abstract_type => "list", |
ecom_abstract_type => "list", |
| 223 |
ecom_mode => "nav", |
ecom_mode => "link", |
| 224 |
ecom_data_locator_key => "rpc", |
ecom_data_locator_key => "rpc", |
| 225 |
), |
), |
| 226 |
); |
); |