/[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.6 by joko, Tue Apr 8 22:40:06 2003 UTC revision 1.8 by jonen, Fri Apr 18 13:33:44 2003 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.8  2003/04/18 13:33:44  jonen
8    ##    CHANGE: link_vars now are passed by contructor arguments
9    ##      (so that the AbstractExplorer could handle these...)
10    ##
11    ##    Revision 1.7  2003/04/16 16:13:04  joko
12    ##    updates to 'function propagate': + minor cosmetic update, ++ special mode: 'tree' if value of node ends with '.xml'
13    ##
14  ##    Revision 1.6  2003/04/08 22:40:06  joko  ##    Revision 1.6  2003/04/08 22:40:06  joko
15  ##    renamed / revamped shortcut to LinkBuilder (now via url::short)  ##    renamed / revamped shortcut to LinkBuilder (now via url::short)
16  ##  ##
# Line 27  class WebExplorer_Module_NavigationList Line 34  class WebExplorer_Module_NavigationList
34    
35    function propagate() {    function propagate() {
36    
37      $link_vars = array(      // default link arguments to branch to a list
38                               'ap' => "explorer",     //$link_vars = array(
39                               'ecl' => "content",     //   'ap' => "explorer",
40                               'ect' => "data",     //   'ecl' => "content",
41                               'ecdlk' => "rpc",     //   'ect' => "data",
42                               'ecat' => "list",     //   'ecdlk' => "rpc",
43                               );     //   'ecat' => "list",
44       // );
45      
46       $link_vars = $this->_args['hidden_items'];
47        
48      foreach ($this->result as $value) {      foreach ($this->result as $value) {
49        $alt_caption = "Alle Elemente des Typs '$value' anzeigen.";        $alt_caption = "Alle Elemente unterhalb von '$value' anzeigen.";
50    
51        // V1: hmm...long time ago...        // V1: hmm...long time ago...
52        //$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;
# Line 46  class WebExplorer_Module_NavigationList Line 56  class WebExplorer_Module_NavigationList
56    
57        // 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
58        $link_vars['ecdid'] = $value;        $link_vars['ecdid'] = $value;
59    
60          // modify default link if name of linked node contains '.xml'
61          if (stristr($value, '.xml')) {
62            $link_vars['ecat'] = 'tree';
63          }
64                
65        // encoded links: shorter and more cryptic   ;-)        // encoded links: shorter and more cryptic   ;-)
66          // drawback: guid generation might be expensive,
67          // check out guid-pre-generation into some queue...
68        // V1        // V1
69        //$link_guid = link::store($link_vars);        //$link_guid = link::store($link_vars);
70        //$url = $_SERVER['PHP_SELF'] . "?lbid=" . $link_guid;        //$url = $_SERVER['PHP_SELF'] . "?lbid=" . $link_guid;
   
71        // V2        // V2
72        $url = url::short(null, $link_vars);        $url = url::short(null, $link_vars);
73    

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

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