2 namespace TYPO3\CMS\Core\Compatibility;
56 return $this->packageManager->isPackageActive($offset);
69 $package = $this->packageManager->getPackage($offset);
70 $packageKey = $package->getPackageKey();
71 if (!isset($this->loadedExtensionArrayElementCache[$packageKey])) {
74 return $this->loadedExtensionArrayElementCache[$packageKey];
88 throw new \InvalidArgumentException(
'The array $GLOBALS[\'TYPO3_LOADED_EXT\'] may not be modified.', 1361915596);
101 throw new \InvalidArgumentException(
'The array $GLOBALS[\'TYPO3_LOADED_EXT\'] may not be modified.', 1361915610);
112 return serialize($this->loadedExtensionArrayElementCache);
124 $this->loadedExtensionArrayElementCache =
unserialize($serialized);
135 return count($this->packageManager->getActivePackages());
147 return $this->
offsetGet($this->iteratorPosition);
158 $packageKeys = array_keys($this->packageManager->getActivePackages());
159 $position = array_search($this->iteratorPosition, $packageKeys);
160 if (isset($packageKeys[$position + 1])) {
161 $this->iteratorPosition = $packageKeys[$position + 1];
163 $this->iteratorPosition = null;
197 $keys = array_keys($this->packageManager->getActivePackages());
198 $this->iteratorPosition = array_shift($keys);
208 $this->loadedExtensionArrayElementCache = array();
219 return $this->packageManager !== null;
228 function ($loadedExtElement) {
229 return $loadedExtElement->toArray();
231 iterator_to_array($this)