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 module/Application/src/Application/Controller/ExportController.php +10 −97 Changes for module/Application/src/Application/Controller/ExportController.php: 10 added lines, 97 removed lines. Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ class ExportController extends AbstractController implements TheseServiceAwareIn * @var These $these */ //TODO compléter avec les infos demandées $headers = [ 'Civilité' => function ($these) { return $these->getDoctorant()->getIndividu()->getCivilite(); }, 'Nom usuel' => function ($these) { return $these->getDoctorant()->getIndividu()->getNomUsuel(); }, Loading @@ -44,14 +45,14 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $sort = $this->params()->fromQuery('sort'); $text = $this->params()->fromQuery('text'); $dir = $this->params()->fromQuery('direction', Sortable::ASC); var_dump($etatThese); var_dump($sort); var_dump($text); var_dump($dir); // var_dump($etatThese); // var_dump($sort); // var_dump($text); // var_dump($dir); $repoThese = $this->theseService->getEntityManager()->getRepository(These::class); $qb = $repoThese->createQueryBuilder("t") ->where("t.ecoleDoctorale = 41") // ->where("t.ecoleDoctorale = 41") ->andWhere("t.etatThese = :etatThese") ->orderBy($sort,$dir); $qb->setParameter("etatThese", $etatThese); Loading @@ -64,8 +65,8 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $theses = $query->execute(); $records = []; echo count($theses); for ($i = 0 ; $i < 10 ; $i++) { //echo "~~~~~~~~~ {".count($theses)." thèse(s) à exporter} ~~~~~~~~~<br/>"; for ($i = 0 ; $i < count($theses) ; $i++) { $these = $theses[$i]; $record = []; foreach($headers as $key => $fct) { Loading @@ -75,9 +76,8 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $records[] = $record; } //echo "Préparation accomplie<br/>"; // var_dump($result); // die("My Job Is Done ..."); $result = new CsvModel(); Loading @@ -91,7 +91,7 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $cols = [ // CSV => SQL //////////////CSV => SQL // 'CIVILITE' => 'CIVILITE', // 'NOM_USUEL' => 'NOM_USUEL', // 'PRENOM' => 'PRENOM', Loading Loading @@ -147,92 +147,5 @@ class ExportController extends AbstractController implements TheseServiceAwareIn 'DATE_EXTRACTION' => 'DATE_EXTRACTION', ]; $sql = "select %s from v_export_all"; $sql = sprintf($sql, implode(', ', array_values($cols))); var_dump($sql); /** * Filtres et tris. */ $etatThese = $this->params()->fromQuery($name = 'etatThese'); $sort = $this->params()->fromQuery('sort'); $text = $this->params()->fromQuery('text'); $dir = $this->params()->fromQuery('direction', Sortable::ASC); $wheres = $params = []; if ($etatThese) { $wheres[] = "ETAT_THESE = :etat"; $params['etat'] = $etatThese; } $orderBys = []; $sortProps = $sort ? explode('+', $sort) : []; foreach ($sortProps as $sortProp) { switch ($sortProp) { case 't.titre': // trim et suppression des guillemets $sortProp = "TRIM(REPLACE(TITRE, CHR(34), ''))"; // CHR(34) <=> " break; case 'th.nomUsuel': $sortProp = 'NOM_USUEL'; break; case 'th.prenom': $sortProp = 'PRENOM'; break; case 't.codeEcoleDoctorale': $sortProp = 'CODE_ED'; break; case 't.codeUniteRecherche': $sortProp = 'CODE_UR'; break; case 't.datePremiereInscription': $sortProp = 'DATE_PREM_INSC'; break; default: break; } $orderBys[] = $sortProp . ' ' . $dir; } /** * Recherche textuelle. */ if (strlen($text) > 1) { $results = $this->theseService->rechercherThese($text); $sourceCodes = array_unique(array_keys($results)); if ($sourceCodes) { $wheres[] = sprintf("NUMERO_APOGEE in (%s)", implode(',', $sourceCodes)); } else { $wheres[] = "0 = 1"; // i.e. aucune thèse trouvée } } /** * Filtres découlant du rôle de l'utilisateur. */ $this->theseService->decorateSqlQueryFromUserContext($wheres, $params, $this->userContextService); if (count($wheres) > 0) { $sql .= ' WHERE ' . implode(' AND ', $wheres); } if (count($orderBys) > 0) { $sql .= ' ORDER BY ' . implode(',', $orderBys); } $statement = $this->theseService->getEntityManager()->getConnection()->executeQuery($sql, $params); $records = $statement->fetchAll(\PDO::FETCH_ASSOC); $result = new CsvModel(); $result->setDelimiter(';'); $result->setEnclosure('"'); $result->setHeader(array_keys($cols)); $result->setData($records); $result->setFilename('export_theses.csv'); return $result; } } No newline at end of file module/Application/src/Application/Controller/TheseController.php +32 −48 Changes for module/Application/src/Application/Controller/TheseController.php: 32 added lines, 48 removed lines. Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ use Application\Service\VersionFichier\VersionFichierServiceAwareTrait; use Application\Service\Workflow\WorkflowServiceAwareInterface; use Application\Service\Workflow\WorkflowServiceAwareTrait; use Application\View\Helper\Sortable; use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\Tools\Pagination\Paginator; use DoctrineORMModule\Paginator\Adapter\DoctrinePaginator; use Retraitement\Exception\TimedOutCommandException; Loading Loading @@ -77,63 +76,39 @@ class TheseController extends AbstractController implements private $timeoutRetraitement; /** * Spécifie le timout à appliquer au lancement du script de retraitement. * * @param string $timeoutRetraitement Ex: '30s', '1m', cf. "man timout". * @return self */ public function setTimeoutRetraitement($timeoutRetraitement) { $this->timeoutRetraitement = $timeoutRetraitement; return $this; } /** * @return ViewModel|Response */ public function indexAction() { /** * L'utilisateur est un doctorant, redirection vers l'accueil. */ /** L'utilisateur est un doctorant, redirection vers l'accueil. **/ if ($this->userContextService->getSelectedRoleDoctorant()) { return $this->redirect()->toRoute('home'); } /** * Application des filtres et tris par défaut. */ /** Application des filtres et tris par défaut. * Si aucun état de thèse n'est spécifié alors état = These::ETAT_EN_COURS **/ $needsRedirect = false; $queryParams = $this->params()->fromQuery(); // filtres $etatThese = $this->params()->fromQuery($name = 'etatThese'); // var_dump($etatThese); if ($etatThese === null) { // null <=> paramètre absent // filtrage par défaut : thèse en préparation $queryParams = array_merge($queryParams, [$name => These::ETAT_EN_COURS]); $needsRedirect = true; } // tris $sort = $this->params()->fromQuery('sort'); if ($sort === null) { // null <=> paramètre absent // tri par défaut : datePremiereInscription $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); $page = $this->params()->fromQuery('page', 1); /** Configuration du paginator **/ $qb = $this->createQueryBuilder(); $maxi = $this->params()->fromQuery('maxi', 50); $page = $this->params()->fromQuery('page', 1); $paginator = new \Zend\Paginator\Paginator(new DoctrinePaginator(new Paginator($qb, true))); $paginator ->setPageRange(30) Loading Loading @@ -168,33 +143,25 @@ 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('di')->leftJoin('th.individu', 'di') ->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 +195,7 @@ class TheseController extends AbstractController implements return $qb; } public function roadmapAction() { $these = $this->requestedThese(); Loading Loading @@ -428,6 +396,8 @@ class TheseController extends AbstractController implements $estDoctorant = (bool) $this->userContextService->getSelectedRoleDoctorant(); $these = $this->requestedThese(); $versionArchivable = $this->fichierService->getRepository()->getVersionArchivable($these); $view = new ViewModel([ 'these' => $these, 'estDoctorant' => $estDoctorant, Loading @@ -440,6 +410,7 @@ class TheseController extends AbstractController implements WfEtape::CODE_RDV_BU_SAISIE_DOCTORANT, WfEtape::CODE_RDV_BU_VALIDATION_BU, ]), 'versionArchivable' => $versionArchivable, ]); $view->setTemplate('application/these/rdv-bu' . ($estDoctorant ? '-doctorant' : null)); Loading Loading @@ -1371,9 +1342,22 @@ class TheseController extends AbstractController implements $exporter = new PageDeCouverturePdfExporter($renderer, 'A4'); $exporter->setVars([ 'these' => $these, 'notifier' => $notifier, 'notifier' ]); $exporter->export('export.pdf'); exit; } /** * Spécifie le timout à appliquer au lancement du script de retraitement. * * @param string $timeoutRetraitement Ex: '30s', '1m', cf. "man timout". * @return self */ public function setTimeoutRetraitement($timeoutRetraitement) { $this->timeoutRetraitement = $timeoutRetraitement; return $this; } } No newline at end of file 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 module/Application/view/application/these/index.phtml +1 −1 Changes for module/Application/view/application/these/index.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ $acteursFormatter->asSeparated() </a> <?php echo $s->icon() ?> </th> <th> <a href="<?php echo $s = $this->sortable('th.nomUsuel+th.prenom'); ?>" <a href="<?php echo $s = $this->sortable('di.nomUsuel+di.prenom1'); ?>" title="<?php echo $this->translate("Nom du doctorant"); ?>"> <?php echo $this->translate("Doctorant"); ?> </a> <?php echo $s->icon() ?> 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
module/Application/src/Application/Controller/ExportController.php +10 −97 Changes for module/Application/src/Application/Controller/ExportController.php: 10 added lines, 97 removed lines. Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ class ExportController extends AbstractController implements TheseServiceAwareIn * @var These $these */ //TODO compléter avec les infos demandées $headers = [ 'Civilité' => function ($these) { return $these->getDoctorant()->getIndividu()->getCivilite(); }, 'Nom usuel' => function ($these) { return $these->getDoctorant()->getIndividu()->getNomUsuel(); }, Loading @@ -44,14 +45,14 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $sort = $this->params()->fromQuery('sort'); $text = $this->params()->fromQuery('text'); $dir = $this->params()->fromQuery('direction', Sortable::ASC); var_dump($etatThese); var_dump($sort); var_dump($text); var_dump($dir); // var_dump($etatThese); // var_dump($sort); // var_dump($text); // var_dump($dir); $repoThese = $this->theseService->getEntityManager()->getRepository(These::class); $qb = $repoThese->createQueryBuilder("t") ->where("t.ecoleDoctorale = 41") // ->where("t.ecoleDoctorale = 41") ->andWhere("t.etatThese = :etatThese") ->orderBy($sort,$dir); $qb->setParameter("etatThese", $etatThese); Loading @@ -64,8 +65,8 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $theses = $query->execute(); $records = []; echo count($theses); for ($i = 0 ; $i < 10 ; $i++) { //echo "~~~~~~~~~ {".count($theses)." thèse(s) à exporter} ~~~~~~~~~<br/>"; for ($i = 0 ; $i < count($theses) ; $i++) { $these = $theses[$i]; $record = []; foreach($headers as $key => $fct) { Loading @@ -75,9 +76,8 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $records[] = $record; } //echo "Préparation accomplie<br/>"; // var_dump($result); // die("My Job Is Done ..."); $result = new CsvModel(); Loading @@ -91,7 +91,7 @@ class ExportController extends AbstractController implements TheseServiceAwareIn $cols = [ // CSV => SQL //////////////CSV => SQL // 'CIVILITE' => 'CIVILITE', // 'NOM_USUEL' => 'NOM_USUEL', // 'PRENOM' => 'PRENOM', Loading Loading @@ -147,92 +147,5 @@ class ExportController extends AbstractController implements TheseServiceAwareIn 'DATE_EXTRACTION' => 'DATE_EXTRACTION', ]; $sql = "select %s from v_export_all"; $sql = sprintf($sql, implode(', ', array_values($cols))); var_dump($sql); /** * Filtres et tris. */ $etatThese = $this->params()->fromQuery($name = 'etatThese'); $sort = $this->params()->fromQuery('sort'); $text = $this->params()->fromQuery('text'); $dir = $this->params()->fromQuery('direction', Sortable::ASC); $wheres = $params = []; if ($etatThese) { $wheres[] = "ETAT_THESE = :etat"; $params['etat'] = $etatThese; } $orderBys = []; $sortProps = $sort ? explode('+', $sort) : []; foreach ($sortProps as $sortProp) { switch ($sortProp) { case 't.titre': // trim et suppression des guillemets $sortProp = "TRIM(REPLACE(TITRE, CHR(34), ''))"; // CHR(34) <=> " break; case 'th.nomUsuel': $sortProp = 'NOM_USUEL'; break; case 'th.prenom': $sortProp = 'PRENOM'; break; case 't.codeEcoleDoctorale': $sortProp = 'CODE_ED'; break; case 't.codeUniteRecherche': $sortProp = 'CODE_UR'; break; case 't.datePremiereInscription': $sortProp = 'DATE_PREM_INSC'; break; default: break; } $orderBys[] = $sortProp . ' ' . $dir; } /** * Recherche textuelle. */ if (strlen($text) > 1) { $results = $this->theseService->rechercherThese($text); $sourceCodes = array_unique(array_keys($results)); if ($sourceCodes) { $wheres[] = sprintf("NUMERO_APOGEE in (%s)", implode(',', $sourceCodes)); } else { $wheres[] = "0 = 1"; // i.e. aucune thèse trouvée } } /** * Filtres découlant du rôle de l'utilisateur. */ $this->theseService->decorateSqlQueryFromUserContext($wheres, $params, $this->userContextService); if (count($wheres) > 0) { $sql .= ' WHERE ' . implode(' AND ', $wheres); } if (count($orderBys) > 0) { $sql .= ' ORDER BY ' . implode(',', $orderBys); } $statement = $this->theseService->getEntityManager()->getConnection()->executeQuery($sql, $params); $records = $statement->fetchAll(\PDO::FETCH_ASSOC); $result = new CsvModel(); $result->setDelimiter(';'); $result->setEnclosure('"'); $result->setHeader(array_keys($cols)); $result->setData($records); $result->setFilename('export_theses.csv'); return $result; } } No newline at end of file
module/Application/src/Application/Controller/TheseController.php +32 −48 Changes for module/Application/src/Application/Controller/TheseController.php: 32 added lines, 48 removed lines. Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ use Application\Service\VersionFichier\VersionFichierServiceAwareTrait; use Application\Service\Workflow\WorkflowServiceAwareInterface; use Application\Service\Workflow\WorkflowServiceAwareTrait; use Application\View\Helper\Sortable; use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\Tools\Pagination\Paginator; use DoctrineORMModule\Paginator\Adapter\DoctrinePaginator; use Retraitement\Exception\TimedOutCommandException; Loading Loading @@ -77,63 +76,39 @@ class TheseController extends AbstractController implements private $timeoutRetraitement; /** * Spécifie le timout à appliquer au lancement du script de retraitement. * * @param string $timeoutRetraitement Ex: '30s', '1m', cf. "man timout". * @return self */ public function setTimeoutRetraitement($timeoutRetraitement) { $this->timeoutRetraitement = $timeoutRetraitement; return $this; } /** * @return ViewModel|Response */ public function indexAction() { /** * L'utilisateur est un doctorant, redirection vers l'accueil. */ /** L'utilisateur est un doctorant, redirection vers l'accueil. **/ if ($this->userContextService->getSelectedRoleDoctorant()) { return $this->redirect()->toRoute('home'); } /** * Application des filtres et tris par défaut. */ /** Application des filtres et tris par défaut. * Si aucun état de thèse n'est spécifié alors état = These::ETAT_EN_COURS **/ $needsRedirect = false; $queryParams = $this->params()->fromQuery(); // filtres $etatThese = $this->params()->fromQuery($name = 'etatThese'); // var_dump($etatThese); if ($etatThese === null) { // null <=> paramètre absent // filtrage par défaut : thèse en préparation $queryParams = array_merge($queryParams, [$name => These::ETAT_EN_COURS]); $needsRedirect = true; } // tris $sort = $this->params()->fromQuery('sort'); if ($sort === null) { // null <=> paramètre absent // tri par défaut : datePremiereInscription $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); $page = $this->params()->fromQuery('page', 1); /** Configuration du paginator **/ $qb = $this->createQueryBuilder(); $maxi = $this->params()->fromQuery('maxi', 50); $page = $this->params()->fromQuery('page', 1); $paginator = new \Zend\Paginator\Paginator(new DoctrinePaginator(new Paginator($qb, true))); $paginator ->setPageRange(30) Loading Loading @@ -168,33 +143,25 @@ 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('di')->leftJoin('th.individu', 'di') ->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 +195,7 @@ class TheseController extends AbstractController implements return $qb; } public function roadmapAction() { $these = $this->requestedThese(); Loading Loading @@ -428,6 +396,8 @@ class TheseController extends AbstractController implements $estDoctorant = (bool) $this->userContextService->getSelectedRoleDoctorant(); $these = $this->requestedThese(); $versionArchivable = $this->fichierService->getRepository()->getVersionArchivable($these); $view = new ViewModel([ 'these' => $these, 'estDoctorant' => $estDoctorant, Loading @@ -440,6 +410,7 @@ class TheseController extends AbstractController implements WfEtape::CODE_RDV_BU_SAISIE_DOCTORANT, WfEtape::CODE_RDV_BU_VALIDATION_BU, ]), 'versionArchivable' => $versionArchivable, ]); $view->setTemplate('application/these/rdv-bu' . ($estDoctorant ? '-doctorant' : null)); Loading Loading @@ -1371,9 +1342,22 @@ class TheseController extends AbstractController implements $exporter = new PageDeCouverturePdfExporter($renderer, 'A4'); $exporter->setVars([ 'these' => $these, 'notifier' => $notifier, 'notifier' ]); $exporter->export('export.pdf'); exit; } /** * Spécifie le timout à appliquer au lancement du script de retraitement. * * @param string $timeoutRetraitement Ex: '30s', '1m', cf. "man timout". * @return self */ public function setTimeoutRetraitement($timeoutRetraitement) { $this->timeoutRetraitement = $timeoutRetraitement; return $this; } } No newline at end of file
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
module/Application/view/application/these/index.phtml +1 −1 Changes for module/Application/view/application/these/index.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ $acteursFormatter->asSeparated() </a> <?php echo $s->icon() ?> </th> <th> <a href="<?php echo $s = $this->sortable('th.nomUsuel+th.prenom'); ?>" <a href="<?php echo $s = $this->sortable('di.nomUsuel+di.prenom1'); ?>" title="<?php echo $this->translate("Nom du doctorant"); ?>"> <?php echo $this->translate("Doctorant"); ?> </a> <?php echo $s->icon() ?> Loading