PHP Класс Backend\Modules\Extensions\Actions\UploadTheme

It will install a theme via a compressed zip file.
Наследование: extends Backend\Core\Engine\Base\ActionAdd
Показать файл Открыть проект

Открытые методы

Метод Описание
execute ( ) Execute the action.

Приватные методы

Метод Описание
checkIfPathContainsIgnoredWord ( string $path ) : boolean
extractFolderNameBasedOnInfoFile ( string $infoFilePath ) : string
findInfoFileInZip ( ZipArchive $zip ) : string Two ideal situations possible: we have a zip with files including info.xml, or we have a zip with the theme-folder.
getValidatedFilesList ( ZipArchive $zip ) : String[] Create a list of files. These are the files that will actuall be unpacked to the Themes folder.
isWritable ( ) : boolean Do we have write rights to the modules folders?
loadForm ( ) Create a form and its elements.
validateForm ( ) Validate a submitted form and process it.

Описание методов

execute() публичный Метод

Execute the action.
public execute ( )