Example #1
0
 /**
  * @param LicenseRef $licenseRef
  * @return string
  */
 public function getLicenseTextUrl(LicenseRef $licenseRef)
 {
     $uri = Traceback_uri() . '?mod=popup-license&rf=' . $licenseRef->getId();
     $title = _('License text');
     $licenseShortNameWithLink = '<a title="' . $licenseRef->getFullName() . '" href="javascript:;" onclick="javascript:window.open(\'' . $uri . '\',\'' . $title . '\',\'width=600,height=400,toolbar=no,scrollbars=yes,resizable=yes\');">' . $licenseRef->getShortName() . '</a>';
     return $licenseShortNameWithLink;
 }
Example #2
0
 /**
  * @return int
  */
 public function getLicenseId()
 {
     return $this->licenseRef->getId();
 }