private static function GetUpperContentGroup(Content $content)
    {
        if ($content->GetPageContent())
        {
            return self::FindPageGroup($content->GetPageContent()->GetPage());
        }
        else if ($content->GetLayoutContent())
        {
            return $content->GetLayoutContent()->
                        GetArea()->GetLayout()->GetUserGroup();
        }
        else if ($content->GetContainerContent())
        {
            return $content->GetContainerContent()->
                        GetContainer()->GetUserGroup();
        }
        return null;
    }
private static function GetUpperContentGroup(Content $content)
    {
        if ($content->GetPageContent())
        {
            return self::FindPageGroup($content->GetPageContent()->GetPage());
        }
        else if ($content->GetLayoutContent())
        {
            return $content->GetLayoutContent()->
                        GetArea()->GetLayout()->GetUserGroup();
        }
        else if ($content->GetContainerContent())
        {
            return $content->GetContainerContent()->
                        GetContainer()->GetUserGroup();
        }
        return null;
    }
private static function GetUpperContentGroup ( Content $ content ) { if ( $ content -> GetPageContent ( ) ) { return self :: FindPageGroup ( $ content -> GetPageContent ( ) -> GetPage ( ) ) ; } else if ( $ content -> GetLayoutContent ( ) ) { return $ content -> GetLayoutContent ( ) -> GetArea ( ) -> GetLayout ( ) -> GetUserGroup ( ) ; } else if ( $ content -> GetContainerContent ( ) ) { return $ content -> GetContainerContent ( ) -> GetContainer ( ) -> GetUserGroup ( ) ; } return null ; }
Gets the upper countent user group
@param Content $content The content
@return Usergroup Gets the content rights of the upper, containing element (layout, page, container)
Gets the upper countent user group