/** * Generates the framework zip data. * * @since 3.5.4 * @return string The binary zip data. */ private function _getDownloadFrameworkZipFile($sFrameworkDirPath, $sDestinationPath) { $_oZip = new AdminPageFramework_Zip($sFrameworkDirPath, $sDestinationPath, array('include_directory' => false, 'additional_source_directories' => apply_filters(AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_additional_source_directories', array())), array('file_name' => array($this, '_replyToModifyPathInArchive'), 'directory_name' => array($this, '_replyToModifyPathInArchive'), 'file_contents' => array($this, '_replyToModifyFileContents'))); $_bSucceed = $_oZip->compress(); if (!$_bSucceed) { return ''; } return file_get_contents($sDestinationPath); }
/** * Generates the framework zip data. * * @since 3.5.4 * @return string The binary zip data. */ private function _getDownloadFrameworkZipFile($sFrameworkDirPath, $sDestinationPath) { $_oZip = new AdminPageFramework_Zip($sFrameworkDirPath, $sDestinationPath, false, array('file_name' => array($this, '_replyToModifyPathInArchive'), 'directory_name' => array($this, '_replyToModifyPathInArchive'), 'file_contents' => array($this, '_replyToModifyFileContents'))); $_bSucceed = $_oZip->compress(); if (!$_bSucceed) { return ''; } return file_get_contents($sDestinationPath); }