Commit ce9b5059 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Divers

parent 40496a3d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ foreach ($lines as $l) {
        $referentiel = \UnicaenApp\Util::reduce($tiCode) == 'referentiel';

        $vh = new \Application\Entity\Db\FormuleTestVolumeHoraire();
        $vh->setIntervenantTest($fti);
        $vh->setFormuleTestIntervenant($fti);
        $vh->setStructureCode($structureCode);
        $vh->setServiceStatutaire(cBool($l[3]));
        $vh->setTauxFi(cPourc($l[4]));
+2 −2
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ class Lcv
    public function getViewDefinition()
    {
        $sql    = "SELECT TEXT FROM USER_VIEWS WHERE VIEW_NAME = '" . strtoupper($this->getView()) . "'";
        $result = $this->getEntityManager()->getConnection()->fetchAll($sql);
        $result = $this->getEntityManager()->getConnection()->fetchAllAssociative($sql);

        return $result[0]['TEXT'];
    }
@@ -63,7 +63,7 @@ class Lcv
    {
        $sql = "SELECT referenced_name FROM user_dependencies WHERE name = '" . strtoupper($this->getView()) . "'";

        $result = $this->getEntityManager()->getConnection()->fetchAll($sql);
        $result = $this->getEntityManager()->getConnection()->fetchAllAssociative($sql);
        $tables = [];

        foreach ($result as $r) {
+3 −7
Original line number Diff line number Diff line
@@ -53,18 +53,14 @@ function calc($choixMin, $choixMax, $poids, $maxPoids, $totalPoids, $nbChoix)
//        $res = $coefChoix * $nbChoix * ($coefPoids+(((1/$nbChoix)-$coefPoids)*0));
//        $resMax = $coefChoix * $nbChoix * $maxCoefPoids;

        $delta = $resMax;

        return $delta;
        return $resMax;
        $res = $coefChoix;

        //$res = 1 / (($coefChoix * $nbChoix * $coefPoids) - 1);
//return $res;
        $correcteur = $res;
        $res        = $coefChoix * $nbChoix * ($coefPoids + (((1 / $nbChoix) - $coefPoids) * $correcteur));

        $correcteur = $coefChoix * $nbChoix * ($coefPoids + (((1 / $nbChoix) - $coefPoids) * $correcteur));

        return $res;
        return $correcteur;
    }
}

+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ WHERE
$intervenants          = [];
$intervenantsInvalides = [];

$da = $si->getEntityManager()->getConnection()->fetchAll($sql, [
$da = $si->getEntityManager()->getConnection()->fetchAllAssociative($sql, [
    'type_piece_jointe' => $typePieceJointe->getId(),
]);
foreach ($da as $d) {
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ $em = $container->get(\Application\Constants::BDD);
$s = $em->find(\Plafond\Entity\Db\PlafondStatut::class, 567);

$pel = new \Application\ORM\Event\Listeners\ParametreEntityListener();
$pel->zozo();

$d = $pel->extract($s);

Loading