protected function setNonExistent($nonexistent)
    {
        if ($nonexistent) {
            $translatedNonexistent = [];
            foreach($nonexistent as $right=>$values) {
                foreach($values as $key=>$value) {
                    if ($key == 'menu') {
                        continue;
                    }
                    $translatedNonexistent[$right][$this->_(ucfirst($key))] = $value;
                }
            }

            $this->indexParameters['tableTitle']  = $this->_('Assigned but nonexistent privileges');
            $this->indexParameters['tableData']   = $translatedNonexistent;
            $this->indexParameters['tableNested'] = true;

            $this->indexStopSnippets[] = 'Generic\\DataTableSnippet';
        }
    }
protected function setNonExistent($nonexistent)
    {
        if ($nonexistent) {
            $translatedNonexistent = [];
            foreach($nonexistent as $right=>$values) {
                foreach($values as $key=>$value) {
                    if ($key == 'menu') {
                        continue;
                    }
                    $translatedNonexistent[$right][$this->_(ucfirst($key))] = $value;
                }
            }

            $this->indexParameters['tableTitle']  = $this->_('Assigned but nonexistent privileges');
            $this->indexParameters['tableData']   = $translatedNonexistent;
            $this->indexParameters['tableNested'] = true;

            $this->indexStopSnippets[] = 'Generic\\DataTableSnippet';
        }
    }
protected function setNonExistent ( $ nonexistent ) { if ( $ nonexistent ) { $ translatedNonexistent = [ ] ; foreach ( $ nonexistent as $ right => $ values ) { foreach ( $ values as $ key => $ value ) { if ( $ key == 'menu' ) { continue ; } $ translatedNonexistent [ $ right ] [ $ this -> _ ( ucfirst ( $ key ) ) ] = $ value ; } } $ this -> indexParameters [ 'tableTitle' ] = $ this -> _ ( 'Assigned but nonexistent privileges' ) ; $ this -> indexParameters [ 'tableData' ] = $ translatedNonexistent ; $ this -> indexParameters [ 'tableNested' ] = true ; $ this -> indexStopSnippets [ ] = 'Generic\\DataTableSnippet' ; } }
Set assigned but nonexistent privileges and a snippet at the bottom of the page
@param array $nonexistent list of assigned but nonexistent privileges
Set assigned but nonexistent privileges and a snippet at the bottom of the page