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
10
use
Fossology\Lib\Data\LicenseRef
;
11
12
class
UrlBuilder
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
}
Fossology\Lib\Data\LicenseRef
Definition:
LicenseRef.php:15
Fossology\Lib\Data\LicenseRef\getFullName
getFullName()
Definition:
LicenseRef.php:64
Fossology\Lib\Data\LicenseRef\getId
getId()
Definition:
LicenseRef.php:56
Fossology\Lib\View\UrlBuilder
Definition:
UrlBuilder.php:13
Fossology\Lib\View\UrlBuilder\getLicenseTextUrl
getLicenseTextUrl(LicenseRef $licenseRef)
Definition:
UrlBuilder.php:19
Traceback_uri
Traceback_uri()
Get the URI without query to this location.
Definition:
common-parm.php:97
src
lib
php
View
UrlBuilder.php
Generated on Mon Nov 18 2024 07:37:13 for FOSSology by
1.9.1