N°2847 - Datatables Fix external keys search

This commit is contained in:
Eric
2020-11-12 15:52:52 +01:00
parent 0a02c10287
commit 4c8a8fc510
15 changed files with 209 additions and 29 deletions

View File

@@ -7,7 +7,9 @@
namespace Combodo\iTop\Application\UI\Component\DataTable\StaticTable\FormTable;
use Combodo\iTop\Application\UI\Component\DataTable\StaticTable\FormTableRow\FormTableRow;
use Combodo\iTop\Application\UI\Component\DataTable\StaticTable\StaticTable;
use Combodo\iTop\Application\UI\iUIBlock;
/**
* Class FormTable
@@ -24,10 +26,14 @@ class FormTable extends StaticTable
/** @var string */
private $sRef;
/** @var iUIBlock[] */
private $aRows;
public function __construct(string $sRef, string $sContainerCSSClass = '')
{
parent::__construct("dt_{$sRef}", $sContainerCSSClass);
$this->SetRef($sRef);
$this->aRows = [];
}
/**
@@ -45,4 +51,15 @@ class FormTable extends StaticTable
{
$this->sRef = $sRef;
}
public function GetRows(): array
{
return $this->aRows;
}
public function AddRow(FormTableRow $oRow): self
{
$this->aRows[] = $oRow;
return $this;
}
}