/[cvs]/nfo/php/libs/org.netfrag.app/WebExplorer/Module/NavigationList.php
ViewVC logotype

Contents of /nfo/php/libs/org.netfrag.app/WebExplorer/Module/NavigationList.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Sun Apr 6 01:44:52 2003 UTC (21 years, 5 months ago) by jonen
Branch: MAIN
Changes since 1.3: +24 -2 lines
+ build links now with help of LinkBuilder class
  (one id instead of a bunch of variables... ;)

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

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed