Subversion Repositories eFlore/Applications.cel

Rev

Hide changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
1838 3925 d 12 h raphael /trunk/jrest/lib/ InventoryObservationList: le test de NULLité se fait sur la valeur passée et non sur le nom, afin que, par exemple, ?lieudit=NULL test "IS NULL" et non "= 'NULL'" (cf filtrage par localités)  
/trunk/jrest/lib/RechercheObservation.php
1765 3978 d 16 h raphael /trunk/ merge: branche "topic-dbsingleton"  
/trunk/jrest/lib/Bdd2.php
/trunk/scripts/modules/maj-code-DB-access-201307.sh
/trunk
/trunk/jrest/lib/Cel.php
/trunk/jrest/lib/FormateurGroupeColonne.php
/trunk/jrest/lib/GestionChampsEtendus.php
/trunk/jrest/lib/GestionImage.php
/trunk/jrest/lib/GestionObservation.php
/trunk/jrest/lib/LiaisonMotsCles.php
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheInfosTaxon.php
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/CelImage.php
/trunk/jrest/services/CelImageDoublon.php
/trunk/jrest/services/CelMotCle.php
/trunk/jrest/services/CelStatistique.php
/trunk/jrest/services/CelStatistiqueTxt.php
/trunk/jrest/services/CelSyndicationImage.php
/trunk/jrest/services/CelSyndicationObservation.php
/trunk/jrest/services/CelWidgetMap.php
/trunk/jrest/services/CelWidgetMapPoint.php
/trunk/jrest/services/CelWidgetSaisie.php
/trunk/jrest/services/CoordSearch.php
/trunk/jrest/services/ImageContribution.php
/trunk/jrest/services/ImageDateList.php
/trunk/jrest/services/ImageRDF.php
/trunk/jrest/services/ImportXLS.php
/trunk/jrest/services/InventoryByDept.php
/trunk/jrest/services/InventoryCheck.php
/trunk/jrest/services/InventoryContributionList.php
/trunk/jrest/services/InventoryDateList.php
/trunk/jrest/services/InventoryImageLink.php
/trunk/jrest/services/InventoryImportExcel.php
/trunk/jrest/services/InventoryKeyWordList.php
/trunk/jrest/services/InventoryLocationList.php
/trunk/jrest/services/InventoryPDF.php
/trunk/jrest/services/InventoryTransmit.php
/trunk/jrest/services/InventoryUserList.php
/trunk/jrest/services/LicenceUtilisateur.php
/trunk/jrest/services/LocationSearch.php
/trunk/jrest/services/Resume.php
/trunk/jrest/services/SelfRefList.php
/trunk/jrest/services/User.php
/trunk/src/org/tela_botanica/client/vues/image/GalerieImageVue.java
/trunk/widget/modules/saisie
1755 3978 d 20 h raphael /trunk/jrest/ divers bugfixes: notices, undefined variables, gestion d'erreur, débugage  
/trunk/jrest/lib/Cel.php
/trunk/jrest/lib/GestionImage.php
/trunk/jrest/lib/ImageRecreation.php
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/CelWidgetExport.php
/trunk/jrest/services/ExportXLS.php
/trunk/jrest/services/InventoryExport.php
1644 4000 d 15 h aurelien /trunk/jrest/ Refactorisation de la classe d'export + harmonisation linguistique  
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/ExportXLS.php
1634 4005 d 16 h raphael /trunk/jrest/ export/xls: observation, ajoute la possibilité d'effectuer des requêtes arbitraires
à travers le constructeur de requêtes SQL sans nuire pour autant à la sécurité générale
de l'application.

+ oublie d'un require(PHPExcel)
+ ajout de debug temporaire
+ sécurisation du calcul du range() pour éviter des débordements via des valeurs nuisibles
 
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/ExportXLS.php
1631 4007 d 20 h raphael /trunk/jrest/ Cel/API: RechercheObservation->rechercherObservations() ne n'exécute plus d'emblée
la requête générée et par conséquent ne retourne pas ses résultats,
à l'exception de l'objet ($this) dont l'attribut public $requete_selection_observations
est initialisé.

La méthode get(), elle, exécute la requête et retourne les données résultantes.
Et puisque rechercherObservations() retourne l'objet, il est donc possible d'enchaîner les deux
appels en utilisant désormais la syntaxe RechercheObservation->rechercherObservations()->get().

