GetId())); } /** * @param \Combodo\iTop\Application\UI\iUIBlock $oSubBlock * * @return iUIContentBlock * @throws \Combodo\iTop\Application\UI\UIException */ public function AddSubBlock(iUIBlock $oSubBlock): iUIContentBlock { throw new UIException($this, Dict::Format('UIBlock:Error:AddBlockForbidden', $this->GetId())); } /** * @return array|\Combodo\iTop\Application\UI\iUIBlock[] */ public function GetSubBlocks(): array { return []; } /** * @param mixed $sURL * * @return AjaxTab */ public function SetURL(string $sURL): self { $this->sURL = $sURL; return $this; } /** * @param bool $bCache * * @return AjaxTab */ public function SetCache(bool $bCache): self { $this->bCache = $bCache; return $this; } /** * @return string */ public function GetURL(): string { return $this->sURL; } /** * @return string */ public function GetCache(): string { return $this->bCache ? 'true' : 'false'; } public function GetParameters(): array { $aParams = parent::GetParameters(); $aParams['sURL'] = $this->GetURL(); $aParams['sCache'] = $this->GetCache() ? 'true' : 'false'; return $aParams; } }