SetPostPerms
void CBlogPost::SetPostPerms( int ID, array arPerms, string permsType = BLOG_PERMS_POST );
The method defines level of access permissions to a blog post and comments for the blog post withID. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | Blog post ID. |
arPerms | Array of the array("BlogUserGroupID" => "Permissions"[, ...]) type , where BlogUserGroupID - user group ID for the current blog, Permissions - level of access permissions. Optional parameter. |
permsType | Type of access permissions level, which must be specified. Possible values:
|
See Also
Examples of use
<? $ID = 1; $arPerms = Array( "1" => BLOG_PERMS_READ, "2" => BLOG_PERMS_WRITE ); CBlogPost::SetPostPerms($ID, $arPerms, BLOG_PERMS_COMMENT); ?>
© «Bitrix24», 2001-2024