コード例 #1
0
 protected function geFieldOutput(array $aField)
 {
     if (!is_object($aField['_caller_object'])) {
         return '';
     }
     $aField['_nested_depth']++;
     $_oCaller = $aField['_caller_object'];
     $_aOptions = $_oCaller->getSavedOptions();
     $_oField = new LesserAdminPageFramework_FormField($aField, $_aOptions, $_oCaller->getFieldErrors(), $_oCaller->oProp->aFieldTypeDefinitions, $_oCaller->oMsg, $_oCaller->oProp->aFieldCallbacks);
     return $_oField->_getFieldOutput();
 }
コード例 #2
0
 public function _replyToGetFieldOutput($aField)
 {
     $_sCurrentPageSlug = $this->oProp->getCurrentPageSlug();
     $_sSectionID = $this->oUtil->getElement($aField, 'section_id', '_default');
     $_sFieldID = $aField['field_id'];
     if ($aField['page_slug'] != $_sCurrentPageSlug) {
         return '';
     }
     $this->aFieldErrors = isset($this->aFieldErrors) ? $this->aFieldErrors : $this->_getFieldErrors($_sCurrentPageSlug);
     $sFieldType = isset($this->oProp->aFieldTypeDefinitions[$aField['type']]['hfRenderField']) && is_callable($this->oProp->aFieldTypeDefinitions[$aField['type']]['hfRenderField']) ? $aField['type'] : 'default';
     $_aTemp = $this->getSavedOptions();
     $_oField = new LesserAdminPageFramework_FormField($aField, $_aTemp, $this->aFieldErrors, $this->oProp->aFieldTypeDefinitions, $this->oMsg, $this->oProp->aFieldCallbacks);
     $_sFieldOutput = $_oField->_getFieldOutput();
     unset($_oField);
     return $this->oUtil->addAndApplyFilters($this, array(isset($aField['section_id']) && '_default' !== $aField['section_id'] ? 'field_' . $this->oProp->sClassName . '_' . $aField['section_id'] . '_' . $_sFieldID : 'field_' . $this->oProp->sClassName . '_' . $_sFieldID), $_sFieldOutput, $aField);
 }
コード例 #3
0
 public function _replyToGetFieldOutput($aField)
 {
     $_oField = new LesserAdminPageFramework_FormField($aField, $this->oProp->aOptions, $this->_getFieldErrors(), $this->oProp->aFieldTypeDefinitions, $this->oMsg, $this->oProp->aFieldCallbacks);
     $_sOutput = $this->oUtil->addAndApplyFilters($this, array('field_' . $this->oProp->sClassName . '_' . $aField['field_id']), $_oField->_getFieldOutput(), $aField);
     return $_sOutput;
 }