/** * Enter description here . * * * .. * * @param unknown_type $type * @param PwInstallApplication $install * @return PwError boolean */ protected function _install($type, $install) { $manifest = $install->getManifest(); if (!$this->link) { $this->link = 'index.php?m=app&app=' . $manifest->getApplication('alias'); } $dm = new PwNavDm(); $dm->setLink($this->link)->setType($type); if ($type == 'my') { $prefix = Wind::getComponent('i18n')->getMessage('ADMIN:nav.my.prefix'); $dm->setName($prefix . $manifest->getApplication('name'))->setSign($manifest->getApplication('alias')); } else { $dm->setName($manifest->getApplication('name')); } $id = $this->_navDs()->addNav($dm); if ($id instanceof PwError) { return $id; } $install->addInstallLog('nav', $id); $this->update(); file_put_contents(DATA_PATH . 'tmp/log', 'nav!', FILE_APPEND); return true; }