mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 23:44:11 +01:00
# Conflicts: # dictionaries/cs.dictionary.itop.core.php # dictionaries/da.dictionary.itop.core.php # dictionaries/de.dictionary.itop.core.php # dictionaries/es_cr.dictionary.itop.core.php # dictionaries/hu.dictionary.itop.core.php # dictionaries/it.dictionary.itop.core.php # dictionaries/ja.dictionary.itop.core.php # dictionaries/nl.dictionary.itop.core.php # dictionaries/pl.dictionary.itop.core.php # dictionaries/pt_br.dictionary.itop.core.php # dictionaries/ru.dictionary.itop.core.php # dictionaries/sk.dictionary.itop.core.php # dictionaries/tr.dictionary.itop.core.php # lib/composer/autoload_classmap.php # lib/composer/autoload_static.php # sources/Application/Helper/ExportHelper.php
27 lines
848 B
PHP
27 lines
848 B
PHP
<?php
|
|
|
|
namespace Combodo\iTop\Application\Helper;
|
|
use Combodo\iTop\Application\UI\Base\Component\Alert\AlertUIBlockFactory;
|
|
use Dict;
|
|
use utils;
|
|
|
|
/**
|
|
* Class
|
|
* ExportHelper
|
|
*
|
|
* @internal
|
|
* @author Stephen Abello <stephen.abello@combodo.com>
|
|
* @since 2.7.9 3.0.4 3.1.1 3.2.0
|
|
* @package Combodo\iTop\Application\Helper
|
|
*/
|
|
class ExportHelper
|
|
{
|
|
public static function GetAlertForExcelMaliciousInjection()
|
|
{
|
|
$sWikiUrl = 'https://www.itophub.io/wiki/page?id='.utils::GetItopVersionWikiSyntax().'%3Auser%3Alists#excel_export';
|
|
$oAlert = AlertUIBlockFactory::MakeForWarning(Dict::S('UI:Bulk:Export:MaliciousInjection:Alert:Title'), Dict::Format('UI:Bulk:Export:MaliciousInjection:Alert:Message', $sWikiUrl), 'ibo-excel-malicious-injection-alert');
|
|
$oAlert->EnableSaveCollapsibleState(true)
|
|
->SetIsClosable(false);
|
|
return $oAlert;
|
|
}
|
|
} |