[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/archive/src/ -> Archive.php (summary)

Part of the Joomla Framework Archive Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 228 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Archive:: (4 methods):
  __construct()
  extract()
  setAdapter()
  getAdapter()


Class: Archive  - X-Ref

An Archive handling class

__construct($options = [])   X-Ref
Create a new Archive object.

param: array|\ArrayAccess  $options  An array of options

extract($archivename, $extractdir)   X-Ref
Extract an archive file to a directory.

param: string  $archivename  The name of the archive file
param: string  $extractdir   Directory to unpack into
return: boolean  True for success

setAdapter($type, $class, $override = true)   X-Ref
Method to override the provided adapter with your own implementation.

param: string   $type      Name of the adapter to set.
param: string   $class     FQCN of your class which implements ExtractableInterface.
param: boolean  $override  True to force override the adapter type.
return: $this

getAdapter($type)   X-Ref
Get a file compression adapter.

param: string  $type  The type of adapter (bzip2|gzip|tar|zip).
return: ExtractableInterface  Adapter for the requested type



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer