本文整理匯總了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");
}