public function formatLongLine(array $privileges)
    {
        $output     = \MUtil_Html::create('div');

        if (count($privileges)) {
            $privileges = array_combine($privileges, $privileges);
            foreach ($this->getUsedPrivileges() as $privilege => $description) {
                if (isset($privileges[$privilege])) {
                    if (count($output) > 11) {
                        $output->append('...');
                        return $output;
                    }
                    if (\MUtil_String::contains($description, '<br/>')) {
                        $description = substr($description, 0, strpos($description, '<br/>') - 1);
                    }
                    $output->raw($description);
                    $output->br();
                }
            }
        }

        return $output;
    }
public function formatLongLine(array $privileges)
    {
        $output     = \MUtil_Html::create('div');

        if (count($privileges)) {
            $privileges = array_combine($privileges, $privileges);
            foreach ($this->getUsedPrivileges() as $privilege => $description) {
                if (isset($privileges[$privilege])) {
                    if (count($output) > 11) {
                        $output->append('...');
                        return $output;
                    }
                    if (\MUtil_String::contains($description, '<br/>')) {
                        $description = substr($description, 0, strpos($description, '<br/>') - 1);
                    }
                    $output->raw($description);
                    $output->br();
                }
            }
        }

        return $output;
    }
public function formatLongLine ( array $ privileges ) { $ output = \ MUtil_Html :: create ( 'div' ) ; if ( count ( $ privileges ) ) { $ privileges = array_combine ( $ privileges , $ privileges ) ; foreach ( $ this -> getUsedPrivileges ( ) as $ privilege => $ description ) { if ( isset ( $ privileges [ $ privilege ] ) ) { if ( count ( $ output ) > 11 ) { $ output -> append ( '...' ) ; return $ output ; } if ( \ MUtil_String :: contains ( $ description , '<br/>' ) ) { $ description = substr ( $ description , 0 , strpos ( $ description , '<br/>' ) - 1 ) ; } $ output -> raw ( $ description ) ; $ output -> br ( ) ; } } } return $ output ; }
Output for browsing rols

@param array $privileges
@return array
Output for browsing rols