* * @property \Combodo\iTop\Form\Field\SelectObjectField $oField */ class BsSelectObjectFieldRenderer extends FieldRenderer { /** * Returns a RenderingOutput for the FieldRenderer's Field * * @return \Combodo\iTop\Renderer\RenderingOutput * * @throws \Exception * @throws \CoreException * @throws \ArchivedObjectException */ public function Render() { $oOutput = new RenderingOutput(); $oOutput->AddCssClass('form_field_' . $this->oField->GetDisplayMode()); $sFieldValueClass = $this->oField->GetSearch()->GetClass(); $sFieldMandatoryClass = ($this->oField->GetMandatory()) ? 'form_mandatory' : ''; $iFieldControlType = $this->oField->GetControlType(); // TODO : Remove this when hierarchical search supported $this->oField->SetHierarchical(false); // Rendering field in edition mode if (!$this->oField->GetReadOnly() && !$this->oField->GetHidden()) { // Debug trace: This is very useful when this kind of field doesn't return the expected values. if(ContextTag::Check('debug')) { IssueLog::Info('Form field #'.$this->oField->GetId().' OQL query: '.$this->oField->GetSearch()->ToOQL(true)); } // Rendering field // - Opening container $oOutput->AddHtml('