freenetis-github/system/libraries/drivers/Archive.php @ 66c10d2e
8baed187 | Michal Kliment | <?php defined('SYSPATH') or die('No direct script access.');
|
|
/**
|
|||
* Archive driver interface.
|
|||
*
|
|||
* $Id: Archive.php 1924 2008-02-05 16:39:20Z Shadowhand $
|
|||
*
|
|||
* @package Archive
|
|||
* @author Kohana Team
|
|||
* @copyright (c) 2007-2008 Kohana Team
|
|||
* @license http://kohanaphp.com/license.html
|
|||
*/
|
|||
interface Archive_Driver {
|
|||
/**
|
|||
* Creates an archive and optionally, saves it to a file.
|
|||
*
|
|||
* @param array filenames to add
|
|||
* @param string file to save the archive to
|
|||
* @return boolean
|
|||
*/
|
|||
public function create($paths, $filename = FALSE);
|
|||
/**
|
|||
* Add data to the archive.
|
|||
*
|
|||
* @param string filename
|
|||
* @param string name of file in archive
|
|||
* @return void
|
|||
*/
|
|||
public function add_data($file, $name, $contents = NULL);
|
|||
} // End Archive_Driver Interface
|