53 return $this->packageManager->isPackageActive($offset);
65 $package = $this->packageManager->getPackage($offset);
66 $packageKey = $package->getPackageKey();
67 if (!isset($this->loadedExtensionArrayElementCache[$packageKey])) {
70 return $this->loadedExtensionArrayElementCache[$packageKey];
83 throw new \InvalidArgumentException(
'The array $GLOBALS[\'TYPO3_LOADED_EXT\'] may not be modified.', 1361915596);
95 throw new \InvalidArgumentException(
'The array $GLOBALS[\'TYPO3_LOADED_EXT\'] may not be modified.', 1361915610);
105 return serialize($this->loadedExtensionArrayElementCache);
116 $this->loadedExtensionArrayElementCache =
unserialize($serialized);
126 return count($this->packageManager->getActivePackages());
137 return $this->
offsetGet($this->iteratorPosition);
147 $packageKeys = array_keys($this->packageManager->getActivePackages());
148 $position = array_search($this->iteratorPosition, $packageKeys);
149 if (isset($packageKeys[$position + 1])) {
150 $this->iteratorPosition = $packageKeys[$position + 1];
152 $this->iteratorPosition = NULL;
183 $keys = array_keys($this->packageManager->getActivePackages());
184 $this->iteratorPosition = array_shift($keys);
193 $this->loadedExtensionArrayElementCache = array();
203 return $this->packageManager !== NULL;
211 function($loadedExtElement) {
212 return $loadedExtElement->toArray();
214 iterator_to_array($this)
$loadedExtensionArrayElementCache
__construct(\TYPO3\CMS\Core\Package\PackageManager $packageManager)
offsetSet($offset, $value)