* Remove useless code.

This commit is contained in:
sunguangming
2023-12-26 17:10:30 +08:00
parent c465283a1a
commit 35c345c83b
2 changed files with 0 additions and 67 deletions
-52
View File
@@ -1619,58 +1619,6 @@ class InstanceModel extends model
return $newList;
}
/*
* Get instance switcher.
*
* @param object $instance
* @access public
* @return string
*/
public function getSwitcher($instance)
{
$instanceLink = helper::createLink('instance', 'view', "id=$instance->id");
$output = "<div class='btn-group header-btn'>";
$output .= html::a($instanceLink, $instance->appName, '', 'class="btn"');
$output .= "</div>";
return $output;
}
/**
* Get switcher of custom installation page of store.
*
* @param object $app
* @access public
* @return array
*/
public function getInstallSwitcher($app)
{
$output = $this->loadModel('store')->getAppViewSwitcher($app);
$output .= "<div class='btn-group header-btn'>";
$output .= html::a(helper::createLink('instance', 'install', "id=$app->id"), $this->lang->instance->installApp, '', 'class="btn"');
$output .= "</div>";
return $output;
}
/**
* Get switcher of custom installation page of store.
*
* @param object $app
* @access public
* @return array
*/
public function getCustomInstallSwitcher($app)
{
$output = $this->loadModel('store')->getAppViewSwitcher($app);
$output .= "<div class='btn-group header-btn'>";
$output .= html::a(helper::createLink('instance', 'custominstall', "id=$app->id"), $this->lang->instance->customInstall, '', 'class="btn"');
$output .= "</div>";
return $output;
}
/**
* Get senior app list. The instance can be switched to senior App.
*