oUILinksWidget = $oUILinksWidget; } public function AddForm() { $sEmptyList = Dict::S('UI:Message:EmptyList:UseSearchForm'); $sCancel = Dict::S('UI:Button:Cancel'); $sAdd = Dict::S('UI:Button:Add'); $oForm = new Form("ObjectsAddForm_{$this->oUILinksWidget->GetLinkedSetId()}"); $this->AddSubBlock($oForm); $oBlock = new UIContentBlock("SearchResultsToAdd_{$this->oUILinksWidget->GetLinkedSetId()}", ['ibo-block-object-picker-dialog--results']); $oForm->AddSubBlock($oBlock); $oBlock->AddHtml("
{$sEmptyList}
"); $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden("count_{$this->oUILinksWidget->GetLinkedSetId()}", '0', "count_{$this->oUILinksWidget->GetLinkedSetId()}")); } }