wrap[WRAP_SETUP_TITLE][WRAP_SETUP_START] = '

'; $this->wrap[WRAP_SETUP_TITLE][WRAP_SETUP_END] = '

'; $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_CLASS] = ''; $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_START] = ''; $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_END] = ''; $this->wrap[WRAP_SETUP_LABEL][WRAP_SETUP_START] = ''; $this->wrap[WRAP_SETUP_LABEL][WRAP_SETUP_END] = ''; $this->wrap[WRAP_SETUP_INPUT][WRAP_SETUP_START] = ''; $this->wrap[WRAP_SETUP_INPUT][WRAP_SETUP_END] = ''; $this->wrap[WRAP_SETUP_NOTE][WRAP_SETUP_START] = ''; $this->wrap[WRAP_SETUP_NOTE][WRAP_SETUP_END] = ''; $this->wrap[WRAP_SETUP_SUBRECORD][WRAP_SETUP_START] = '

'; $this->wrap[WRAP_SETUP_SUBRECORD][WRAP_SETUP_END] = '

'; $this->wrap[WRAP_SETUP_IN_FIELDSET][WRAP_SETUP_START] = '

'; $this->wrap[WRAP_SETUP_IN_FIELDSET][WRAP_SETUP_END] = '

'; $this->wrap[WRAP_SETUP_IN_TEMPLATE_GROUP][WRAP_SETUP_START] = ""; $this->wrap[WRAP_SETUP_IN_TEMPLATE_GROUP][WRAP_SETUP_END] = ""; } public function fillWrapLabelInputNote($label, $input, $note) { } /** * @return string */ public function getProcessFilter() { return FORM_ELEMENTS_NATIVE; } /** * @return string */ public function doSubrecords() { //TODO: $json is not returned - which is wrong. In this case, dynamic update won't work for subrecords $json = array(); return $this->elements($this->store->getVar(SIP_RECORD_ID, STORE_SIP), FORM_ELEMENTS_SUBRECORD, $json); } /** * @return string */ public function head($mode = FORM_LOAD) { $html = ''; $html .= '
formSpec[F_CLASS], true) . '>'; // main
around everything // Logged in BE User will see a FormEdit Link $sipParamString = OnArray::toString($this->store->getStore(STORE_SIP), ':', ', ', "'"); $formEditUrl = $this->createFormEditorUrl(FORM_NAME_FORM, $this->formSpec[F_ID]); $html .= "

Edit[$sipParamString]

"; $deleteUrl = $this->createDeleteUrl($this->formSpec[F_FINAL_DELETE_FORM], $this->store->getVar(SIP_RECORD_ID, STORE_SIP)); $html .= "

Delete"; $html .= $this->wrapItem(WRAP_SETUP_TITLE, $this->formSpec[F_TITLE], true); $html .= $this->getFormTag(); $html .= ''; return $html; } /** * @param $htmlFormElementName * @param $formElement * * @return string */ public function buildRowNative(array $formElement, $htmlElement, $htmlFormElementName) { $html = ''; // Construct Marshaller Name $buildElementFunctionName = 'build' . $this->buildElementFunctionName[$formElement[FE_TYPE]]; if ($formElement[FE_TYPE] === 'subrecord') { // subrecord in render='table' are outside the table $html .= $this->wrapItem(WRAP_SETUP_SUBRECORD, $formElement[FE_LABEL]); $html .= $this->wrapItem(WRAP_SETUP_SUBRECORD, $htmlElement); $html .= $this->wrapItem(WRAP_SETUP_SUBRECORD, $formElement[FE_NOTE]); } else { if ($formElement['nestedInFieldSet'] === 'no') { $html .= $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_START]; $html .= $this->wrapItem(WRAP_SETUP_LABEL, $formElement[FE_LABEL]); $html .= $this->wrapItem(WRAP_SETUP_INPUT, $htmlElement); $html .= $this->wrapItem(WRAP_SETUP_NOTE, $formElement[FE_NOTE]); $html .= $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_END]; } else { $html .= $this->wrapItem(WRAP_SETUP_IN_FIELDSET, $formElement[FE_LABEL]); $html .= $this->wrapItem(WRAP_SETUP_IN_FIELDSET, $htmlElement); if ($formElement[FE_NOTE] !== '') $html .= $this->wrapItem(WRAP_SETUP_IN_FIELDSET, $formElement[FE_NOTE]); } } return $html; } /** * @return string */ public function tail() { $html = ''; $html .= $this->wrapItem(WRAP_SETUP_LABEL, '', false); $html .= $this->wrapItem(WRAP_SETUP_INPUT, ''); $html = $this->wrapItem(WRAP_SETUP_ELEMENT, $html); $html .= '
'; // $html .= $this->buildNewSip(); $html .= ''; $html .= '

'; // main
around everything return $html; } public function buildRowPill(array $formElement, $elementHtml) { // TODO: Implement buildRowPill() method. } public function buildRowFieldset(array $formElement, $elementHtml) { // TODO: Implement buildRowFieldset() method. } public function buildRowTemplateGroup(array $formElement, $elementHtml) { // TODO: Implement buildRowTemplate() method. } public function buildRowSubrecord(array $formElement, $elementHtml) { // TODO: Implement buildRowSubrecord() method. } }