Rev 104 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php// +------------------------------------------------------------------------------------------------------+// | PHP version 5.1.1 |// +------------------------------------------------------------------------------------------------------+// | Copyright (C) 2006 Tela Botanica (accueil@tela-botanica.org) |// +------------------------------------------------------------------------------------------------------+// | This file is part of eFlore. |// | |// | Foobar is free software; you can redistribute it and/or modify |// | it under the terms of the GNU General Public License as published by |// | the Free Software Foundation; either version 2 of the License, or |// | (at your option) any later version. |// | |// | Foobar is distributed in the hope that it will be useful, |// | but WITHOUT ANY WARRANTY; without even the implied warranty of |// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |// | GNU General Public License for more details. |// | |// | You should have received a copy of the GNU General Public License |// | along with Foobar; if not, write to the Free Software |// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |// +------------------------------------------------------------------------------------------------------+// CVS : $Id$/*** Classe NoteFraisLigne** Description**@package eFlore*@subpackage modele//Auteur original :*@version 3*@author Shaheen ABDOOL RAHEEM <shaheenar50@hotmail.com>//Autres auteurs :*@version 4*@author Jean-Pascal MILCENT <jpm@clapas.org>*@author aucun*@copyright Tela-Botanica 2000-2006*@version $Revision$ $Date$// +------------------------------------------------------------------------------------------------------+*//*** class NoteFraisLigne : est à la fois le DAO et le conteneur de la table gestion_utilisateur.* classe métier*/class NoteFraisLigne extends aGttSql {/*** Constantes : */const GNFL_ID = 'NOTEFRAISLIGNE_ID';const GNFL_ID_MAX = 'NOTEFRAISLIGNE_ID_MAX';/*** Attributs : */private $id_note_frais_ligne;private $ce_note_frais;private $date;private $montant_ht;private $taux_tva;private $montant_ttc;/*** Aggregations : *//*** Constructeur : */public function __construct($cmd = null, $parametres = null){$this->dao_table_nom = GTT_BDD_PREFIXE . 'gestion_note_frais_ligne';$this->dao_correspondance = array('gnfl_id_note_frais_ligne' => 'id_note_frais_ligne','gnfl_ce_note_frais' => 'ce_note_frais','gnfl_date' => 'date','gnfl_montant_ht' => 'montant_ht','gnfl_taux_tva' => 'taux_tva','gnfl_montant_ttc' => 'montant_ttc');// Si l'on veut remplir l'objet à la création on lance la requete correspondanteif (!is_null($cmd)) {$this->consulter($cmd, $parametres, true);}}/*** Accesseurs : */// Id Note Frais Lignepublic function getIdNoteFraisLigne(){return $this->id_note_frais_ligne;}public function setIdNoteFraisLigne( $infl ){$this->id_note_frais_ligne = $infl;}// Ce Note Fraispublic function getCeNoteFrais(){return $this->ce_note_frais;}public function setCeNoteFrais( $cnf ){$this->ce_note_frais = $cnf;}// Datepublic function getDate(){return $this->date;}public function setDate( $d ){$this->date = $d;}// Montant Htpublic function getMontantHt(){return $this->montant_ht;}public function setMontantHt( $mh ){$this->montant_ht = $mh;}// Taux Tvapublic function getTauxTva(){return $this->taux_tva;}public function setTauxTva( $tt ){$this->taux_tva = $tt;}// Montant Ttcpublic function getMontantTtc(){return $this->montant_ttc;}public function setMontantTtc( $mt ){$this->montant_ttc = $mt;}/*** Méthodes : *//*** Consulter la table gestion_note_frais_ligne.* @return mixed un tableau d'objets NoteFraisLigne s'il y en a plusieurs, l'objet NoteFraisLigne s'il y en a 1 seul sinon false.*/public function consulter($cmd = '', $parametres = array(), $instancier = false){switch ($cmd) {case NoteFraisLigne::GNFL_ID:$requete = 'SELECT * '.'FROM ' . GTT_BDD_PREFIXE . 'gestion_note_frais_ligne '.'WHERE gnfl_id_note_frais_ligne = #0 ';break;case NoteFraisLigne::GNFL_ID_MAX:$requete = 'SELECT MAX(gnfl_id_note_frais_ligne) '.'FROM ' . GTT_BDD_PREFIXE . 'gestion_note_frais_ligne ';break;default :$message = 'Commande '.$cmd.'inconnue!';$e = GestionnaireErreur::formaterMessageErreur(__FILE__, __LINE__, $message);trigger_error($e, E_USER_ERROR);}return parent::consulter($requete, $parametres, $instancier);}}/* +--Fin du code ----------------------------------------------------------------------------------------+** $Log$** +-- Fin du code ----------------------------------------------------------------------------------------+*/?>