Exemple #1
0
 /**
  * Get URL to view License Text.
  *
  * @param int $id License ID
  * @param string $alias License Alias
  * @param string $path Path to File if License has to be confirmed before dovnloading
  * @return string
  */
 public static function viewLicense($id, $alias, $path = null, $docAlias = null)
 {
     $itemID = null;
     JoomDOCRoute::frontend($path, $docAlias, $itemID);
     return JRoute::_('index.php?option=' . JOOMDOC_OPTION . '&view=license&id=' . $id . ':' . $alias . '&tmpl=component' . ($path ? '&path=' . JoomDOCString::urlencode($path) : '') . ($itemID ? '&Itemid=' . $itemID : ''));
 }