public function addCommSetupMenu($label)
    {
        $setup = $this->addContainer($label);

        // AUTOMATIC COMMUNICATION CONTROLLER
        $page = $setup->addBrowsePage($this->_('Automatic mail'), 'pr.comm.job', 'comm-job');
        $page->addButtonOnly($this->_('Turn Automatic Mail Jobs OFF'), 'pr.comm.job', 'cron', 'cron-lock');
        $page->addButtonOnly($this->_('Monitor'), 'pr.comm.job', 'comm-job', 'monitor');

        $page->addPage($this->_('Run all'), 'pr.cron.job', 'comm-job', 'execute-all');
        $show = $page->findItem(array('controller' => 'comm-job', 'action' => 'show'));
        $show->addPage($this->_('Preview'), 'pr.cron.job', 'comm-job', 'preview')
                ->setModelParameters(1);
        $show->addPage($this->_('Run'), 'pr.cron.job', 'comm-job', 'execute')
                ->setModelParameters(1);

        $ajaxPage = $this->addPage($this->_('Round Selection'), 'pr.comm.job', 'comm-job', 'roundselect', array('visible' => false));
        $ajaxPage = $this->addPage($this->_('Sort jobs'), 'pr.comm.job.edit', 'comm-job', 'sort', array('visible' => false));

        // MAIL SERVER CONTROLLER
        $page = $setup->addBrowsePage($this->_('Servers'), 'pr.mail.server', 'mail-server');

        // COMMUNICATION TEMPLATE CONTROLLER
        $setup->addBrowsePage($this->_('Templates'), 'pr.comm.template', 'comm-template');

        // COMMUNICATION ACTIVITY CONTROLLER
        //$setup->addBrowsePage();
        $page = $setup->addPage($this->_('Communication log'), 'pr.mail.log', 'mail-log');
        $page->addAutofilterAction();
        $page->addExportAction();
        $page->addShowAction();

        return $setup;
    }
public function addCommSetupMenu($label)
    {
        $setup = $this->addContainer($label);

        // AUTOMATIC COMMUNICATION CONTROLLER
        $page = $setup->addBrowsePage($this->_('Automatic mail'), 'pr.comm.job', 'comm-job');
        $page->addButtonOnly($this->_('Turn Automatic Mail Jobs OFF'), 'pr.comm.job', 'cron', 'cron-lock');
        $page->addButtonOnly($this->_('Monitor'), 'pr.comm.job', 'comm-job', 'monitor');

        $page->addPage($this->_('Run all'), 'pr.cron.job', 'comm-job', 'execute-all');
        $show = $page->findItem(array('controller' => 'comm-job', 'action' => 'show'));
        $show->addPage($this->_('Preview'), 'pr.cron.job', 'comm-job', 'preview')
                ->setModelParameters(1);
        $show->addPage($this->_('Run'), 'pr.cron.job', 'comm-job', 'execute')
                ->setModelParameters(1);

        $ajaxPage = $this->addPage($this->_('Round Selection'), 'pr.comm.job', 'comm-job', 'roundselect', array('visible' => false));
        $ajaxPage = $this->addPage($this->_('Sort jobs'), 'pr.comm.job.edit', 'comm-job', 'sort', array('visible' => false));

        // MAIL SERVER CONTROLLER
        $page = $setup->addBrowsePage($this->_('Servers'), 'pr.mail.server', 'mail-server');

        // COMMUNICATION TEMPLATE CONTROLLER
        $setup->addBrowsePage($this->_('Templates'), 'pr.comm.template', 'comm-template');

        // COMMUNICATION ACTIVITY CONTROLLER
        //$setup->addBrowsePage();
        $page = $setup->addPage($this->_('Communication log'), 'pr.mail.log', 'mail-log');
        $page->addAutofilterAction();
        $page->addExportAction();
        $page->addShowAction();

        return $setup;
    }
public function addCommSetupMenu ( $ label ) { $ setup = $ this -> addContainer ( $ label ) ; // AUTOMATIC COMMUNICATION CONTROLLER $ page = $ setup -> addBrowsePage ( $ this -> _ ( 'Automatic mail' ) , 'pr.comm.job' , 'comm-job' ) ; $ page -> addButtonOnly ( $ this -> _ ( 'Turn Automatic Mail Jobs OFF' ) , 'pr.comm.job' , 'cron' , 'cron-lock' ) ; $ page -> addButtonOnly ( $ this -> _ ( 'Monitor' ) , 'pr.comm.job' , 'comm-job' , 'monitor' ) ; $ page -> addPage ( $ this -> _ ( 'Run all' ) , 'pr.cron.job' , 'comm-job' , 'execute-all' ) ; $ show = $ page -> findItem ( array ( 'controller' => 'comm-job' , 'action' => 'show' ) ) ; $ show -> addPage ( $ this -> _ ( 'Preview' ) , 'pr.cron.job' , 'comm-job' , 'preview' ) -> setModelParameters ( 1 ) ; $ show -> addPage ( $ this -> _ ( 'Run' ) , 'pr.cron.job' , 'comm-job' , 'execute' ) -> setModelParameters ( 1 ) ; $ ajaxPage = $ this -> addPage ( $ this -> _ ( 'Round Selection' ) , 'pr.comm.job' , 'comm-job' , 'roundselect' , array ( 'visible' => false ) ) ; $ ajaxPage = $ this -> addPage ( $ this -> _ ( 'Sort jobs' ) , 'pr.comm.job.edit' , 'comm-job' , 'sort' , array ( 'visible' => false ) ) ; // MAIL SERVER CONTROLLER $ page = $ setup -> addBrowsePage ( $ this -> _ ( 'Servers' ) , 'pr.mail.server' , 'mail-server' ) ; // COMMUNICATION TEMPLATE CONTROLLER $ setup -> addBrowsePage ( $ this -> _ ( 'Templates' ) , 'pr.comm.template' , 'comm-template' ) ; // COMMUNICATION ACTIVITY CONTROLLER //$setup->addBrowsePage(); $ page = $ setup -> addPage ( $ this -> _ ( 'Communication log' ) , 'pr.mail.log' , 'mail-log' ) ; $ page -> addAutofilterAction ( ) ; $ page -> addExportAction ( ) ; $ page -> addShowAction ( ) ; return $ setup ; }
Add a Mail menu tree to the menu

@param string $label
@param array $other
@return \Gems_Menu_SubMenuItem
Add a Mail menu tree to the menu