TODO

From Openflyers

Jump to: navigation, search

Listes de choses à traiter.

Contents

OF 1.3

mise à jour de la base de données

  • nettoyage de la table instructors :
delete from instructors where inst_num not in (select distinct num FROM authentication)

fait en init

Autumn cleaning

  • remove <blah>
  • remove toXml (replace by table2Dom)
  • all db query should be "prepared"

OF 2.0beta

  • create a common getAll function in GenericDBAccess in replacement of getAll and getAllX functions (in child classes)
  • in the same idea as getAll function, do the same thing with a "getArray" or "getAllAsArray"
  • many files begin by something like this:
 
$userSession        = $GLOBALS['userSession'];
$authenticated      = $userSession->getAuthenticated();
$authenticatedId    = $authenticated->getElement( 'id' );
$frenchDisplay      = $authenticated->getBit( 'VIEW_FRENCHDATEDISPLAY' );
$timeZone           = $authenticated->getElement( 'timezone' );
 

replace it by this:

 
$userSession        = $GLOBALS['userSession'];
$authenticated      = $GLOBALS['authenticated'];
$authenticatedId    = $GLOBALS['authenticatedId'];
$frenchDisplay      = $GLOBALS['frenchDisplay'];
$timeZone           = $GLOBALS['timeZone'];
 

and initialize, at the good place, new globals ;-)

  • sanitize all scripts in order to:
    • no warning/error on code analyzed by ZendStudio
    • all variables are declared before being used (only $GLOBALS['something'] needn't so)
  • finir de décrire les commandes OF dans action.xml (cela permettra de récupérer des options qui existent sous OF 1.2)
  • Revoir le menu déroulant :
    • passe les commandes par GET alors qu'il faut les passer en POST (cela permettra de nettoyer l'adresse URL)

OF 2.0

Various things

  • add an icon on uncomp flight types to check in one click a flight type to be uncomp with all others.
  • vérifier si l'outil d'édition en ligne des traductions ne convertirait pas les <br /> en <br>
  • envoyer les mails en UTF-8
  • jeter un coup d'oeil sur les fonctions sunrise et sunset de PHP5 ainsi que sur la gestion des fuseaux horaires.
  • détailler sur papier (dans le wiki) la notion d'expérience récente attachable à celle de qualification.
  • Ajaxifier certaines parties JS (récupération des règles de compatibilité et incompatibilité des avions dans les formulaires)
  • rendre statique les moteurs JS
  • séparer la construction html du traitement des données
  • remplacer tous les var par des public ou private
  • revoir __sleep et__wakeup
  • review log : try to merge log and preparedQuery->execute function
  • think about a meta class managing save and get (so we needn't anymore to copy/paste and update fetch, save and delete
  • Check that each file as no white line at the end of the file
  • rename the "slot" class to "Slot"
  • manage non recorded icao code
  • uniformiser les feuilles de style CSS : c'est l'anarchie

File cleaning

  • remove $_code parameter on OfException class
  • replace every "manual" XML generation by a table2Dom function call (from GenericDBAccess class)
  • remove admin/manage_user_redirect.php

Replace add/modify files by only one: add_modify

  • manage_types_XXX.php
  • manage_license_XXX.php (and rename manage_qualification_XXX.php)

Replace order_odwn/order_up files by swap_order

  • manage_aircraft_XXX.php
  • manage_types_XXX.php

Reports

  • admin/manage_report_account_balance.php vs admin/report_xml/manage_report_account_balance.php ( action : admin_report_account_balance, admin_report_account_balance_xml)
    • manage_report_debit_credit.php
    • manage_report_email.php
    • manage_report_fee.php
    • manage_report_flight_aircraft.php
    • manage_report_flight_flighttype.php
    • manage_report_flight_member.php
    • manage_report_instructor_flight.php
    • manage_report_member_license.php
  • manage_reporting.php file should be delete and replace by menu items.
  • replace includes/listMembers.php by memberList.php (todo: add in the person class XML export, mail and phone public option)
  • file flightAircraftCounter.xml (xml/report/) to delete ?

For future version

Create something that could mix display : Table (=XSL) + form (RequestForm/Display) instead of only table or only form.

Personal tools