4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.6 2003/04/08 22:40:06 joko |
8 |
|
## renamed / revamped shortcut to LinkBuilder (now via url::short) |
9 |
|
## |
10 |
|
## Revision 1.5 2003/04/06 04:26:43 joko |
11 |
|
## shortcut for LinkBuilder |
12 |
|
## |
13 |
## Revision 1.4 2003/04/06 01:44:52 jonen |
## Revision 1.4 2003/04/06 01:44:52 jonen |
14 |
## + build links now with help of LinkBuilder class |
## + build links now with help of LinkBuilder class |
15 |
## (one id instead of a bunch of variables... ;) |
## (one id instead of a bunch of variables... ;) |
26 |
class WebExplorer_Module_NavigationList extends WebExplorer_Module_AbstractNavigationList { |
class WebExplorer_Module_NavigationList extends WebExplorer_Module_AbstractNavigationList { |
27 |
|
|
28 |
function propagate() { |
function propagate() { |
|
$linkbuilder = new LinkBuilder(); |
|
29 |
|
|
30 |
$link_vars = array( |
$link_vars = array( |
31 |
'ap' => "explorer", |
'ap' => "explorer", |
46 |
|
|
47 |
// V3: use LinkBuilder to save vars at session and get unique id instead |
// V3: use LinkBuilder to save vars at session and get unique id instead |
48 |
$link_vars['ecdid'] = $value; |
$link_vars['ecdid'] = $value; |
49 |
$link_guid = $linkbuilder->save($link_vars); |
|
50 |
$url = $_SERVER['PHP_SELF'] . "?lbid=" . $link_guid; |
// encoded links: shorter and more cryptic ;-) |
51 |
|
// V1 |
52 |
|
//$link_guid = link::store($link_vars); |
53 |
|
//$url = $_SERVER['PHP_SELF'] . "?lbid=" . $link_guid; |
54 |
|
|
55 |
|
// V2 |
56 |
|
$url = url::short(null, $link_vars); |
57 |
|
|
58 |
$this->nav->add($url, $value, $alt_caption); |
$this->nav->add($url, $value, $alt_caption); |
59 |
} |
} |