Cela permet de découpler la génération de la requête de son exécution et donc possiblement
de manipuler la requête en plusieurs temps.
Cela pourrait s'avérer utile dans les cas où le script traitant les données souhaiterait s'architecturer
sous la forme d'un flux au fil de la récupération des enregistrements en BDD plutôt que de
compter sur l'exécution intégrale de la requête et d'attendre le retour exhaustif des données.
 
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/CelObs.php
/trunk/jrest/services/CelWidgetExport.php
/trunk/jrest/services/Inventory.php
/trunk/jrest/services/InventoryExport.php
/trunk/jrest/services/InventoryObservationList.php
1598 4020 d 16 h raphael /trunk/jrest/ fix des "Call-time pass-by-reference" (notation supprimée en PHP-5.4)

Recherche basique des occurences:
$ find . -iname '*.php' -exec grep -iE "(\(&)|( &[a-z])" {} \;|grep -v 'function'
 
/trunk/jrest/lib/Cel.php
/trunk/jrest/lib/GestionObservation.php
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/Inventory.php
/trunk/jrest/services/InventoryExport.php
/trunk/jrest/services/InventoryImageList.php
/trunk/jrest/services/InventoryObservationList.php
1581 4034 d 13 h jpm /trunk/jrest/lib/ Mise en forme.  
/trunk/jrest/lib/RechercheObservation.php
1570 4036 d 18 h aurelien /trunk/jrest/lib/ Adaptation de la librairie de recherche obs pour les champs étendus version nouveau format  
/trunk/jrest/lib/RechercheObservation.php
1527 4071 d 17 h aurelien /trunk/jrest/ Factorisation de code + gestion des champs étendus pour les obs et les images  
/trunk/jrest/lib/GestionChampsTags.php
/trunk/jrest/lib/Cel.php
/trunk/jrest/lib/GestionChampsEtendus.php
/trunk/jrest/lib/GestionObservation.php
/trunk/jrest/lib/RechercheInfosTaxonBeta.php
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/CelWidgetSaisie.php
/trunk/jrest/services/InventoryExport.php
/trunk/jrest/services/InventoryImportExcel.php
/trunk/jrest/services/NameImage.php
/trunk/jrest/services/NameMap.php
/trunk/jrest/services/NameSearch.php
1491 4110 d 20 h aurelien /trunk/jrest/lib/ Ajout de méthodes renvoyant l'email d'un utilisateur suivant un id image ou obs donné  
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheObservation.php
1398 4384 d 20 h aurelien /trunk/jrest/ AMélioration des tris et de l'export  
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/InventoryExport.php
1395 4384 d 21 h aurelien /trunk/jrest/ Ajout d'un paramètre de tri pour la recherche image  
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/InventoryImageListPublic.php
1390 4386 d 15 h aurelien /trunk/jrest/lib/ Correction d'un critère mal affecté  
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheObservation.php
1388 4386 d 20 h aurelien /trunk/jrest/lib/ Correction sous requete mots clés obs  
/trunk/jrest/lib/RechercheObservation.php
1386 4386 d 21 h aurelien /trunk/jrest/lib/ Remplacemen t d'une fonction de requete qui bugguait par un autre  
/trunk/jrest/lib/Cel.php
/trunk/jrest/lib/GestionImage.php
/trunk/jrest/lib/GestionObservation.php
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheInfosTaxon.php
/trunk/jrest/lib/RechercheObservation.php
1380 4392 d 14 h aurelien /trunk/ Correction style des erreurs + ajout de départements multiples  
/trunk/jrest/lib/RechercheObservation.php
/trunk/widget/modules/export/squelettes/css/export.css
/trunk/widget/modules/export/squelettes/export.tpl.html
/trunk/widget/modules/export/squelettes/js/export.js
1378 4393 d 13 h aurelien /trunk/jrest/ Ajout d'un critère date début et fin pour la recherche obs  
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/CelWidgetExport.php
1332 4406 d 16 h aurelien /trunk/ Gestion des NULL est des valeurs vides dans la recherche et dans l'ajout  
/trunk/jrest/lib/GestionObservation.php
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheObservation.php
/trunk/src/org/tela_botanica/client/modeles/dao/ImageUploaderAsynchroneDAO.java
/trunk/src/org/tela_botanica/client/modeles/objets/ReferentielCommune.java
/trunk/src/org/tela_botanica/client/observation/ObservationMediateur.java
/trunk/src/org/tela_botanica/client/util/Util.java
/trunk/src/org/tela_botanica/client/vues/observation/FormulaireSaisieObservationVue.java
/trunk/src/org/tela_botanica/client/vues/observation/ListeObservationVue.java
1311 4426 d 15 h aurelien /trunk/jrest/ Fin correction pour nouvelle bdd + ajout recherche par tag dans recherche libre observation  
/trunk/jrest/lib/RechercheImage.php
/trunk/jrest/lib/RechercheObservation.php
/trunk/jrest/services/CoordSearch.php
/trunk/jrest/services/InventoryImageList.php

Show All