/[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.8 by joko, Fri Jun 6 04:24:10 2003 UTC revision 1.9 by joko, Wed Jun 25 23:42:15 2003 UTC
# Line 3  Line 3 
3   * $Id$   * $Id$
4   *   *
5   * $Log$   * $Log$
6     * Revision 1.9  2003/06/25 23:42:15  joko
7     * trying to switch from "ap" completely to "t"
8     *
9   * Revision 1.8  2003/06/06 04:24:10  joko   * Revision 1.8  2003/06/06 04:24:10  joko
10   * test: function here   * test: function here
11   *   *
# Line 144  class link { Line 147  class link {
147      $css_style = $args[_css_style];      $css_style = $args[_css_style];
148      unset($args[_css_style]);      unset($args[_css_style]);
149            
150      $here = array( t => $_REQUEST[t], ap => $_REQUEST[ap] );      $here = array( t => $_REQUEST[t] );
151        if ($_REQUEST[ap]) { $here[ap] = $_REQUEST[ap]; }
152        
153      $args = php::array_join_merge($here, $args);      $args = php::array_join_merge($here, $args);
154      $query_string = url::query($args);      $query_string = url::query($args);
155      $link = html_a($query_string, $caption);      $link = html_a($query_string, $caption);
# Line 156  class link { Line 161  class link {
161            
162      return $link;      return $link;
163    }    }
164      
165      function job($jobname, $type = "search") {
166        if ($type == 'search') {
167          $link = link::here( "[$jobname]", array( t => 'Jobs', q => $jobname ) );
168        } elseif ($type == 'run') {
169          $link = link::here( "[$jobname]", array( t => 'Jobs', job => $jobname, action => 'run' ) );
170        }
171        return $link;
172      }
173    
174  }  }
175    
# Line 347  class url { Line 361  class url {
361      // REMEMBER: This is an hard coded fallback !!      // REMEMBER: This is an hard coded fallback !!
362      //  Normaly args passed in as 'additional' should explicit used!      //  Normaly args passed in as 'additional' should explicit used!
363      $final = array();      $final = array();
364      $defaults = array( 'ap' => 'explorer', 'ecl' => 'content' );      //$defaults = array( 'ap' => 'explorer', 'ecl' => 'content' );
365        $defaults = array( 't' => 'DataBrowser', 'ecl' => 'content' );
366      $location = array( 'ecdlk' => 'rpc' );      $location = array( 'ecdlk' => 'rpc' );
367      $args = array( 'ecmod' => 'view', 'ect' => 'data',  );      $args = array( 'ecmod' => 'view', 'ect' => 'data',  );
368            

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

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