static function systemRepositoryInformation()
 {
     $ini = eZINI::instance('package.ini');
     $vendor = $ini->variable('RepositorySettings', 'Vendor');
     return eZPackage::repositoryInformation($vendor);
 }
Exemple #2
0
 static function create($name, $parameters = array(), $repositoryPath = false, $repositoryID = false)
 {
     $parameters['name'] = $name;
     $handler = new eZPackage($parameters, $repositoryPath);
     // New packages always use local repository
     if ($repositoryID === false) {
         $repositoryID = 'local';
     }
     $repositoryInformation = $handler->repositoryInformation($repositoryID);
     if ($repositoryPath !== false) {
         $repositoryInformation['path'] = $repositoryPath;
     }
     $handler->setCurrentRepositoryInformation($repositoryInformation);
     return $handler;
 }