PHP Class WP_CLI\Extractor

Datei anzeigen Open project: wp-cli/wp-cli Class Usage Examples

Public Methods

Method Description
copy_overwrite_files ( $source, $dest )
extract ( $tarball_or_zip, string $dest ) Extract the archive file to a specific destination.
rmdir ( $dir )

Private Methods

Method Description
extract_tarball ( string $tarball, string $dest ) Extract a tarball to a specific destination.
extract_zip ( string $zipfile, string $dest ) Extract a ZIP file to a specific destination.

Method Details

copy_overwrite_files() public static method

public static copy_overwrite_files ( $source, $dest )

extract() public static method

Extract the archive file to a specific destination.
public static extract ( $tarball_or_zip, string $dest )
$dest string

rmdir() public static method

public static rmdir ( $dir )