4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.4 2003/04/06 01:44:52 jonen |
8 |
|
## + build links now with help of LinkBuilder class |
9 |
|
## (one id instead of a bunch of variables... ;) |
10 |
|
## |
11 |
## Revision 1.3 2003/04/05 21:17:16 joko |
## Revision 1.3 2003/04/05 21:17:16 joko |
12 |
## moved code to AbstractNavigationList.php |
## moved code to AbstractNavigationList.php |
13 |
## |
## |
20 |
class WebExplorer_Module_NavigationList extends WebExplorer_Module_AbstractNavigationList { |
class WebExplorer_Module_NavigationList extends WebExplorer_Module_AbstractNavigationList { |
21 |
|
|
22 |
function propagate() { |
function propagate() { |
23 |
|
$linkbuilder = new LinkBuilder(); |
24 |
|
|
25 |
|
$link_vars = array( |
26 |
|
'ap' => "explorer", |
27 |
|
'ecl' => "content", |
28 |
|
'ect' => "data", |
29 |
|
'ecdlk' => "rpc", |
30 |
|
'ecat' => "list", |
31 |
|
); |
32 |
|
|
33 |
foreach ($this->result as $value) { |
foreach ($this->result as $value) { |
34 |
$alt_caption = "Alle Elemente des Typs '$value' anzeigen."; |
$alt_caption = "Alle Elemente des Typs '$value' anzeigen."; |
35 |
|
|
36 |
|
// V1: hmm...long time ago... |
37 |
//$url = $_SERVER['PHP_SELF'] . "?" . $this->_control['page_ident_label'] . "=d_list&l_label=" . $value; |
//$url = $_SERVER['PHP_SELF'] . "?" . $this->_control['page_ident_label'] . "=d_list&l_label=" . $value; |
38 |
$url = $_SERVER['PHP_SELF'] . "?ap=explorer&ecl=content&ect=data&ecdlk=rpc&ecat=list&ecdid=$value"; |
|
39 |
|
// V2: simple add vars to url |
40 |
|
//$url = $_SERVER['PHP_SELF'] . "?ap=explorer&ecl=content&ect=data&ecdlk=rpc&ecat=list&ecdid=$value"; |
41 |
|
|
42 |
|
// V3: use LinkBuilder to save vars at session and get unique id instead |
43 |
|
$link_vars['ecdid'] = $value; |
44 |
|
$link_guid = $linkbuilder->save($link_vars); |
45 |
|
$url = $_SERVER['PHP_SELF'] . "?lbid=" . $link_guid; |
46 |
|
|
47 |
$this->nav->add($url, $value, $alt_caption); |
$this->nav->add($url, $value, $alt_caption); |
48 |
} |
} |
49 |
|
|