FOSSology  4.4.0
Open Source License Compliance by Open Source Software
UrlBuilder.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 namespace Fossology\Lib\View;
9 
11 
13 {
14 
19  public function getLicenseTextUrl(LicenseRef $licenseRef)
20  {
21  $uri = Traceback_uri() . '?mod=popup-license&rf=' . $licenseRef->getId();
22  $title = _('License text');
23  return '<a title="'. $licenseRef->getFullName() .'" href="javascript:;" onclick="javascript:window.open(\''
24  .$uri. '\',\''.$title.'\',\'width=600,height=400,toolbar=no,scrollbars=yes,resizable=yes\');">'
25  .$licenseRef->getShortName(). '</a>';
26  }
27 }
getLicenseTextUrl(LicenseRef $licenseRef)
Definition: UrlBuilder.php:19
Traceback_uri()
Get the URI without query to this location.
Definition: common-parm.php:97