mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-02 07:34:13 +01:00
N°3123 - Refactor Directories
This commit is contained in:
46
sources/application/UI/Base/Component/FieldSet/FieldSet.php
Normal file
46
sources/application/UI/Base/Component/FieldSet/FieldSet.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Application\UI\Base\Component\FieldSet;
|
||||
|
||||
|
||||
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlock;
|
||||
|
||||
/**
|
||||
* Class FieldSet
|
||||
*
|
||||
* @package Combodo\iTop\Application\UI\Base\Component\FieldSet
|
||||
*/
|
||||
class FieldSet extends UIContentBlock
|
||||
{
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-fieldset';
|
||||
public const HTML_TEMPLATE_REL_PATH = 'base/components/fieldset/layout';
|
||||
|
||||
/** @var string */
|
||||
protected $sLegend;
|
||||
|
||||
/**
|
||||
* FieldSet constructor.
|
||||
*
|
||||
* @param string $sLegend
|
||||
* @param string|null $sId
|
||||
*/
|
||||
public function __construct(string $sLegend, ?string $sId = null)
|
||||
{
|
||||
parent::__construct($sId);
|
||||
$this->sLegend = $sLegend;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function GetLegend(): string
|
||||
{
|
||||
return $this->sLegend;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user