mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge branch 'support/3.0' into support/3.1
# 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
This commit is contained in:
27
sources/Application/Helper/ExportHelper.php
Normal file
27
sources/Application/Helper/ExportHelper.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user