PHP Class Mage_Connect_Packager, Inchoo_PHP7

Author: Magento Core Team ([email protected])
Mostra file Open project: Inchoo/Inchoo_PHP7 Class Usage Examples

Protected Properties

Property Type Description
$_archiver Mage_Archive
$_http

Public Methods

Method Description
__construct ( ) Constructor
getArchiver ( ) : Mage_Archive
getDependenciesList ( string $chanName, string $package, Mage_Connect_Singleconfig $cache, Mage_Connect_Config $config, mixed $versionMax = false, mixed $versionMin = false, $withDepsRecursive = true, $forceRemote = false ) : mixed PHP 7 compatibility rewrite
getDownloader ( )
getLocalModifiedFiles ( $chanName, $package, $cacheObj, $configObj ) : array Get local modified files
getRemoteCache ( $ftpString )
getRemoteConf ( $ftpString )
getRemoteConfig ( $ftpString )
getRemoteModifiedFiles ( $chanName, $package, $cacheObj, Mage_Connect_Ftp $ftp ) : array Get remote modified files
getUninstallList ( string $chanName, string $package, Mage_Connect_Singleconfig $cache, Mage_Connect_Config $config, boolean $withDepsRecursive = true ) : array PHP 7 compatibility rewrite
getUpgradesList ( $channels, Mage_Connect_Singleconfig $cacheObject, $configObj, Mage_Connect_Rest $restObj = null, boolean $checkConflicts = false ) : array Get upgrades list
processInstallPackage ( Mage_Connect_Package $package, string $file, $configObj ) : void Package installation to FS
processInstallPackageFtp ( $package, $file, $configObj, $ftp )
processUninstallPackage ( $chanName, $package, Mage_Connect_Singleconfig $cacheObj, $configObj ) : unknown_type
processUninstallPackageFtp ( $chanName, $package, Mage_Connect_Singleconfig $cacheObj, Mage_Connect_Ftp $ftp ) : unknown_type
writeToRemoteCache ( $cache, $ftpObj )
writeToRemoteConfig ( $cache, $ftpObj )

Protected Methods

Method Description
convertFtpPath ( $str )
processDepsHash ( array &$depsHash, boolean $sortReverse = true ) : array Process dependencies hash Makes topological sorting and gives operation order list

Method Details

__construct() public method

Constructor
public __construct ( )

convertFtpPath() protected method

protected convertFtpPath ( $str )

getArchiver() public method

public getArchiver ( ) : Mage_Archive
return Mage_Archive

getDependenciesList() public method

Get dependencies list/install order info
public getDependenciesList ( string $chanName, string $package, Mage_Connect_Singleconfig $cache, Mage_Connect_Config $config, mixed $versionMax = false, mixed $versionMin = false, $withDepsRecursive = true, $forceRemote = false ) : mixed
$chanName string
$package string
$cache Mage_Connect_Singleconfig
$config Mage_Connect_Config
$versionMax mixed
$versionMin mixed
return mixed

getDownloader() public method

public getDownloader ( )

getLocalModifiedFiles() public method

Get local modified files
public getLocalModifiedFiles ( $chanName, $package, $cacheObj, $configObj ) : array
$chanName
$package
$cacheObj
$configObj
return array

getRemoteCache() public method

public getRemoteCache ( $ftpString )

getRemoteConf() public method

public getRemoteConf ( $ftpString )

getRemoteConfig() public method

public getRemoteConfig ( $ftpString )

getRemoteModifiedFiles() public method

Get remote modified files
public getRemoteModifiedFiles ( $chanName, $package, $cacheObj, Mage_Connect_Ftp $ftp ) : array
$chanName
$package
$cacheObj
$ftp Mage_Connect_Ftp
return array

getUninstallList() public method

Get uninstall list
public getUninstallList ( string $chanName, string $package, Mage_Connect_Singleconfig $cache, Mage_Connect_Config $config, boolean $withDepsRecursive = true ) : array
$chanName string
$package string
$cache Mage_Connect_Singleconfig
$config Mage_Connect_Config
$withDepsRecursive boolean
return array

getUpgradesList() public method

Get upgrades list
public getUpgradesList ( $channels, Mage_Connect_Singleconfig $cacheObject, $configObj, Mage_Connect_Rest $restObj = null, boolean $checkConflicts = false ) : array
$cacheObject Mage_Connect_Singleconfig
$restObj Mage_Connect_Rest optional
$checkConflicts boolean
return array

processDepsHash() protected method

Process dependencies hash Makes topological sorting and gives operation order list
protected processDepsHash ( array &$depsHash, boolean $sortReverse = true ) : array
$depsHash array
$sortReverse boolean
return array

processInstallPackage() public method

Package installation to FS
public processInstallPackage ( Mage_Connect_Package $package, string $file, $configObj ) : void
$package Mage_Connect_Package
$file string
return void

processInstallPackageFtp() public method

public processInstallPackageFtp ( $package, $file, $configObj, $ftp )

processUninstallPackage() public method

public processUninstallPackage ( $chanName, $package, Mage_Connect_Singleconfig $cacheObj, $configObj ) : unknown_type
$chanName
$package
$cacheObj Mage_Connect_Singleconfig
return unknown_type

processUninstallPackageFtp() public method

public processUninstallPackageFtp ( $chanName, $package, Mage_Connect_Singleconfig $cacheObj, Mage_Connect_Ftp $ftp ) : unknown_type
$chanName
$package
$cacheObj Mage_Connect_Singleconfig
$ftp Mage_Connect_Ftp
return unknown_type

writeToRemoteCache() public method

public writeToRemoteCache ( $cache, $ftpObj )

writeToRemoteConfig() public method

public writeToRemoteConfig ( $cache, $ftpObj )

Property Details

$_archiver protected_oe property

protected Mage_Archive $_archiver
return Mage_Archive

$_http protected_oe property

protected $_http