| 1 |
<? |
| 2 |
/* |
| 3 |
## ----------------------------------------------------------------------------- |
| 4 |
## $Id: Chooser.php,v 1.3 2003/04/18 13:36:17 jonen Exp $ |
| 5 |
## ----------------------------------------------------------------------------- |
| 6 |
## $Log: Chooser.php,v $ |
| 7 |
## Revision 1.3 2003/04/18 13:36:17 jonen |
| 8 |
## CHANGE: url is now builded with dynamic link_vars |
| 9 |
## which are now passed by the constructor arguments. |
| 10 |
## (so that the AbstractExplorer could handle these...) |
| 11 |
## |
| 12 |
## Revision 1.2 2003/04/08 17:59:27 joko |
| 13 |
## fixed arguments/parameters to propagate into the url |
| 14 |
## |
| 15 |
## Revision 1.1 2003/04/05 20:33:39 joko |
| 16 |
## initial commit |
| 17 |
## |
| 18 |
## |
| 19 |
## ----------------------------------------------------------------------------- |
| 20 |
*/ |
| 21 |
|
| 22 |
loadModule('WebExplorer::Module::AbstractNavigationList'); |
| 23 |
|
| 24 |
class WebExplorer_Module_Chooser extends WebExplorer_Module_AbstractNavigationList { |
| 25 |
|
| 26 |
function propagate() { |
| 27 |
|
| 28 |
$link_vars = $this->_args['hidden_elements']; |
| 29 |
|
| 30 |
foreach ($this->result as $value) { |
| 31 |
$alt_caption = "Zur Datenquelle '$value' wechseln."; |
| 32 |
|
| 33 |
// OLD |
| 34 |
//$url = $_SERVER['PHP_SELF'] . "?" . $this->_control['page_ident_label'] . "=d_list&l_label=" . $value; |
| 35 |
//$url = $_SERVER['PHP_SELF'] . "?ap=explorer&ecl=content&ecdl=rpc&ecds=$value"; |
| 36 |
//$url = $_SERVER['PHP_SELF'] . "?ap=explorer&ecl=phase_startup&ecdl=rpc&ecds=$value"; |
| 37 |
|
| 38 |
// NEW use helper functions for building url recognizing link_vars(page state) |
| 39 |
$link_vars['ecds'] = $value; |
| 40 |
$url = url::short(null, $link_vars); |
| 41 |
|
| 42 |
$this->nav->add($url, $value, $alt_caption); |
| 43 |
} |
| 44 |
|
| 45 |
} |
| 46 |
|
| 47 |
} |
| 48 |
|
| 49 |
|
| 50 |
?> |