private function getAllExtensionManifests($directory) { $returnValue = array(); $dir = new DirectoryIterator($directory); foreach ($dir as $fileinfo) { if ($fileinfo->isDir() && !$fileinfo->isDot() && substr($fileinfo->getBasename(), 0, 1) != '.') { $extId = $fileinfo->getBasename(); $manifestPath = $fileinfo->getRealPath() . DIRECTORY_SEPARATOR . 'manifest.php'; if (file_exists($manifestPath)) { $manifest = new common_ext_Manifest($manifestPath); if ($extId == $manifest->getName()) { $returnValue[$extId] = $manifest; } else { throw new common_exception_InconsistentData('Manifest name "' . $manifest->getName() . '" does not match containing directory "' . $extId . '"'); } } } } return $returnValue; }
/** * returns the name of the extension * * @access public * @author firstname and lastname of author, <*****@*****.**> * @return string */ public function getName() { return (string) $this->manifest->getName(); }
/** * returns the name of the extension * * @access public * @author firstname and lastname of author, <*****@*****.**> * @return string */ public function getName() { $returnValue = (string) ''; $returnValue = $this->manifest->getName(); return (string) $returnValue; }