/** * @param string $epId * @param bool $installedByDefault * @return Item */ public function getResolverItem($epId) { $action = $this->getInstallAction($epId); if ($action == Resolver::ACTION_UPGRADE) { $item = new Item($this->moduleInfos->name, true, $this->moduleInfos->version, Resolver::ACTION_UPGRADE, $this->moduleStatuses[$epId]->version); } else { $item = new Item($this->moduleInfos->name, $this->isInstalled($epId), $this->moduleInfos->version, $action); } foreach ($this->moduleInfos->dependencies as $dep) { $item->addDependency($dep['name'], $dep['version']); } $item->setProperty('component', $this); return $item; }