You are here

function FrxHostApplication::url in Forena Reports 6.2

Same name and namespace in other branches
  1. 7.2 FrxHostApplication.inc \FrxHostApplication::url()
1 method overrides FrxHostApplication::url()
FrxDrupalApplication::url in ./FrxDrupalApplication.inc

File

./FrxHostApplication.inc, line 180

Class

FrxHostApplication

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;
}