本文整理汇总了PHP中Group::remove_permission方法的典型用法代码示例。如果您正苦于以下问题:PHP Group::remove_permission方法的具体用法?PHP Group::remove_permission怎么用?PHP Group::remove_permission使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Group
的用法示例。
在下文中一共展示了Group::remove_permission方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __uninstall
static function __uninstall($confirm)
{
if ($confirm) {
Category::uninstallCategorize();
}
Group::remove_permission('manage_categorize');
Route::current()->remove("category/(name)/");
}
示例2: __uninstall
static function __uninstall()
{
$config = Config::current();
$config->remove("last_aggregation");
$config->remove("aggregate_every");
$config->remove("disable_aggregation");
$config->remove("aggregates");
Group::remove_permission("add_aggregate");
Group::remove_permission("edit_aggregate");
Group::remove_permission("delete_aggregate");
}
示例3: __uninstall
static function __uninstall($confirm)
{
if ($confirm) {
SQL::current()->query("DROP TABLE __comments");
}
$config = Config::current();
$config->remove("default_comment_status");
$config->remove("allowed_comment_html");
$config->remove("comments_per_page");
$config->remove("defensio_api_key");
$config->remove("auto_reload_comments");
$config->remove("enable_reload_comments");
Group::remove_permission("add_comment");
Group::remove_permission("add_comment_private");
Group::remove_permission("edit_comment");
Group::remove_permission("edit_own_comment");
Group::remove_permission("delete_comment");
Group::remove_permission("delete_own_comment");
Group::remove_permission("code_in_comments");
}
示例4: __uninstall
static function __uninstall($confirm)
{
if ($confirm) {
SQL::current()->query("DROP TABLE __milestones");
SQL::current()->query("DROP TABLE __tickets");
SQL::current()->query("DROP TABLE __revisions");
}
Group::remove_permission("add_milestone");
Group::remove_permission("add_ticket");
Group::remove_permission("add_revision");
Group::remove_permission("edit_milestone");
Group::remove_permission("edit_ticket");
Group::remove_permission("edit_revision");
Group::remove_permission("edit_own_ticket");
Group::remove_permission("edit_own_revision");
Group::remove_permission("delete_milestone");
Group::remove_permission("delete_ticket");
Group::remove_permission("delete_revision");
Group::remove_permission("delete_own_ticket");
Group::remove_permission("delete_own_revision");
Group::remove_permission("code_in_revisions");
}
示例5: __uninstall
static function __uninstall()
{
Group::remove_permission("submit_article");
Route::current()->remove("submit/");
}
示例6: uninstall
static function uninstall()
{
SQL::current()->query("DROP TABLE __likes");
Group::remove_permission("like_post");
Group::remove_permission("unlike_post");
Config::current()->remove("module_like");
}