| 4 |
## $Id$ |
## $Id$ |
| 5 |
## ------------------------------------------------------------------------- |
## ------------------------------------------------------------------------- |
| 6 |
## $Log$ |
## $Log$ |
| 7 |
|
## Revision 1.4 2003/04/11 00:58:08 joko |
| 8 |
|
## + link::plain |
| 9 |
|
## + url::viewdatanode |
| 10 |
|
## |
| 11 |
## Revision 1.3 2003/04/08 22:38:43 joko |
## Revision 1.3 2003/04/08 22:38:43 joko |
| 12 |
## NEW: 'class url' as code container for some shortcut functions |
## NEW: 'class url' as code container for some shortcut functions |
| 13 |
## |
## |
| 94 |
$query_string = linkargs::action($action_name, $args); |
$query_string = linkargs::action($action_name, $args); |
| 95 |
return html_a($query_string, "[$action_name]"); |
return html_a($query_string, "[$action_name]"); |
| 96 |
} |
} |
| 97 |
|
|
| 98 |
|
function plain($url, $caption = '') { |
| 99 |
|
if (!$caption) { $caption = $url; } |
| 100 |
|
return html_a($url, $caption); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
} |
} |
| 104 |
|
|
| 177 |
// there you have it.. |
// there you have it.. |
| 178 |
return $url; |
return $url; |
| 179 |
} |
} |
| 180 |
|
|
| 181 |
|
function viewdatanode($nodename) { |
| 182 |
|
|
| 183 |
|
$final = array(); |
| 184 |
|
$defaults = array( 'ap' => 'explorer', 'ecl' => 'content' ); |
| 185 |
|
$location = array( 'ecdlk' => 'rpc' ); |
| 186 |
|
$args = array( 'ecmod' => 'view', 'ect' => 'data', ); |
| 187 |
|
$ident = array( 'ecat' => 'list', 'ecdid' => $nodename ); |
| 188 |
|
|
| 189 |
|
$final = php::array_join_merge($final, $defaults); |
| 190 |
|
$final = php::array_join_merge($final, $location); |
| 191 |
|
$final = php::array_join_merge($final, $args); |
| 192 |
|
$final = php::array_join_merge($final, $ident); |
| 193 |
|
|
| 194 |
|
return url::short('', $final); |
| 195 |
|
} |
| 196 |
|
|
| 197 |
} |
} |
| 198 |
|
|