public function testIsEmpty()
 {
     $col = new PropelCollection();
     $this->assertTrue($col->isEmpty(), 'isEmpty() returns true on an empty collection');
     $data = array('bar1', 'bar2', 'bar3');
     $col = new PropelCollection($data);
     $this->assertFalse($col->isEmpty(), 'isEmpty() returns false on a non empty collection');
 }
	    echo $notif->getAdresse()->getDescriptionSurUneLigne();
	}
	echo '</td>';
	echo '<td>Statut '.$notif->getStatutEnvoi().'</td>';
	echo '<td>'.$notif->getDateEnvoi('d/m/Y H:i').'</td>';
	echo '<td>';
	if ($notif->getAbsenceEleveTraitement() != null) {
	    echo 'Traitement '.$notif->getAbsenceEleveTraitement()->getDescription();
	}
	echo '</td>';
	echo '</tr>';
    }
    echo '</table></br>';
    echo '<br/>';
}
if (!$notif_courrier_a_envoyer_col->isEmpty()) {$notif = new AbsenceEleveNotification();
    echo 'Nouveaux courriers';
    echo '<table id="table_liste_absents" style="border-spacing:0px;">';
    //en tete commentaire
    echo '</tr>';
    echo '<th>id</th>';
    echo '<th></th>';
    echo '<th>responsables</th>';
    echo '<th>adresse</th>';
    echo '<th>statut</th>';
    echo '<th>date d\'envoi</th>';
    echo '<th>traitement</th>';
    echo '</tr>';
    foreach($notif_courrier_a_envoyer_col as $notif) {
	echo '<tr>';
	echo '<td><a href="visu_notification.php?id_notification='.$notif->getId().'">'.$notif->getId().'</a></td>';
Beispiel #3
0
				$absences_du_creneau = $eleve->getAbsenceEleveSaisiesDuCreneau($edt_creneau, $dt_date_absence_eleve);
			}
		} else {
			//on affiche  les informations pour les crenaux avant la saisie sauf si configuré autrement
			if (getSettingValue("abs2_montrer_creneaux_precedents")=='y') {
				$absences_du_creneau = $eleve->getAbsenceEleveSaisiesDuCreneau($edt_creneau, $dt_date_absence_eleve);
			} else {
				$absences_du_creneau = new PropelCollection();
			}
		}

		$afficheEleve[$elv]['style'][$i] = "";
		if ($deja_saisie && $nb_creneau_a_saisir > 0) {
			$afficheEleve[$elv]['style'][$i] = "fondVert";
		}
		if (!$absences_du_creneau->isEmpty()) {
			foreach ($absences_du_creneau as $abs_saisie) {
				if ($abs_saisie->getManquementObligationPresence()) {
					$afficheEleve[$elv]['style'][$i] = "fondRouge";
					break;
				}
			}
		}

		// 20130416
		$tmp_creneau=$col_creneaux[$i];
		/*
		echo "<p><br /><p>";
		echo "<pre>";
		print_r($tmp_creneau);
		echo "</pre>";
            echo $notif->getAdresse()->getDescriptionSurUneLigne();
        }
        echo '</td>';
        echo '<td>Statut ' . $notif->getStatutEnvoi() . '</td>';
        echo '<td>' . $notif->getDateEnvoi('d/m/Y H:i') . '</td>';
        echo '<td>';
        if ($notif->getAbsenceEleveTraitement() != null) {
            echo 'Traitement ' . $notif->getAbsenceEleveTraitement()->getDescription();
        }
        echo '</td>';
        echo '</tr>';
    }
    echo '</table></br>';
    echo '<br/>';
}
if (!$notif_courrier_a_envoyer_col->isEmpty()) {
    $notif = new AbsenceEleveNotification();
    echo 'Nouveaux courriers';
    echo '<table id="table_liste_absents" style="border-spacing:0px;">';
    //en tete commentaire
    echo '</tr>';
    echo '<th>id</th>';
    echo '<th></th>';
    echo '<th>responsables</th>';
    echo '<th>adresse</th>';
    echo '<th>statut</th>';
    echo '<th>date d\'envoi</th>';
    echo '<th>traitement</th>';
    echo '</tr>';
    foreach ($notif_courrier_a_envoyer_col as $notif) {
        echo '<tr>';