Skip to content
Snippets Groups Projects
Select Git revision
  • 09b6b7a6f00f122848f3776f2b20c4450e9de433
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

ZipInterface.php

Blame
  • ZipInterface.php 1.51 KiB
    <?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
     * Last commit by $Author$
     * Date - $Date$
     * SVN Revision - $Rev: 28 $
     * Id : $Id$
     *
     * @copyright  GPL License 2008 - Julien Pauli - Cyril PIERRE de GEYER - Anaska (http://www.anaska.com)
     * @license    http://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();
    }
    ?>