Subversion Repositories eFlore/Archives.eflore-consultation-v2

Compare Revisions

Ignore whitespace Rev 141 → Rev 142

/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/synthese.php
File deleted
\ No newline at end of file
/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/fichesynthese.php
New file
0,0 → 1,57
<?php
class synthese extends groupeMacroElement {
function __construct($une_connexion)
{
parent::__construct($une_connexion);
}
function construire()
{
$this->dblock = new blockdedonnees('FICHE_SYNTHESE');
if (array_key_exists('nn', $_REQUEST)) {
$this->dblock->ajouterDonnee('nn', $_REQUEST['nn']);
}
if (array_key_exists('nvp', $_REQUEST)) {
$this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
}
$this->construireContexte();
$this->ajouterMacroElement();
}
function construireContexte()
{
}
function ajouterMacroElement()
{
$un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
$un_macro_element->construire();
$un_macro_element = $this->macroElementFactory('NOM_SELECTION_PROJETS', $this->dblock);
$un_macro_element->construire();
if (!isset($_REQUEST['nvp'])) {
// La valeur par défaut 3 qui correspond à la BDNFF.
$this->dblock->attribuerContexteValeur('FICHE_SYNTHESE', 'nvp', 3);
}
$un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
$un_macro_element->construire();
if (!isset($_REQUEST['nt'])) {
$this->dblock->attribuerContexteSql('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
}
$un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
$un_macro_element->construire();
$un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
$un_macro_element->construire();
$un_macro_element = $this->macroElementFactory('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN', $this->dblock);
$un_macro_element->construire();
$un_macro_element = $this->macroElementFactory('VERNACULAIRE_NOMS', $this->dblock);
$un_macro_element->construire();
//echo '<pre>'.print_r($this->dblock, true).'</pre>';
//$this->dblock->afficher();
}
}
?>