PHP Class Backend\Modules\Extensions\Actions\UploadTheme

It will install a theme via a compressed zip file.
Inheritance: extends Backend\Core\Engine\Base\ActionAdd
Datei anzeigen Open project: forkcms/forkcms

Public Methods

Method Description
execute ( ) Execute the action.

Private Methods

Method Description
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.

Method Details

execute() public method

Execute the action.
public execute ( )