AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator::_getDownloadFrameworkZipFile PHP Метод

_getDownloadFrameworkZipFile() приватный Метод

Generates the framework zip data.
С версии: 3.5.4
private _getDownloadFrameworkZipFile ( $sFrameworkDirPath, $sDestinationPath ) : string
Результат 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);
    }