PHP Class Backend\Modules\Extensions\Actions\UploadModule

It will install a module 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
extractPrefix ( $file ) : string Try to extract a prefix if a module has been zipped with unexpected paths.
installModule ( ) : string Process the zip-file & install the module
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 ( )