Loading .gitignore +1 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,3 +4,4 @@ vendor/ data/DoctrineModule/ data/DoctrineORMModule/ .DS_Store ressources/Logos No newline at end of file config/application.config.php +1 −1 Changes for config/application.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ $modules = [ if ('development' === (getenv('APPLICATION_ENV') ?: 'production')) { $modules = array_merge($modules, [ // 'ZendDeveloperTools', 'ZendDeveloperTools', 'UnicaenCode', 'UnicaenTest', ]); Loading module/Application/src/Application/Controller/TheseController.php +8 −19 Changes for module/Application/src/Application/Controller/TheseController.php: 8 added lines, 19 removed lines. Original line number Diff line number Diff line Loading @@ -122,14 +122,12 @@ class TheseController extends AbstractController implements $queryParams = array_merge($queryParams, ['sort' => 't.datePremiereInscription', 'direction' => Sortable::ASC]); $needsRedirect = true; } // var_dump("Redirection needed: "); // var_dump($needsRedirect); // redirection si nécessaire if ($needsRedirect) { return $this->redirect()->toRoute(null, [], ['query' => $queryParams], true); } $maxi = $this->params()->fromQuery('maxi', 10); $maxi = $this->params()->fromQuery('maxi', 25); $page = $this->params()->fromQuery('page', 1); $qb = $this->createQueryBuilder(); Loading Loading @@ -168,33 +166,23 @@ class TheseController extends AbstractController implements return $this->redirect()->toRoute('these', [], ['query' => $queryParams]); } /** * @return QueryBuilder */ private function createQueryBuilder() { $etatThese = $this->params()->fromQuery($name = 'etatThese'); private function createQueryBuilder() { $etatThese = $this->params()->fromQuery($name = 'etatThese'); $sort = $this->params()->fromQuery('sort'); $text = $this->params()->fromQuery('text'); $dir = $this->params()->fromQuery('direction', Sortable::ASC); $qb = $this->theseService->getRepository()->createQueryBuilder('t') // TODO: chercher pourquoi l'ajout de ces jointures ralentit la page 1 du listing des thèses avec les paramètres // etatThese=E&sort=t.datePremiereInscription&direction=asc // ->addSelect('a')->leftJoin('t.acteurs', 'a') // ->addSelect('i')->leftJoin('a.individu', 'i') // ->addSelect('r')->leftJoin('a.role', 'r') ->addSelect('ed')->leftJoin('t.ecoleDoctorale', 'ed') ->addSelect('ur')->leftJoin('t.uniteRecherche', 'ur') ->addSelect('a')->leftJoin('t.acteurs', 'a') ->addSelect('i')->leftJoin('a.individu', 'i') ->addSelect('r')->leftJoin('a.role', 'r') ->andWhere('1 = pasHistorise(t)'); if ($etatThese) { $qb->andWhere('t.etatThese = :etat')->setParameter('etat', $etatThese); } // if (in_array($resultat = $this->params()->fromQuery($name = 'resultat'), ['0', '1'])) { // $qb->andWhere('t.resultat = :resultat')->setParameter('resultat', $resultat); // } $sortProps = $sort ? explode('+', $sort) : []; foreach ($sortProps as $sortProp) { if ($sortProp === 't.titre') { Loading Loading @@ -228,6 +216,7 @@ class TheseController extends AbstractController implements return $qb; } public function roadmapAction() { $these = $this->requestedThese(); Loading Loading @@ -1371,7 +1360,7 @@ class TheseController extends AbstractController implements $exporter = new PageDeCouverturePdfExporter($renderer, 'A4'); $exporter->setVars([ 'these' => $these, 'notifier' => $notifier, 'notifier' ]); $exporter->export('export.pdf'); exit; Loading module/Application/src/Application/QueryBuilder/TheseQueryBuilder.php +1 −3 Changes for module/Application/src/Application/QueryBuilder/TheseQueryBuilder.php: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -19,11 +19,9 @@ class TheseQueryBuilder extends DefaultQueryBuilder public function initWithDefault() { $this ->addSelect("th, f") ->addSelect("th") ->join("$this->rootAlias.doctorant", "th") ->leftJoin("$this->rootAlias.fichiers", "f") ->andWhere('1 = pasHistorise(th)') // ->orderBy("p.nomUsuel, i.type, i.ordre") ; return $this; Loading public/.htaccess +1 −1 Changes for public/.htaccess: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L] SetEnv APPLICATION_ENV "development" # NB: ne peut-être supérieur au memory_limit du php.ini php_value memory_limit 2047M php_value memory_limit 2048M # NB: post_max_size > upload_max_filesize php_value upload_max_filesize 501M Loading Loading
.gitignore +1 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -4,3 +4,4 @@ vendor/ data/DoctrineModule/ data/DoctrineORMModule/ .DS_Store ressources/Logos No newline at end of file
config/application.config.php +1 −1 Changes for config/application.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ $modules = [ if ('development' === (getenv('APPLICATION_ENV') ?: 'production')) { $modules = array_merge($modules, [ // 'ZendDeveloperTools', 'ZendDeveloperTools', 'UnicaenCode', 'UnicaenTest', ]); Loading
module/Application/src/Application/Controller/TheseController.php +8 −19 Changes for module/Application/src/Application/Controller/TheseController.php: 8 added lines, 19 removed lines. Original line number Diff line number Diff line Loading @@ -122,14 +122,12 @@ class TheseController extends AbstractController implements $queryParams = array_merge($queryParams, ['sort' => 't.datePremiereInscription', 'direction' => Sortable::ASC]); $needsRedirect = true; } // var_dump("Redirection needed: "); // var_dump($needsRedirect); // redirection si nécessaire if ($needsRedirect) { return $this->redirect()->toRoute(null, [], ['query' => $queryParams], true); } $maxi = $this->params()->fromQuery('maxi', 10); $maxi = $this->params()->fromQuery('maxi', 25); $page = $this->params()->fromQuery('page', 1); $qb = $this->createQueryBuilder(); Loading Loading @@ -168,33 +166,23 @@ class TheseController extends AbstractController implements return $this->redirect()->toRoute('these', [], ['query' => $queryParams]); } /** * @return QueryBuilder */ private function createQueryBuilder() { $etatThese = $this->params()->fromQuery($name = 'etatThese'); private function createQueryBuilder() { $etatThese = $this->params()->fromQuery($name = 'etatThese'); $sort = $this->params()->fromQuery('sort'); $text = $this->params()->fromQuery('text'); $dir = $this->params()->fromQuery('direction', Sortable::ASC); $qb = $this->theseService->getRepository()->createQueryBuilder('t') // TODO: chercher pourquoi l'ajout de ces jointures ralentit la page 1 du listing des thèses avec les paramètres // etatThese=E&sort=t.datePremiereInscription&direction=asc // ->addSelect('a')->leftJoin('t.acteurs', 'a') // ->addSelect('i')->leftJoin('a.individu', 'i') // ->addSelect('r')->leftJoin('a.role', 'r') ->addSelect('ed')->leftJoin('t.ecoleDoctorale', 'ed') ->addSelect('ur')->leftJoin('t.uniteRecherche', 'ur') ->addSelect('a')->leftJoin('t.acteurs', 'a') ->addSelect('i')->leftJoin('a.individu', 'i') ->addSelect('r')->leftJoin('a.role', 'r') ->andWhere('1 = pasHistorise(t)'); if ($etatThese) { $qb->andWhere('t.etatThese = :etat')->setParameter('etat', $etatThese); } // if (in_array($resultat = $this->params()->fromQuery($name = 'resultat'), ['0', '1'])) { // $qb->andWhere('t.resultat = :resultat')->setParameter('resultat', $resultat); // } $sortProps = $sort ? explode('+', $sort) : []; foreach ($sortProps as $sortProp) { if ($sortProp === 't.titre') { Loading Loading @@ -228,6 +216,7 @@ class TheseController extends AbstractController implements return $qb; } public function roadmapAction() { $these = $this->requestedThese(); Loading Loading @@ -1371,7 +1360,7 @@ class TheseController extends AbstractController implements $exporter = new PageDeCouverturePdfExporter($renderer, 'A4'); $exporter->setVars([ 'these' => $these, 'notifier' => $notifier, 'notifier' ]); $exporter->export('export.pdf'); exit; Loading
module/Application/src/Application/QueryBuilder/TheseQueryBuilder.php +1 −3 Changes for module/Application/src/Application/QueryBuilder/TheseQueryBuilder.php: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -19,11 +19,9 @@ class TheseQueryBuilder extends DefaultQueryBuilder public function initWithDefault() { $this ->addSelect("th, f") ->addSelect("th") ->join("$this->rootAlias.doctorant", "th") ->leftJoin("$this->rootAlias.fichiers", "f") ->andWhere('1 = pasHistorise(th)') // ->orderBy("p.nomUsuel, i.type, i.ordre") ; return $this; Loading
public/.htaccess +1 −1 Changes for public/.htaccess: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L] SetEnv APPLICATION_ENV "development" # NB: ne peut-être supérieur au memory_limit du php.ini php_value memory_limit 2047M php_value memory_limit 2048M # NB: post_max_size > upload_max_filesize php_value upload_max_filesize 501M Loading