50 lines
1.4 KiB
PHP
Executable File
50 lines
1.4 KiB
PHP
Executable File
<?php
|
|
require_once 'Modele.php';
|
|
|
|
class Ententeprealable extends Modele {
|
|
|
|
public function getinfosEntenteprealable($idDemandeententeprealable)
|
|
{
|
|
$sql = 'call sp_get_infos_ententeprealable(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idDemandeententeprealable));
|
|
|
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getinfosAutorisation($idDemandeautorisation)
|
|
{
|
|
$sql = 'call sp_get_infos_autorisation(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idDemandeautorisation));
|
|
|
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getinfosEntenteprealablepha($idDemandeententeprealable)
|
|
{
|
|
$sql = 'call sp_get_infos_ententeprealable_pha(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idDemandeententeprealable));
|
|
|
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getinfosEntenteprealableopt($idDemandeententeprealable)
|
|
{
|
|
$sql = 'call sp_get_infos_ententeprealable_opt(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idDemandeententeprealable));
|
|
|
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function getinfosEntenteprealablemont($idDemandeententeprealable)
|
|
{
|
|
$sql = 'call sp_get_infos_ententeprealable_mont(?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idDemandeententeprealable));
|
|
|
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
} |