Ignore:
Timestamp:
May 14, 2012, 12:35:57 AM (9 years ago)
Author:
teymour
Message:

Ajout des présences pour l'APF, l'UIP et les groupes d'amitiés

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/task/loadJOTask.class.php

    r1237 r2707  
    88    $this->name = 'JO';
    99    $this->briefDescription = 'Load Présences from JO data or CRI';
    10     $this->addOption('source', null, sfCommandOption::PARAMETER_OPTIONAL, 'Define the source to load: jo or cri', 'jo');
     10    $this->addOption('source', null, sfCommandOption::PARAMETER_OPTIONAL, 'Define the source to load: jo or cri or international', 'jo');
    1111    $this->addOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'test');
    1212    $this->addOption('app', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'frontend');
     
    2121      $workdir = "commission/presents";
    2222      $typesource = "compte-rendu";
     23    } else if ($options['source'] === "international") {
     24      $workdir = "presences/json";
     25      $typesource = "international";
    2326    } else {
    2427      echo "Error wrong value for option --source, choose cri or jo";
Note: See TracChangeset for help on using the changeset viewer.