mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-11 01:20:21 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
25 lines
700 B
PHP
25 lines
700 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
/**
|
|
* Helper for creating ticket links from ticket hooks
|
|
*/
|
|
class Zend_View_Helper_CreateTicketLinks extends Zend_View_Helper_Abstract
|
|
{
|
|
/**
|
|
* Create ticket links form ticket hooks
|
|
*
|
|
* @param string $text
|
|
*
|
|
* @return string
|
|
* @see \Icinga\Application\Hook\TicketHook::createLinks()
|
|
*/
|
|
public function createTicketLinks($text)
|
|
{
|
|
$tickets = $this->view->tickets;
|
|
/** @var \Icinga\Application\Hook\TicketHook|array|null $tickets */
|
|
return ! empty($tickets) ? $tickets->createLinks($text) : $text;
|
|
}
|
|
}
|