PHP 클래스 Backend\Modules\Extensions\Actions\UploadTheme

It will install a theme via a compressed zip file.
상속: extends Backend\Core\Engine\Base\ActionAdd
파일 보기 프로젝트 열기: forkcms/forkcms

공개 메소드들

메소드 설명
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 ( )