Extension file fetcher for upload ZIP file.
Must work for all extension types: plugins, theme, question theme, etc.
since | 2018-09-25 |
---|---|
author | LimeSurvey GmbH |
package | Default |
abort(): void
checkFileSizeError(): void
todo | Duplicate from themes.php. |
---|---|
Throws |
|
checkZipBomb(): void
clearTmpdir(): void
extractZipFile(string $tempdir): void
string
fetch(): void
getConfig(): \ExtensionConfig
getConfigFromDir(string $tempdir): \ExtensionConfig|null
getTempdir(): string
string
move(string $destdir): boolean
string
boolean
recurseCopy(string $src,string $dest): boolean
see | https://stackoverflow.com/questions/2050859/copy-entire-contents-of-a-directory-to-another-using-php |
---|---|
todo | Inject FileIO wrapper and add unit-test |
string
string
boolean
setSource(string $source): void
Can be ZIP file name, git repo URL, folder name, etc.
string
setUnzipFilter(string $filterName): void
string
filterName :string
var |
---|
string