PMA\libraries\File::openZip PHP Méthode

openZip() public méthode

Opens file from zip
public openZip ( string | null $specific_entry = null ) : boolean
$specific_entry string | null Entry to open
Résultat boolean
    public function openZip($specific_entry = null)
    {
        include_once './libraries/zip_extension.lib.php';
        $result = PMA_getZipContents($this->getName(), $specific_entry);
        if (!empty($result['error'])) {
            $this->_error_message = Message::rawError($result['error']);
            return false;
        }
        $this->_content = $result['data'];
        $this->_offset = 0;
        return true;
    }