/[cvs]/nfo/php/libs/org.netfrag.glib/utils/links.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/utils/links.php

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

revision 1.7 by joko, Tue May 13 16:21:13 2003 UTC revision 1.8 by joko, Fri Jun 6 04:24:10 2003 UTC
# Line 3  Line 3 
3   * $Id$   * $Id$
4   *   *
5   * $Log$   * $Log$
6     * Revision 1.8  2003/06/06 04:24:10  joko
7     * test: function here
8     *
9   * Revision 1.7  2003/05/13 16:21:13  joko   * Revision 1.7  2003/05/13 16:21:13  joko
10   * + function url::view_as, filter, parent   * + function url::view_as, filter, parent
11   * added comments/docu   * added comments/docu
# Line 104  class link { Line 107  class link {
107    }    }
108    
109    function topic($topic_name, $args = array()) {    function topic($topic_name, $args = array()) {
110        // 2003-0x-xx: css-class handling
111      $css_class = $args[_css_class];      $css_class = $args[_css_class];
112      unset($args[_css_class]);      unset($args[_css_class]);
113      $query_string = linkargs::topic($topic_name, $args);      $query_string = linkargs::topic($topic_name, $args);
# Line 120  class link { Line 124  class link {
124    }    }
125        
126    function action($action_name, $args = array()) {    function action($action_name, $args = array()) {
127        
128        // new as of 2003-05-29
129        $here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] );
130        $args = php::array_join_merge($here, $args);
131        
132      $query_string = linkargs::action($action_name, $args);      $query_string = linkargs::action($action_name, $args);
133      return html_a($query_string, "[$action_name]");      return html_a($query_string, "[$action_name]");
134    }    }
# Line 129  class link { Line 138  class link {
138      return html_a($url, $caption);      return html_a($url, $caption);
139    }    }
140    
141      function here($caption, $args = array()) {
142        
143        // 2003-06-03: css-style handling
144        $css_style = $args[_css_style];
145        unset($args[_css_style]);
146        
147        $here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] );
148        $args = php::array_join_merge($here, $args);
149        $query_string = url::query($args);
150        $link = html_a($query_string, $caption);
151        
152        // 2003-06-03: css-style handling
153        if ($css_style) {
154          $link->set_style($css_style);
155        }
156        
157        return $link;
158      }
159    
160  }  }
161    
162    

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

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