*/ class BsSetFieldRenderer extends BsFieldRenderer { /** * @inheritDoc */ public function Render() { $oOutput = parent::Render(); $sFieldMandatoryClass = ($this->oField->GetMandatory()) ? 'form_mandatory' : ''; $sFieldDescriptionForHTMLTag = ($this->oField->HasDescription()) ? 'data-tooltip-content="'.utils::HtmlEntities($this->oField->GetDescription()).'"' : ''; // Vars to build the table // $sAttributesToDisplayAsJson = json_encode($this->oField->GetAttributesToDisplay()); // $sAttCodesToDisplayAsJson = json_encode($this->oField->GetAttributesToDisplay(true)); // $aItems = array(); // $aItemIds = array(); // $this->PrepareItems($aItems, $aItemIds); // $sItemsAsJson = json_encode($aItems); // $sItemIdsAsJson = htmlentities(json_encode(array('current' => $aItemIds)), ENT_QUOTES, 'UTF-8'); // Rendering field if (!$this->oField->GetHidden()) { /** @var \ormSet $oOrmItemSet */ $oOrmItemSet = $this->oField->GetCurrentValue(); // Opening container $oOutput->AddHtml('