/[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.6 - (show annotations)
Tue Apr 8 22:40:06 2003 UTC (21 years, 5 months ago) by joko
Branch: MAIN
Changes since 1.5: +12 -3 lines
renamed / revamped shortcut to LinkBuilder (now via url::short)

1 <?
2 /*
3 ## -----------------------------------------------------------------------------
4 ## $Id: NavigationList.php,v 1.5 2003/04/06 04:26:43 joko Exp $
5 ## -----------------------------------------------------------------------------
6 ## $Log: NavigationList.php,v $
7 ## Revision 1.5 2003/04/06 04:26:43 joko
8 ## shortcut for LinkBuilder
9 ##
10 ## Revision 1.4 2003/04/06 01:44:52 jonen
11 ## + build links now with help of LinkBuilder class
12 ## (one id instead of a bunch of variables... ;)
13 ##
14 ## Revision 1.3 2003/04/05 21:17:16 joko
15 ## moved code to AbstractNavigationList.php
16 ##
17 ##
18 ## -----------------------------------------------------------------------------
19 */
20
21 loadModule('WebExplorer::Module::AbstractNavigationList');
22
23 class WebExplorer_Module_NavigationList extends WebExplorer_Module_AbstractNavigationList {
24
25 function propagate() {
26
27 $link_vars = array(
28 'ap' => "explorer",
29 'ecl' => "content",
30 'ect' => "data",
31 'ecdlk' => "rpc",
32 'ecat' => "list",
33 );
34
35 foreach ($this->result as $value) {
36 $alt_caption = "Alle Elemente des Typs '$value' anzeigen.";
37
38 // V1: hmm...long time ago...
39 //$url = $_SERVER['PHP_SELF'] . "?" . $this->_control['page_ident_label'] . "=d_list&l_label=" . $value;
40
41 // V2: simple add vars to url
42 //$url = $_SERVER['PHP_SELF'] . "?ap=explorer&ecl=content&ect=data&ecdlk=rpc&ecat=list&ecdid=$value";
43
44 // V3: use LinkBuilder to save vars at session and get unique id instead
45 $link_vars['ecdid'] = $value;
46
47 // encoded links: shorter and more cryptic ;-)
48 // V1
49 //$link_guid = link::store($link_vars);
50 //$url = $_SERVER['PHP_SELF'] . "?lbid=" . $link_guid;
51
52 // V2
53 $url = url::short(null, $link_vars);
54
55 $this->nav->add($url, $value, $alt_caption);
56 }
57
58 }
59
60 }
61
62
63 ?>

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