コード例 #1
0
 protected function _getPackageDetails($file)
 {
     $installer = new Installer_Model_Installer();
     $installer->parse($file);
     $package = $installer->getPackageDetails();
     $path = pathinfo($file);
     $filename = $path["filename"] . "." . $path["extension"];
     return array("success" => 1, "filename" => base64_encode($filename), "package_details" => array("name" => $this->_("%s Update", $package->getName()), "version" => $package->getVersion(), "description" => $package->getDescription()));
 }