id) $acces_m = $this->dom_1->getRights($PMBuserid,$this->record_id,8); if($acces_m == 0) { $this->error_message = 'mod_noti_error'; } return $acces_m; } public function proceed_expl_delete() { global $msg; $query = "select 1 from pret where pret_idexpl='".$this->id."' "; $result = pmb_mysql_query($query); if (pmb_mysql_num_rows($result)) { // gestion erreur prêt en cours error_message($msg[416], $msg['impossible_expl_del_pret'], 1, $this->get_permalink()); } else { exemplaire::del_expl($this->id); print "
".$msg['maj_encours']."
"; $id_form = md5(microtime()); print $this->get_redirection_form(); } } protected function get_permalink($id=0) { if(!$id) $id = $this->record_id; return notice::get_permalink($id); } public function set_record_id($record_id=0) { $this->record_id = (int) $record_id; } }