protected function getZipArchivePath($type = null) { $paths = array('readme' => 'readme', 'optional' => '4_optional_items', 'remove' => '5_uninstall'); if ($type !== null) { if (array_key_exists($type, $paths)) { return $paths[$type]; } return parent::getZipArchivePath($type); } return array_merge(parent::getZipArchivePath(), $paths); }
protected function getZipArchivePath($type = null) { $paths = array('install' => '3_install', 'remove' => '4_uninstall'); $paths = array_merge(parent::getZipArchivePath(), $paths); if ($type !== null) { if (array_key_exists($type, $paths)) { return $paths[$type]; } return ''; } return $paths; }