public function get() { $this->sCapability = $this->callBack($this->aCallbacks['capability'], ''); if (!$this->canUserView($this->sCapability)) { return ''; } $this->_formatElementDefinitions($this->aSavedData); new AmazonAutoLinks_AdminPageFramework_Form_View___Script_Form(); $_oFormTables = new AmazonAutoLinks_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); return $this->_getNoScriptMessage() . $_oFormTables->get(); }
private function _getCustomSectionContent() { if (is_scalar($this->aSectionset['content'])) { return "<tr class='amazon-auto-links-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 AmazonAutoLinks_AdminPageFramework_Form_View___Sectionsets($_aArguments, $_aStructure, $this->aSavedData, $this->aFieldErrors, $this->aCallbacks, $this->oMsg); return "<tr class='amazon-auto-links-nested-sectionsets'>" . "<td>" . $_oFormTables->get() . "</td>" . "</tr>"; }