mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°3537 run_query : replace main form by components
This commit is contained in:
56
sources/application/UI/Base/Component/Input/TextArea.php
Normal file
56
sources/application/UI/Base/Component/Input/TextArea.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2010-2020 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Application\UI\Base\Component\Input;
|
||||
|
||||
|
||||
/**
|
||||
* @package Combodo\iTop\Application\UI\Base\Component\Input
|
||||
*/
|
||||
class TextArea extends AbstractInput
|
||||
{
|
||||
// Overloaded constants
|
||||
public const BLOCK_CODE = 'ibo-textarea';
|
||||
public const DEFAULT_HTML_TEMPLATE_REL_PATH = 'base/components/input/input-textarea';
|
||||
|
||||
/** @var int */
|
||||
protected $iCols;
|
||||
/** @var int */
|
||||
protected $iRows;
|
||||
|
||||
public function __construct(?string $sValue, ?string $sId = null, ?int $iCols = null, ?int $iRows = null)
|
||||
{
|
||||
parent::__construct($sId);
|
||||
|
||||
$this->sValue = $sValue;
|
||||
$this->iCols = $iCols;
|
||||
$this->iRows = $iRows;
|
||||
}
|
||||
|
||||
public function GetCols(): int
|
||||
{
|
||||
return $this->iCols;
|
||||
}
|
||||
|
||||
public function SetCols(int $iCols): TextArea
|
||||
{
|
||||
$this->iCols = $iCols;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function GetRows(): int
|
||||
{
|
||||
return $this->iRows;
|
||||
}
|
||||
|
||||
public function SetRows(int $iRows): TextArea
|
||||
{
|
||||
$this->iRows = $iRows;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user