Documentation

GetGroupPerms

string
CBlogUserGroup::GetGroupPerms(
 int    ID,
 int    blogID,
 int    postID = 0,
 string permsType = BLOG_PERMS_POST
);

The method returns the group ID access permission level. Non-static method.

Method parameters

ParameterDescription
ID Blog user group ID.
blogID Blog ID.
postID Blog post ID.
Optional. By default it is 0 - by default, access permission level, specified in the blog settings is returned.
permsType Type of access. Possible values:
  • BLOG_PERMS_POST - blog post access permissions;
  • BLOG_PERMS_COMMENT - access permission for blog post comments.
Optional. By default BLOG_PERMS_POST - access permission level for blog posts is returned.

Returned value

The method returns access permission level for blog user group for blog posts and comments.

See Also

Examples of use

<?
$perms = CBlogUserGroup::GetGroupPerms(3, 1);
echo "User group with ID=3 has the following access permission for posts at the blog 1: ".$perms;
?>


© «Bitrix24», 2001-2024
Up