메소드 | 설명 | |
---|---|---|
__construct ( |
PluginInstaller constructor. | |
installOrUpdatePluginFromFile ( $pathToZip ) | ||
installOrUpdatePluginFromMarketplace ( $pluginName ) |
메소드 | 설명 | |
---|---|---|
checkMarketplaceIsEnabled ( ) | ||
copyPluginToDestination ( $tmpPluginFolder ) | ||
downloadPluginFromMarketplace ( ) : false | string | ||
extractPluginFiles ( $pluginZipFile, $pathExtracted ) | ||
fixPluginFolderIfNeeded ( $tmpPluginFolder ) | ||
getNameOfFirstSubfolder ( $pluginDir ) : string | ||
getPathToPluginJson ( $tmpPluginFolder ) | ||
getPluginMetadataIfValid ( $tmpPluginFolder ) | ||
makeSureFoldersAreWritable ( ) | ||
makeSurePluginJsonExists ( $tmpPluginFolder ) | ||
makeSurePluginNameIsValid ( ) | ||
makeSureThereAreNoMissingRequirements ( $metadata ) | ||
removeFileIfExists ( $targetTmpFile ) | ||
removeFolderIfExists ( $pathExtracted ) |
public __construct ( |
||
$client |
public installOrUpdatePluginFromMarketplace ( $pluginName ) |