N°2847 - Separate inline scripts and css from html in the rendering of pages

This commit is contained in:
Eric
2020-09-18 09:36:39 +02:00
parent e83dfe5982
commit 9cd719ab56
28 changed files with 310 additions and 378 deletions

View File

@@ -113,5 +113,13 @@ class AjaxTab extends Tab
return $this->bCache ? 'true' : 'false';
}
public function GetParameters(): array
{
$aParams = parent::GetParameters();
$aParams['sURL'] = $this->GetURL();
$aParams['sCache'] = $this->GetCache() ? 'true' : 'false';
return $aParams;
}
}

View File

@@ -54,4 +54,14 @@ class Tab extends UIContentBlock
{
return $this->sTitle;
}
public function GetParameters(): array
{
return [
'sBlockId' => $this->GetId(),
'sTitle' => $this->GetTitle(),
'sType' => $this->GetType(),
'oBlock' => $this,
];
}
}