Subversion Repositories Applications.gtt

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
class GttCtrlActionMenu extends aControlleurAction {

        public function __construct(Registre $Registre)
        {
                $Registre->ajouterEspace('Menu', 'zone_menu');
                $Registre->ajouterSquelette('zone_menu', 'menu.tpl.html');
        }

        public function executer()
    {
        $aso_menu = array();

        // Nous vérifions les droits de l'utilisateur.
        $aso_menu['bool_admin'] = false;
                if ($GLOBALS['_GTT_']['Utilisateur']->getMarkAdmin()) {
                        $aso_menu['bool_admin'] = true;
                }

        //echo '<pre>'.print_r($aso_menu, true).'</pre>';
                $this->getRegistre()->ajouterDonnee('zone_menu', $aso_menu);
    }
}
?>