Ignore:
Timestamp:
May 25, 2010, 9:24:24 PM (11 years ago)
Author:
teymour
Message:

Ajout de champs pour les députés

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/api/actions/actions.class.php

    r1199 r1200  
    7979    $this->res['depute']['nom'] = $depute->nom;
    8080    $this->res['depute']['nom_de_famille'] = $depute->nom_de_famille;
     81    $this->res['depute']['nom_circo'] = $depute->nom_circo;
     82    $this->res['depute']['num_circo'] = $depute->num_circo;
     83    $this->res['depute']['debut_mandat'] = $depute->debut_mandat;
     84    if ($depute->fin_mandat)
     85      $this->res['depute']['fin_mandat'] = $depute->fin_mandat;
    8186    $this->res['depute']['groupe'] = $depute->getGroupe();
    8287    $this->res['depute']['groupe_sigle'] = $depute->groupe_acronyme;
     88    $this->res['depute']['responsabilites'] = $this->array2hash($depute->getResponsabilites(), 'responsabilite');
     89    $this->res['depute']['responsabilites_extra_parlementaires'] = $this->array2hash($depute->getExtras(), 'responsabilite');
     90    $this->multi['responsabilite'] = 1;
    8391    $this->res['depute']['site_web'] = $depute->site_web;
    8492    $this->res['depute']['url_an'] = 'http://www.assembleenationale.fr/13/tribun/fiches_id/'.$depute->id_an.'.asp';
     
    8997    $this->res['depute']['autres_mandats'] = $this->array2hash(unserialize($depute->autres_mandats), 'mandat');
    9098    $this->multi['mandat'] = 1;
    91     $this->res['depute']['responsabilites'] = $this->array2hash($depute->getResponsabilites(), 'responsabilite');
    92     $this->res['depute']['responsabilites_extra_parlementaires'] = $this->array2hash($depute->getExtras(), 'responsabilite');
    93     $this->multi['responsabilite'] = 1;
     99    $this->res['depute']['profession'] = $depute->profession;
     100    $this->res['depute']['place_en_hemicycle'] = $depute->place_hemicycle;
     101    $this->res['depute']['sexe'] = $depute->sexe;
    94102    $this->champ = 'depute';
    95103    $this->breakline = '';
Note: See TracChangeset for help on using the changeset viewer.