コード例 #1
0
function notifications_referentiel_edition($matiere_id, $notification_contenu)
{
    $abonnement_ref = 'referentiel_edition';
    $listing_profs = DB_STRUCTURE_REFERENTIEL::DB_recuperer_autres_professeurs_matiere($matiere_id, $_SESSION['USER_ID']);
    if ($listing_profs) {
        $listing_abonnes = DB_STRUCTURE_NOTIFICATION::DB_lister_destinataires_listing_id($abonnement_ref, $listing_profs);
        if ($listing_abonnes) {
            $tab_abonnes = explode(',', $listing_abonnes);
            foreach ($tab_abonnes as $abonne_id) {
                DB_STRUCTURE_NOTIFICATION::DB_modifier_log_attente($abonne_id, $abonnement_ref, 0, NULL, $notification_contenu, 'compléter', FALSE);
            }
        }
    }
}