本文整理汇总了PHP中Pdf::SetLink方法的典型用法代码示例。如果您正苦于以下问题:PHP Pdf::SetLink方法的具体用法?PHP Pdf::SetLink怎么用?PHP Pdf::SetLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pdf
的用法示例。
在下文中一共展示了Pdf::SetLink方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor.
*
* @return void
*/
public function __construct($tagProperties = array())
{
$this->pdf = Pdf::singleton();
if (isset($tagProperties['ID'])) {
$this->id = $tagProperties['ID'];
if (!isset($this->pdf->linksIds[$this->id])) {
$this->pdf->linksIds[$this->id] = $this->pdf->AddLink();
}
$this->pdf->SetLink($this->pdf->linksIds[$this->id], -1);
}
}
示例2: array
$vwidth_array = array(20, 170);
// 196 total
$count = 0;
$oldip = "";
// iterate through the IP is the results
foreach ($arrResults as $hostIP_ctx => $scanData) {
list($hostIP, $hostctx) = explode("#", $hostIP_ctx);
$host_id = key(Asset_host::get_id_by_ips($dbconn, $hostIP, $hostctx));
if (valid_hex32($host_id)) {
$hostname = Asset_host::get_name_by_id($dbconn, $host_id);
} else {
$hostname = _('unknown');
}
$hostIP = htmlspecialchars_decode($hostIP);
$hostname = htmlspecialchars_decode($hostname);
$pdf->SetLink(${"IP_" . $hostIP_ctx}, $pdf->GetY());
//print out the host cell
$pdf->SetFillColor(229, 229, 229);
$pdf->SetFont('', 'B', 10);
$pdf->Cell(95, 6, $hostIP, 1, 0, 'C', 1);
$pdf->Cell(95, 6, $hostname, 1, 0, 'C', 1);
//$pdf->Cell(105, 6, "",1,0,'C');
$pdf->SetFont('', '');
$pdf->Ln();
// now iterate through the scan results for this IP
$all_results = array();
foreach ($scanData as $vuln) {
$exception = "";
$risk_value = $vuln['risk'];
$actual_risk = getrisk($risk_value);
if ($vuln['exception'] != "") {