public function __construct($aPostExport, $sClassName) { parent::__construct($aPostExport); $this->sClassName = $sClassName; $this->sFileName = $this->getSubmitValueByType($aPostExport, $this->sInputID, 'file_name'); $this->sFormatType = $this->getSubmitValueByType($aPostExport, $this->sInputID, 'format'); $this->bIsDataSet = $this->getSubmitValueByType($aPostExport, $this->sInputID, 'transient'); }
public function __construct($aFilesImport, $aPostImport) { parent::__construct($aPostImport); $this->aFilesImport = $aFilesImport; }
public function __construct($arrPostExport, $strClassName) { // Call the parent constructor. parent::__construct($arrPostExport); // Properties $this->arrPostExport = $arrPostExport; $this->strClassName = $strClassName; // will be used in the getTransientIfSet() method. // $this->strPageSlug = $strPageSlug; // $this->strTabSlug = $strTabSlug; // Find the field ID and the element key ( for multiple export buttons )of the pressed submit ( export ) button. $this->strFieldID = $this->getFieldID(); $this->arrElementKey = $this->getElementKey($arrPostExport['submit'], $this->strFieldID); // Set the file name to download and the format type. Also find whether the exporting data is set in transient. $this->strFileName = $this->getElement($arrPostExport, $this->arrElementKey, 'file_name'); $this->strFormatType = $this->getElement($arrPostExport, $this->arrElementKey, 'format'); $this->fIsDataSet = $this->getElement($arrPostExport, $this->arrElementKey, 'transient'); }