| Server IP : 213.186.33.4 / Your IP : 216.73.216.59 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/Dolibarr/htdocs/includes/odtphp/zip/ |
Upload File : |
<?php
/**
* Interface for Zip libraries used in odtPHP
* You need PHP 5.2 at least
* You need Zip Extension or PclZip library
* Encoding : ISO-8859-1
*
* @copyright GPL License 2008 - Julien Pauli - Cyril PIERRE de GEYER - Anaska (http://www.anaska.com)
* @license https://www.gnu.org/copyleft/gpl.html GPL License
* @version 1.3
*/
interface ZipInterface
{
/**
* Open a Zip archive
*
* @param string $filename the name of the archive to open
* @return true if openning has succeeded
*/
public function open($filename);
/**
* Retrieve the content of a file within the archive from its name
*
* @param string $name the name of the file to extract
* @return the content of the file in a string
*/
public function getFromName($name);
/**
* Add a file within the archive from a string
*
* @param string $localname the local path to the file in the archive
* @param string $contents the content of the file
* @return true if the file has been successful added
*/
public function addFromString($localname, $contents);
/**
* Add a file within the archive from a file
*
* @param string $filename the path to the file we want to add
* @param string $localname the local path to the file in the archive
* @return true if the file has been successful added
*/
public function addFile($filename, $localname = null);
/**
* Close the Zip archive
* @return true
*/
public function close();
}
?>