Loading code/FormuleTestColleur.php +1 −1 Original line number Diff line number Diff line Loading @@ -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])); Loading code/Liste des colonnes d'une vue.php +2 −2 Original line number Diff line number Diff line Loading @@ -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']; } Loading @@ -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) { Loading code/TestCalculCharges.php +3 −7 Original line number Diff line number Diff line Loading @@ -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; } } Loading code/ajout_cvs.php +1 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading code/test2.php +0 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
code/FormuleTestColleur.php +1 −1 Original line number Diff line number Diff line Loading @@ -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])); Loading
code/Liste des colonnes d'une vue.php +2 −2 Original line number Diff line number Diff line Loading @@ -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']; } Loading @@ -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) { Loading
code/TestCalculCharges.php +3 −7 Original line number Diff line number Diff line Loading @@ -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; } } Loading
code/ajout_cvs.php +1 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading
code/test2.php +0 −1 Original line number Diff line number Diff line Loading @@ -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