本文整理匯總了PHP中Helper::removePanel方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper::removePanel方法的具體用法?PHP Helper::removePanel怎麽用?PHP Helper::removePanel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Helper
的用法示例。
在下文中一共展示了Helper::removePanel方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
$installDb = Typecho_Db::get();
$installDb->query("DROP TABLE IF EXISTS " . $installDb->getPrefix() . self::$tableName);
Helper::removeAction('mostcache');
Helper::removePanel(1, 'MostCache/panel.php');
}
示例2: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('contribute');
Helper::removePanel(3, 'Contribute/panel.php');
self::dropTable();
self::hiddenPage();
}
示例3: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeRoute('routeName');
Helper::removeAction('actionName');
Helper::removePanel(1, 'MyPlugin/panel.php');
Helper::removeMenu('menuName');
}
示例4: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeRoute('share_note');
Helper::removeAction('notes-manage');
// Helper::removePanel(2, 'Notes/add-note.php');
Helper::removePanel(3, 'Notes/manage-notes.php');
self::uninstall();
}
示例5: deactivate
public static function deactivate()
{
$config = Typecho_Widget::widget('Widget_Options')->plugin('Access');
$isDrop = $config->isDrop;
if ($isDrop == 0) {
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
$db->query("DROP TABLE `" . $prefix . "access`", Typecho_Db::WRITE);
}
Helper::removePanel(1, self::$panel);
}
示例6: deactivate
public static function deactivate()
{
$config = Typecho_Widget::widget('Widget_Options')->plugin('Robots');
$isdrop = $config->droptable;
if ($isdrop == 0) {
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
$db->query("DROP TABLE `" . $prefix . "logs`", Typecho_Db::WRITE);
}
Helper::removePanel(1, 'Robots/Logs.php');
}
示例7: uninstall
public static function uninstall()
{
//刪除路由
Helper::removeRoute('baidu_sitemap');
Helper::removeRoute('baidu_sitemap_advanced');
Helper::removePanel(1, 'BaiduSubmit/Logs.php');
//獲取配置,是否刪除數據表
if (Helper::options()->plugin('BaiduSubmit')->delete == 1) {
return self::remove_table();
}
}
示例8: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
include 'helpers/helpers.php';
//刪除下載臨時目錄
$tempDir = __TYPECHO_ROOT_DIR__ . __TYPECHO_PLUGIN_DIR__ . self::$tempPath;
if (file_exists($tempDir) and (!delete_files($tempDir) or !@rmdir($tempDir))) {
throw new Typecho_Plugin_Exception('無法刪除插件下載臨時目錄.');
}
//移除菜單和路由
Helper::removePanel(1, 'AppStore/market.php');
Helper::removeRoute('app.store.market');
Helper::removeRoute('app.store.install');
}
示例9: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('DomainTheme-edit');
Helper::removePanel(1, 'DomainTheme/manage-domaintheme.php');
//刪除登錄記錄的表格
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
try {
$sql = "drop table " . $prefix . 'domaintheme';
$db->query($sql);
} catch (Typecho_Db_Exception $e) {
throw new Typecho_Plugin_Exception('刪除登錄數據表失敗');
}
return true;
}
示例10: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('kgsoft_dbbak');
Helper::removePanel(1, "TEDbBak/MainView.php");
Helper::removeRoute("forbiddenUrl");
}
示例11: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('wordpress-to-typecho');
Helper::removePanel(1, 'WordpressToTypecho/panel.php');
}
示例12: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('huifeng-members-edit');
Helper::removePanel(3, 'HuifengMembers/manage-members.php');
}
示例13: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction(self::$action);
Helper::removePanel(1, self::$panel);
}
示例14: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('typexport');
Helper::removePanel(1, 'TypExport/panel.php');
}
示例15: deactivate
/**
* 禁用插件方法,如果禁用失敗,直接拋出異常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removePanel(0, 'UEditor/ueditor/ueditor.config.js.php');
}