Example #1
0
	/**
	 * @param	ArchiveEcts $archiveEcts The archiveEcts object to add.
	 */
	protected function doAddArchiveEcts($archiveEcts)
	{
		$this->collArchiveEctss[]= $archiveEcts;
		$archiveEcts->setEleve($this);
	}
Example #2
0
	/**
	 * Exclude object from result
	 *
	 * @param     ArchiveEcts $archiveEcts Object to remove from the list of results
	 *
	 * @return    ArchiveEctsQuery The current query, for fluid interface
	 */
	public function prune($archiveEcts = null)
	{
		if ($archiveEcts) {
			$this->addCond('pruneCond0', $this->getAliasedColName(ArchiveEctsPeer::ID), $archiveEcts->getId(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond1', $this->getAliasedColName(ArchiveEctsPeer::INE), $archiveEcts->getIne(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond2', $this->getAliasedColName(ArchiveEctsPeer::NUM_PERIODE), $archiveEcts->getNumPeriode(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond3', $this->getAliasedColName(ArchiveEctsPeer::SPECIAL), $archiveEcts->getSpecial(), Criteria::NOT_EQUAL);
			$this->combine(array('pruneCond0', 'pruneCond1', 'pruneCond2', 'pruneCond3'), Criteria::LOGICAL_OR);
		}

		return $this;
	}
							if($temoin_ects=="y") {
								//--------------------
								// Les crédits ECTS
								//--------------------
	
								// On a besoin de : annee, ine, classe, num_periode, nom_periode, matiere, prof, valeur_ects, mention_ects
								// On a déjà pratiquement tout... ça ne va pas être compliqué !
								$Eleve = ElevePeer::retrieveByLOGIN($login_eleve);
								$Groupes = $Eleve->getGroupes($num_periode);
	
								foreach($Groupes as $Groupe) {
									
									$Ects = $Eleve->getEctsCredit($num_periode,$Groupe->getId());
	
									if ($Ects != null) {
										$Archive = new ArchiveEcts();
										$Archive->setAnnee($annee_scolaire);
										$Archive->setIne($ine);
										$Archive->setClasse($classe);
										$Archive->setNumPeriode($num_periode);
										$Archive->setNomPeriode($nom_periode);
										$Archive->setMatiere($Groupe->getDescription());
										$Archive->setSpecial('');
										$Archive->setProfs($prof);
										$Archive->setValeur($Ects->getValeur());
										$Archive->setMention($Ects->getMention());
										$Archive->save();
									}
								}
							}
							echo "<!-- Après les crédits ECTS de l'élève $login_eleve -->\n";
Example #4
0
	/**
	 * Filter the query by a related ArchiveEcts object
	 *
	 * @param     ArchiveEcts $archiveEcts  the related object to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    EleveQuery The current query, for fluid interface
	 */
	public function filterByArchiveEcts($archiveEcts, $comparison = null)
	{
		if ($archiveEcts instanceof ArchiveEcts) {
			return $this
				->addUsingAlias(ElevePeer::NO_GEP, $archiveEcts->getIne(), $comparison);
		} elseif ($archiveEcts instanceof PropelCollection) {
			return $this
				->useArchiveEctsQuery()
				->filterByPrimaryKeys($archiveEcts->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByArchiveEcts() only accepts arguments of type ArchiveEcts or PropelCollection');
		}
	}