-
Docs
Backend
-
Behaviors
-
Classes
-
Controllers
-
Database
-
Seeds
-
-
Facades
-
FormWidgets
-
Helpers
-
Exception
- Backend
-
-
Models
-
ReportWidgets
-
Skins
-
Traits
-
Widgets
- ServiceProvider
-
-
Cms
-
Classes
- Asset
- AutoDatasource
- CmsCompoundObject
- CmsController
- CmsException
- CmsObject
- CmsObjectCollection
- CodeBase
- CodeParser
- ComponentBase
- ComponentHelpers
- ComponentManager
- ComponentPartial
- Content
- Controller
- Layout
- LayoutCode
- MediaLibrary
- MediaLibraryItem
- MediaViewHelper
- Meta
- ObjectMemoryCache
- Page
- PageCode
- Partial
- PartialCode
- PartialStack
- Router
- Theme
- ThemeManager
-
Components
-
Contracts
-
Controllers
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- Loader
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
Console
-
Controllers
-
Database
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
filter
-
form
-
list
-
menu
-
page
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
object
-
page
-
router
-
template
-
theme
-
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
system
-
assets
-
console
-
mirror
-
theme
-
-
reportwidgets
-
settings
- extendConfigFile
-
-
translator
-
-
Library
-
Argon
-
Auth
-
Models
- AuthException
- Manager
-
-
Config
-
Cookie
-
Middleware
-
-
Database
-
Attach
-
Behaviors
-
Concerns
-
Connections
-
Connectors
-
Models
-
Relations
-
Schema
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- DataFeed
- Dongle
- MemoryCache
- Model
- ModelBehavior
- ModelException
- NestedTreeScope
- Pivot
- QueryBuilder
- SortableScope
- TreeCollection
- Updater
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
- Maker
-
-
Halcyon
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- MemoryCacheManager
- MemoryRepository
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Router
-
Scaffold
-
Support
-
Translation
-
- Documentation
- API
- Library
- Filesystem
- Zip
October\Rain\Filesystem\Zip
Source: ~/vendor/october/rain/src/Filesystem/Zip.php
Extends:
- ZipArchive
Zip helper
Protected properties
protected string $folderPrefix
Folder prefix
Public methods
public self add(mixed $source, array $options=array())
Includes a source to the Zip
Parameters
- mixed $source
- array $options
public static bool extract(string $source, string $destination, array $options=array())
Extract an existing zip file.
Parameters
- string $source - Path for the existing zip
- string $destination - Path to extract the zip files
- array $options
public self folder(string $name, mixed $source=NULL)
Creates a new folder inside the Zip and adds source files (optional)
Parameters
- string $name - Folder name
- mixed $source
public static self make(string $destination, mixed $source, array $options=array())
Creates a new empty zip file.
Parameters
- string $destination - Path for the new zip
- mixed $source
- array $options
public self remove(string $source)
Removes a file or folder from the zip collection. Does not support wildcards.
Parameters
- string $source
Inherited public methods
- public void addEmptyDir($dirname) - defined in ZipArchive.
- public void addFile($filepath, $entryname=NULL, $start=NULL, $length=NULL) - defined in ZipArchive.
- public void addFromString($name, $content) - defined in ZipArchive.
- public void addGlob($pattern, $flags=NULL, $options=NULL) - defined in ZipArchive.
- public void addPattern($pattern, $path=NULL, $options=NULL) - defined in ZipArchive.
- public void close() - defined in ZipArchive.
- public void deleteIndex($index) - defined in ZipArchive.
- public void deleteName($name) - defined in ZipArchive.
- public void extractTo($pathto, $files=NULL) - defined in ZipArchive.
- public void getArchiveComment($flags=NULL) - defined in ZipArchive.
- public void getCommentIndex($index, $flags=NULL) - defined in ZipArchive.
- public void getCommentName($name, $flags=NULL) - defined in ZipArchive.
- public void getExternalAttributesIndex($index, &$opsys, &$attr, $flags=NULL) - defined in ZipArchive.
- public void getExternalAttributesName($name, &$opsys, &$attr, $flags=NULL) - defined in ZipArchive.
- public void getFromIndex($index, $len=NULL, $flags=NULL) - defined in ZipArchive.
- public void getFromName($entryname, $len=NULL, $flags=NULL) - defined in ZipArchive.
- public void getNameIndex($index, $flags=NULL) - defined in ZipArchive.
- public void getStatusString() - defined in ZipArchive.
- public void getStream($entryname) - defined in ZipArchive.
- public void locateName($filename, $flags=NULL) - defined in ZipArchive.
- public void open($filename, $flags=NULL) - defined in ZipArchive.
- public void renameIndex($index, $new_name) - defined in ZipArchive.
- public void renameName($name, $new_name) - defined in ZipArchive.
- public void setArchiveComment($comment) - defined in ZipArchive.
- public void setCommentIndex($index, $comment) - defined in ZipArchive.
- public void setCommentName($name, $comment) - defined in ZipArchive.
- public void setCompressionIndex($index, $method, $compflags=NULL) - defined in ZipArchive.
- public void setCompressionName($name, $method, $compflags=NULL) - defined in ZipArchive.
- public void setExternalAttributesIndex($index, $opsys, $attr, $flags=NULL) - defined in ZipArchive.
- public void setExternalAttributesName($name, $opsys, $attr, $flags=NULL) - defined in ZipArchive.
- public void setPassword($password) - defined in ZipArchive.
- public void statIndex($index, $flags=NULL) - defined in ZipArchive.
- public void statName($filename, $flags=NULL) - defined in ZipArchive.
- public void unchangeAll() - defined in ZipArchive.
- public void unchangeArchive() - defined in ZipArchive.
- public void unchangeIndex($index) - defined in ZipArchive.
- public void unchangeName($name) - defined in ZipArchive.
Protected methods
protected string removePathPrefix(string $prefix, string $path)
Removes a prefix from a path.
Parameters
- string $prefix - /var/sites/
- string $path - /var/sites/moo/cow/