本文整理汇总了PHP中Helper::removeAction方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::removeAction方法的具体用法?PHP Helper::removeAction怎么用?PHP Helper::removeAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper
的用法示例。
在下文中一共展示了Helper::removeAction方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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();
}
示例2: 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');
}
示例3: 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');
}
示例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
/**
* 禁用插件方法,如果禁用失败,直接抛出异常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('likes');
$delFields = Typecho_Widget::widget('Widget_Options')->plugin('TeStat')->delFields;
if ($delFields) {
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
$db->query('ALTER TABLE `' . $prefix . 'contents` DROP `viewsNum`;');
$db->query('ALTER TABLE `' . $prefix . 'contents` DROP `likesNum`;');
}
}
示例6: 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;
}
示例7: deactivate
/**
* 禁用插件方法,如果禁用失败,直接抛出异常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('thumbnail');
}
示例8: 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');
}
示例9: deactivate
/**
* 禁用插件方法,如果禁用失败,直接抛出异常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('tools');
Helper::removeRoute('sitemap');
}
示例10: deactivate
/**
* 禁用插件方法,如果禁用失败,直接抛出异常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('comment-to-mail');
}
示例11: 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');
}
示例12: deactivate
/**
* 禁用插件方法,如果禁用失败,直接抛出异常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('typexport');
Helper::removePanel(1, 'TypExport/panel.php');
}
示例13: deactivate
/**
* 禁用duoshuo方法,如果禁用失败,直接抛出异常
*
* @static
* @access public
* @return void
* @throws Typecho_Plugin_Exception
*/
public static function deactivate()
{
Helper::removeAction('duoshuo-edit');
Helper::removeRoute('DuoShuoSync');
Helper::removePanel(3, 'Duoshuo/manage-duoshuo.php');
}
示例14: 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");
}