public function get() { $_aArguments = func_get_args() + array(false); $bEditTerm = $_aArguments[0]; $this->sCapability = $this->callback($this->aCallbacks['capability'], ''); if (!$this->canUserView($this->sCapability)) { return ''; } $this->_formatElementDefinitions($this->aSavedData); new AdminPageFramework_Form_View___Script_Form(); $_oFormTables = new AdminPageFramework_Form_View___Sectionsets(array('capability' => $this->sCapability) + $this->aArguments, array('field_type_definitions' => $this->aFieldTypeDefinitions, 'sectionsets' => $this->aSectionsets, 'fieldsets' => $this->aFieldsets), $this->aSavedData, $this->getFieldErrors(), $this->aCallbacks, $this->oMsg); $_sAddNewTerm = $bEditTerm ? '' : ' add-new-term'; $_sClassSelectors = 'admin-page-framework-form-table-term_meta' . $_sAddNewTerm; return '<tr class="admin-page-framework-form-table-outer-row-term_meta">' . '<td colspan=2>' . '<table class="' . $_sClassSelectors . '">' . '<tbody>' . '<tr>' . '<td>' . $_oFormTables->get() . '</td>' . '</tr>' . '</tbody>' . '</table>' . '</td>' . '</tr>'; }
private function _getCustomSectionContent() { if (is_scalar($this->aSectionset['content'])) { return "<tr class='admin-page-framework-custom-content'>" . "<td>" . $this->aSectionset['content'] . "</td>" . "</tr>"; } $_sSectionPath = $this->aSectionset['_section_path']; $_aSectionsets = $this->aStructure['sectionsets']; if (!isset($_aSectionsets[$_sSectionPath])) { return ''; } unset($_aSectionsets[$_sSectionPath]); $_aNestedSectionPaths = $this->_getNestedSectionPaths($_sSectionPath, $this->aSectionset['content'], $_aSectionsets); $_aSectionsets = array_intersect_key($_aSectionsets, $_aNestedSectionPaths); $_aStructure = $this->aStructure; $_aStructure['sectionsets'] = $_aSectionsets; $_aArguments = array('nested_depth' => $this->getElement($this->aArguments, 'nested_depth', 0) + 1) + $this->aArguments; $_oFormTables = new AdminPageFramework_Form_View___Sectionsets($_aArguments, $_aStructure, $this->aSavedData, $this->aFieldErrors, $this->aCallbacks, $this->oMsg); return "<tr class='admin-page-framework-nested-sectionsets'>" . "<td>" . $_oFormTables->get() . "</td>" . "</tr>"; }
public function get() { $this->sCapability = $this->callBack($this->aCallbacks['capability'], ''); if (!$this->canUserView($this->sCapability)) { return ''; } $this->_formatElementDefinitions($this->aSavedData); new AdminPageFramework_Form_View___Script_Form(); $_oFormTables = new AdminPageFramework_Form_View___Sectionsets(array('capability' => $this->sCapability) + $this->aArguments, array('field_type_definitions' => $this->aFieldTypeDefinitions, 'sectionsets' => $this->aSectionsets, 'fieldsets' => $this->aFieldsets), $this->aSavedData, $this->callBack($this->aCallbacks['field_errors'], array($this->getFieldErrors())), $this->aCallbacks, $this->oMsg); return $this->_getNoScriptMessage() . $_oFormTables->get(); }