UIBlock: Change $aAdditionalCSSClasses methods to match app. conventions (parameters should be arrays, not space separated string)

Note: This had to be fixed on all calls to this, hence the number of modifications.
This commit is contained in:
Molkobain
2021-01-21 12:40:30 +01:00
parent 7c8019319a
commit 1514cd83ab
28 changed files with 152 additions and 97 deletions

View File

@@ -114,7 +114,7 @@ class DataTableUIBlockFactory extends AbstractUIBlockFactory
}
if (!isset($aExtraParams['surround_with_panel']) || $aExtraParams['surround_with_panel']) {
$oContainer = PanelUIBlockFactory::MakeForClass($oSet->GetClass(), "Result")->AddCSSClasses('ibo-datatable-panel');
$oContainer = PanelUIBlockFactory::MakeForClass($oSet->GetClass(), "Result")->AddCSSClass('ibo-datatable-panel');
$oContainer->AddToolbarBlock($oBlockMenu);
$oContainer->AddMainBlock($oDataTable);
} else {

View File

@@ -29,9 +29,9 @@ class FormTable extends StaticTable
/** @var iUIBlock[] */
private $aRows;
public function __construct(string $sRef, string $sContainerCSSClasses = '')
public function __construct(string $sRef, array $aContainerCSSClasses = [])
{
parent::__construct($sRef, $sContainerCSSClasses);
parent::__construct($sRef, $aContainerCSSClasses);
$this->SetRef($sRef);
$this->aRows = [];
}

View File

@@ -52,9 +52,9 @@ class StaticTable extends UIContentBlock
*/
private $aData;
public function __construct(string $sId = null, string $sContainerCSSClasses = '')
public function __construct(string $sId = null, array $aContainerCSSClasses = [])
{
parent::__construct($sId, $sContainerCSSClasses);
parent::__construct($sId, $aContainerCSSClasses);
$this->aColumns = [];
$this->aData = [];
}