| New Proposal Template This page has been created from a template that uses "zones." To proceed:
|
Zend Framework: Zend_Archive Component Proposal
| Proposed Component Name | Zend_Archive |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_Archive |
| Proposers | Pieter Kokx |
| Zend Liaison | TBD |
| Revision | 1.0 - 1 January 2008: Initial Draft. (wiki revision: 7) |
Table of Contents
1. Overview
Zend_Archive is a component that will be able to read and write archives.
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
- Zend_Archive will be able to read and edit archives.
- Zend_Archive will be able to create new archives.
4. Dependencies on Other Framework Components
- Zend_Exception
- Zend_Loader_PluginLoader
5. Theory of Operation
The component is instantiated with a mind-link that ...
6. Milestones / Tasks
- Milestone 1: [DONE] Create the proposal
- Milestone 2: Initial class design
- Milestone 3: Submit the proposal for community review
- Milestone 4: Create working prototype
- Milestone 5: Create code-covering unit tests.
7. Class Index
- Zend_Archive
- Zend_Archive_Tar
- Zend_Archive_Gzip
- Zend_Archive_Zip
- Zend_Archive_Bz2
- Zend_Archive_Abstract
8. Use Cases
| UC-01 |
|---|
Opening and extracting an existing archive.
| UC-02 |
|---|
Creating a new archive.
9. Class Skeletons
Important for ZIP
PASSWORD for extract and add
it's very usefull method don't forget it.
<?php
$zip = Zend_Archive::factory('zip', Zend_Archive::NEW);
// will create an instance of Zend_Archive_Zip
$zip->addDirectory('path/to/directory', 'internal/path/to/directory');
// do a password string for creating in archive .....
$zip->addFile('path/to/file.ext', 'internal/path/to/file.ext', 'password string 444');
$zip->save('path/to/packing/directory');
ZF Home Page
Code Browser
Wiki Dashboard
Maybe a method to return instead of save, would be handy.