Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cApiPathresolveCacheHelper
  • cArray
  • cArticleCollector
  • cDirHandler
  • cFileHandler
  • cHTMLInputSelectElement
  • cIterator
  • cString
  • cStringMultiByteWrapper
  • cZipArchive
  • UI_Config_Table
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cZipArchive

This class contains the functionalities to handle zip archives.

Package: Core\Util
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: claus.schunk@4fb.de
Located at classes/class.cziparchive.php
Methods summary
public static array
# readExistingFiles( string $dirPath )

Read all files from given path excluding files which names start with a dot or are not valid according to CONTENIDO standards (validateFilename()).

Read all files from given path excluding files which names start with a dot or are not valid according to CONTENIDO standards (validateFilename()).

Parameters

$dirPath
string
$dirPath

Returns

array
of files

Throws

cInvalidArgumentException

See

cFileHandler::validateFilename()
public static boolean
# isExtracted( string $dirPath )

This function checks if the given path already exists.

This function checks if the given path already exists.

Parameters

$dirPath
string
$dirPath

Returns

boolean
public static
# extractOverRide( string $file, string $extractPath, string $extractPathUserInput = NULL )

This function contains the functionality to extract archive and overwrite existing files.

This function contains the functionality to extract archive and overwrite existing files.

Parameters

$file
string
$file zip file
$extractPath
string
$extractPath extraction path
$extractPathUserInput
string
$extractPathUserInput [optional] user specified extraction path

Throws

cInvalidArgumentException
public static
# extract( string $file, string $extractPath, string $extractPathUserInput = NULL )

This function contains the functionality to extract archive.

This function contains the functionality to extract archive.

Parameters

$file
string
$file zip file
$extractPath
string
$extractPath extraction path
$extractPathUserInput
string
$extractPathUserInput [optional] user specified extraction path

Throws

cInvalidArgumentException
public static
# createZip( string $zipFilePath, string $dirPath, array $filePathes )

This function contains the functionality to create archives.

This function contains the functionality to create archives.

Parameters

$zipFilePath
string
$zipFilePath file path
$dirPath
string
$dirPath directory path
$filePathes
array
$filePathes files to store in archive
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0