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
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • PimPlugin
  • PimPluginArchiveExtractor
  • PimPluginCollection
  • PimPluginRelations
  • PimPluginRelationsCollection
  • PimPluginSetup
  • PimPluginSetupInstall
  • PimPluginSetupStatus
  • PimPluginSetupUninstall
  • PimPluginSetupUpdate
  • PimPluginViewDependencies
  • PimPluginViewNavSub
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class PimPluginArchiveExtractor

Extractor for plugin archive files

Package: PluginManager
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Frederic Schneider
Located at plugins/pim/classes/util/zip/class.pimpluginarchiveextractor.php
Methods summary
public
# __construct( $source, $filename )

Constructor of ArchiveExtractor, load the file list

Constructor of ArchiveExtractor, load the file list

Parameters

$source
path to the temp directory
$filename
name of zip archive

Throws

cException
if the source file does not exists
public
# closeArchive( )
public
# setDestinationPath( $destination )

Sets the path where the extractor extracts the archive files

Sets the path where the extractor extracts the archive files

Parameters

$destination
string

Throws

cException

if the destination path can not set (directory is not writable)


cException
if the defined destination already exists
public
# extractArchive( )

Extracts the whole archive

Extracts the whole archive

Throws

cException
if the extraction failed
public string
# extractArchiveFileToVariable( $filename, $content = true )

Extracts a specific file from archive and return its content to use it in a variable

Extracts a specific file from archive and return its content to use it in a variable

Parameters

$filename
string
$content

[optional] whether to return the content or just the dir and filename of the extracted file

Returns

string

content of extracted file or dir and filename of extracted File

public
# destroyTempFiles( )

Destory temporary plugin files (plugin.xml, plugin_install.sql and files at CONTENIDO temp dir)

Destory temporary plugin files (plugin.xml, plugin_install.sql and files at CONTENIDO temp dir)

Properties summary
protected integer $_extractor

The extractor initializer

The extractor initializer

# 0
protected string $tempDir

The temp dir

The temp dir

# ''
protected string $_source

The archive file

The archive file

# ''
protected string $_destination

The destination path

The destination path

# ''
protected string $_absPath

The absolute path

The absolute path

# ''
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen