CBlogPost :: getFullGroupRoleSet: Bitrix method

      
<?php 
//  CBlogPost :: getFullGroupRoleSet()
//  /dist/bitrix/modules/blog/general/blog_post.php:1311

    
public static function getFullGroupRoleSet($role ""$prefix "")
    {
        
$result = array();

        switch(
$role)
        {
            case 
SONET_ROLES_ALL:
                
$result[] = 'O'.$prefix.SONET_ROLES_ALL;
                
$result[] = 'O'.$prefix.SONET_ROLES_AUTHORIZED;
                
$result[] = $prefix.SONET_ROLES_USER;
                
$result[] = $prefix.SONET_ROLES_MODERATOR;
                
$result[] = $prefix.SONET_ROLES_OWNER;
                break;
            case 
SONET_ROLES_AUTHORIZED:
                
$result[] = 'O'.$prefix.SONET_ROLES_AUTHORIZED;
                
$result[] = $prefix.SONET_ROLES_USER;
                
$result[] = $prefix.SONET_ROLES_MODERATOR;
                
$result[] = $prefix.SONET_ROLES_OWNER;
                break;
            case 
SONET_ROLES_USER:
                
$result[] = $prefix.SONET_ROLES_USER;
                
$result[] = $prefix.SONET_ROLES_MODERATOR;
                
$result[] = $prefix.SONET_ROLES_OWNER;
                break;
            case 
SONET_ROLES_MODERATOR:
                
$result[] = $prefix.SONET_ROLES_MODERATOR;
                
$result[] = $prefix.SONET_ROLES_OWNER;
                break;
            case 
SONET_ROLES_OWNER:
                
$result[] = $prefix.SONET_ROLES_OWNER;
                break;
        }

        return 
$result;
    }