function FrxHostApplication::url in Forena Reports 7.2
Same name and namespace in other branches
- 6.2 FrxHostApplication.inc \FrxHostApplication::url()
1 method overrides FrxHostApplication::url()
File
- ./
FrxHostApplication.inc, line 180
Class
Code
function url($path, $options) {
if ($options['query']) {
$query = $options['query'];
if (is_array($query)) {
$q = '';
foreach ($query as $key => $value) {
$q .= '&' . urlencode($key) . '=' . urlencode($value);
}
$query = trim($q, '&');
}
if ($query) {
$path .= '?' . $query;
}
}
return $path;
}