39 'ext_tables_static+adt.sql',
40 'ext_typoscript_constants.typoscript',
41 'ext_typoscript_setup.typoscript',
42 'ext_typoscript_constants.txt',
43 'ext_typoscript_setup.txt'
58 $this->
package = $package;
70 $pathSiteLength = strlen($pathSite);
71 $absolutePackagePath = $this->package->getPackagePath();
72 if (strpos($absolutePackagePath, $pathSite) === 0) {
73 $relativePackagePathToPathSite = substr($absolutePackagePath, $pathSiteLength);
74 $relativePackagePathToPathSiteSegments = explode(
'/', $relativePackagePathToPathSite);
77 switch (implode(
'/', array_slice($relativePackagePathToPathSiteSegments, 0, 2))) {
81 case TYPO3_mainDir .
'ext':
84 case TYPO3_mainDir .
'sysext':
87 case 'typo3temp/var/tests/test_ext':
91 if ($packageType !==
null) {
92 $this->extensionInformation[
'type'] = $packageType;
110 foreach ($this->extensionFilesToCheckFor as $fileName) {
111 $absolutePathToFile = $this->package->getPackagePath() . $fileName;
112 if (@file_exists($absolutePathToFile)) {
113 $this->extensionInformation[$fileName] = $absolutePathToFile;
126 return new \ArrayIterator($this->extensionInformation);
138 return isset($this->extensionInformation[$offset]);
150 return $this->extensionInformation[$offset];
163 throw new \InvalidArgumentException(
'The array $GLOBALS[\'TYPO3_LOADED_EXT\'] may not be modified.', 1361915115);
175 throw new \InvalidArgumentException(
'The array $GLOBALS[\'TYPO3_LOADED_EXT\'] may not be modified.', 1361915206);
186 return serialize($this->extensionInformation);
198 $this->extensionInformation =
unserialize($serialized);
209 return count($this->extensionInformation);
217 return iterator_to_array($this);