SproutCMS

This is the code documentation for the SproutCMS project

class Archive

Class for creating archives in various formats - zip, tar.bz2, etc

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends Archive {
    
    /**
    * Creates a raw archive file and returns it.
    **/
    public function create () {
        // Method code goes here
    }
    
    /**
    * Loads the archive driver.
    **/
    public function __construct (string $type) {
        // Method code goes here
    }
    
    /**
    * Adds files or directories, recursively, to an archive.
    **/
    public function add (string $path, string $name, bool $recursive) {
        // Method code goes here
    }
    
    /**
    * Creates an archive and saves it into a file.
    **/
    public function save (string $filename) {
        // Method code goes here
    }
    
}
?>