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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jonen, Sun Apr 6 01:44:52 2003 UTC revision 1.6 by joko, Tue Apr 8 22:40:06 2003 UTC
# Line 4  Line 4 
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... ;)
# Line 20  loadModule('WebExplorer::Module::Abstrac Line 26  loadModule('WebExplorer::Module::Abstrac
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",
# Line 41  class WebExplorer_Module_NavigationList Line 46  class WebExplorer_Module_NavigationList
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      }      }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

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