protected function _exportOptions($mData, $sPageSlug, $sTabSlug) { $_oExport = new AmazonAutoLinks_AdminPageFramework_ExportOptions($_POST['__export'], $this->oFactory->oProp->sClassName); $_aArguments = array('class_name' => $this->oFactory->oProp->sClassName, 'page_slug' => $sPageSlug, 'tab_slug' => $sTabSlug, 'section_id' => $_oExport->getSiblingValue('section_id'), 'pressed_field_id' => $_oExport->getSiblingValue('field_id'), 'pressed_input_id' => $_oExport->getSiblingValue('input_id')); $_mData = $this->_getFilteredExportingData($_aArguments, $_oExport->getTransientIfSet($mData)); $_sFileName = $this->_getExportFileName($_aArguments, $_oExport->getFileName(), $_mData); $_oExport->doExport($_mData, $this->_getExportFormatType($_aArguments, $_oExport->getFormat()), $this->_getExportHeaderArray($_aArguments, $_sFileName, $mData)); exit; }
private function exportOptions($vData, $strPageSlug, $strTabSlug) { $oExport = new AmazonAutoLinks_AdminPageFramework_ExportOptions($_POST['__export'], $this->oProps->strClassName); $strPressedFieldID = $oExport->getSiblingValue('field_id'); $strPressedInputID = $oExport->getSiblingValue('input_id'); // If the data is set in transient, $vData = $oExport->getTransientIfSet($vData); // Get the field ID. $strFieldID = $oExport->getFieldID(); // Add and apply filters. - adding filters must be done in this class because the callback method belongs to this class // and the magic method should be triggered. $vData = $this->oUtil->addAndApplyFilters($this, array("export_{$strPageSlug}_{$strTabSlug}", "export_{$strPageSlug}", "export_{$this->oProps->strClassName}_{$strPressedInputID}", "export_{$this->oProps->strClassName}_{$strPressedFieldID}", "export_{$this->oProps->strClassName}"), $vData, $strPressedFieldID, $strPressedInputID); // export_{$strPageSlug}_{$strTabSlug}, export_{$strPageSlug}, export_{$strClassName}_{pressed input id}, export_{$strClassName}_{pressed field id}, export_{$strClassName} $strFileName = $this->oUtil->addAndApplyFilters($this, array("export_name_{$strPageSlug}_{$strTabSlug}", "export_name_{$strPageSlug}", "export_name_{$this->oProps->strClassName}_{$strPressedInputID}", "export_name_{$this->oProps->strClassName}_{$strPressedFieldID}", "export_name_{$this->oProps->strClassName}"), $oExport->getFileName(), $strPressedFieldID, $strPressedInputID); // export_name_{$strPageSlug}_{$strTabSlug}, export_name_{$strPageSlug}, export_name_{$strClassName}_{pressed input id}, export_name_{$strClassName}_{pressed field id}, export_name_{$strClassName} $strFormatType = $this->oUtil->addAndApplyFilters($this, array("export_format_{$strPageSlug}_{$strTabSlug}", "export_format_{$strPageSlug}", "export_format_{$this->oProps->strClassName}_{$strPressedInputID}", "export_format_{$this->oProps->strClassName}_{$strPressedFieldID}", "export_format_{$this->oProps->strClassName}"), $oExport->getFormat(), $strPressedFieldID, $strPressedInputID); // export_format_{$strPageSlug}_{$strTabSlug}, export_format_{$strPageSlug}, export_format_{$strClassName}_{pressed input id}, export_format_{$strClassName}_{pressed field id}, export_format_{$strClassName} $oExport->doExport($vData, $strFileName, $strFormatType); exit; }