TYPO3
7.6
|
Public Member Functions | |
download (PackageInterface $package, $path) | |
getLocalChanges (PackageInterface $package, $path) | |
decodeTerExchangeData ($stream) | |
constructEmConf (array $extensionData) | |
extensionMD5array (array $filesArray) | |
fixEmConf (array $emConf) | |
stringToDependency ($dependency) | |
Static Public Member Functions | |
static | dependencyToString ($dependency, $type= 'depends') |
Protected Member Functions | |
extract ($file, $path) | |
getEmConfMetaData ($path) | |
extractFilesArrayFromExtensionData (array $extensionData) | |
extractDirectoriesFromExtensionData (array $files) | |
createDirectoriesForExtensionFiles (array $directories, $rootPath) | |
createNestedDirectory ($directory) | |
writeExtensionFiles (array $files, $rootPath) | |
writeEmConf (array $extensionData, $path) | |
convertDependencies ($dependencies) | |
Protected Attributes | |
$package | |
TYPO3 CMS Extension Downloader Extracts the TYPO3 CMS T3X Format
Definition at line 37 of file T3xDownloader.php.
constructEmConf | ( | array | $extensionData | ) |
Generates the content for the ext_emconf.php file
Definition at line 263 of file T3xDownloader.php.
References T3xDownloader\extensionMD5array(), and T3xDownloader\fixEmConf().
Referenced by T3xDownloader\writeEmConf().
|
protected |
Convert dependencies from TER format to EM_CONF format
string | $dependencies | serialized dependency array |
Definition at line 412 of file T3xDownloader.php.
|
protected |
Loops over an array of directories and creates them in the given root path It also creates nested directory structures
array | $directories | |
string | $rootPath |
Definition at line 191 of file T3xDownloader.php.
References T3xDownloader\createNestedDirectory().
Referenced by T3xDownloader\extract().
|
protected |
Wrapper for utility method to create directory recusively
\RuntimeException |
string | $directory | Absolute path |
Definition at line 203 of file T3xDownloader.php.
Referenced by T3xDownloader\createDirectoriesForExtensionFiles().
decodeTerExchangeData | ( | $stream | ) |
$stream |
\RuntimeException |
Definition at line 135 of file T3xDownloader.php.
Referenced by T3xDownloader\extract().
|
static |
Checks whether the passed dependency is TER2-style (array) and returns a single string for displaying the dependencies.
It leaves out all version numbers and the "php" and "typo3" dependencies, as they are implicit and of no interest without the version number.
mixed | $dependency | Either a string or an array listing dependencies. |
string | $type | The dependency type to list if $dep is an array |
Definition at line 370 of file T3xDownloader.php.
Referenced by T3xDownloader\fixEmConf().
download | ( | PackageInterface | $package, |
$path | |||
) |
Definition at line 47 of file T3xDownloader.php.
extensionMD5array | ( | array | $filesArray | ) |
Creates a MD5-hash array over the current files in the extension
array | $filesArray |
Definition at line 292 of file T3xDownloader.php.
Referenced by T3xDownloader\constructEmConf().
|
protected |
string | $file | path to the archive file |
string | $path | path where the extension should be extracted to |
Definition at line 57 of file T3xDownloader.php.
References T3xDownloader\createDirectoriesForExtensionFiles(), T3xDownloader\decodeTerExchangeData(), T3xDownloader\extractDirectoriesFromExtensionData(), T3xDownloader\extractFilesArrayFromExtensionData(), T3xDownloader\writeEmConf(), and T3xDownloader\writeExtensionFiles().
|
protected |
Extract needed directories from given extensionDataFilesArray
array | $files |
Definition at line 172 of file T3xDownloader.php.
Referenced by T3xDownloader\extract().
|
protected |
Returns the "FILES" part from the data array
array | $extensionData |
Definition at line 162 of file T3xDownloader.php.
Referenced by T3xDownloader\extract().
fixEmConf | ( | array | $emConf | ) |
Fix the em conf - Converts old / ter em_conf format to new format
array | $emConf |
Definition at line 312 of file T3xDownloader.php.
References T3xDownloader\dependencyToString(), elseif, and T3xDownloader\stringToDependency().
Referenced by T3xDownloader\constructEmConf().
|
protected |
string | $path |
Definition at line 116 of file T3xDownloader.php.
References $EM_CONF.
Referenced by T3xDownloader\getLocalChanges(), and T3xDownloader\writeEmConf().
getLocalChanges | ( | PackageInterface | $package, |
$path | |||
) |
Definition at line 76 of file T3xDownloader.php.
References $EM_CONF, and T3xDownloader\getEmConfMetaData().
stringToDependency | ( | $dependency | ) |
Checks whether the passed dependency is TER-style (string) or TER2-style (array) and returns a single string for displaying the dependencies.
It leaves out all version numbers and the "php" and "typo3" dependencies, as they are implicit and of no interest without the version number.
mixed | $dependency | Either a string or an array listing dependencies. |
Definition at line 395 of file T3xDownloader.php.
Referenced by T3xDownloader\fixEmConf().
|
protected |
array | $extensionData | |
string | $path | path of the extension folder |
Definition at line 243 of file T3xDownloader.php.
References T3xDownloader\constructEmConf(), and T3xDownloader\getEmConfMetaData().
Referenced by T3xDownloader\extract().
|
protected |
Loops over an array of files and writes them to the given rootPath
array | $files | |
string | $rootPath |
Definition at line 225 of file T3xDownloader.php.
References $filename.
Referenced by T3xDownloader\extract().
|
protected |
Definition at line 42 of file T3xDownloader.php.