mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-09 02:54:11 +01:00
N°2841 - Error when trying to delete a user with a no admin
This commit is contained in:
46
sources/application/UI/Base/Component/Text/Text.php
Normal file
46
sources/application/UI/Base/Component/Text/Text.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2021 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Application\UI\Base\Component\Text;
|
||||
|
||||
|
||||
use Combodo\iTop\Application\UI\Base\UIBlock;
|
||||
|
||||
/**
|
||||
* Class Text
|
||||
*
|
||||
* @package Combodo\iTop\Application\UI\Base\Component\Text
|
||||
*/
|
||||
class Text extends UIBlock
|
||||
{
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-text';
|
||||
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/components/text/layout';
|
||||
|
||||
/**@var string */
|
||||
protected $sText;
|
||||
|
||||
/**
|
||||
* Text constructor.
|
||||
*
|
||||
* @param string $sText
|
||||
*/
|
||||
public function __construct(string $sText, ?string $sId = null)
|
||||
{
|
||||
$this->sText = $sText;
|
||||
parent::__construct($sId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function GetText(): string
|
||||
{
|
||||
return $this->sText;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user