check_module('message'); switch ($current_alert) { case 'circ': $this->check_module('resa'); $this->check_module('expl_todo'); $this->check_module('empr'); $this->check_module('empr_categ'); if($pmb_scan_request_activate) { $this->check_module('scan_request'); } //pour les alertes de transferts if ($pmb_transferts_actif && (SESSrights & TRANSFERTS_AUTH)) { $this->check_module('transferts'); } break; case 'catalog': $this->check_module('tag'); $this->check_module('sugg'); $this->check_module('serialcirc'); $this->check_module('bulletinage'); if ($pmb_contribution_area_activate){ $this->check_module('contribution'); } if ($sphinx_active) { $this->check_module('sphinx'); } if($pmb_pnb_param_login) { $this->check_module('pnb'); } break; case 'acquisition': $this->check_module('sugg'); break; case 'demandes': $this->check_module('demandes'); break; } } protected function check_module($name) { $classname = 'alerts_'.$name; $this->load_class('/alerts/'.$classname.'.class.php'); $instance = new $classname(); $data = $instance->get_data(); if(!empty($data)) { foreach ($data as $tab) { $this->set_module_name($tab['module']); $this->add_tab($tab['section'], $tab['categ'], $tab['label_code'], $tab['sub'], $tab['url_extra'], $tab['number']); } } } public function get_display_tab($object) { return "