57 lines
2.8 KiB
PHP
57 lines
2.8 KiB
PHP
<?php
|
|
/*************************************************************************************/
|
|
/* */
|
|
/* Thelia */
|
|
/* */
|
|
/* Copyright (c) OpenStudio */
|
|
/* email : info@thelia.net */
|
|
/* web : http://www.thelia.net */
|
|
/* */
|
|
/* This program 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 3 of the License */
|
|
/* */
|
|
/* This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
/* */
|
|
/*************************************************************************************/
|
|
require_once __DIR__ . "/../fonctions/autoload.php";
|
|
|
|
class Dossierdesc extends BaseobjdescReecriture {
|
|
|
|
public $id;
|
|
public $dossier;
|
|
|
|
const TABLE = "dossierdesc";
|
|
|
|
public $table = self::TABLE;
|
|
|
|
public $bddvars = array("id", "dossier", "lang", "titre", "chapo", "description", "postscriptum", "etat", "date", "url_image", "avancement", "domaine_de_competence", "domaine_de_competence0", "domaine_de_competence1", "domaine_de_competence2", "domaine_de_competence3", "domaine_de_competence4", "domaine_de_competence5", "mission", "bet", "architecte", "mod", "mo", "surface", "ville", "date_de_livraison", "details_mission", "date_fin_mission");
|
|
|
|
|
|
|
|
|
|
public function __construct($dossier = 0, $lang = false){
|
|
parent::__construct('dossier', $dossier, $lang);
|
|
}
|
|
|
|
public function charger($dossier, $lang=false){
|
|
return $this->charger_desc($dossier, $lang);
|
|
}
|
|
|
|
protected function clef_url_reecrite() {
|
|
|
|
return "id_dossier=$this->dossier";
|
|
}
|
|
|
|
protected function texte_url_reecrite() {
|
|
|
|
return $this->dossier . "-" . $this->titre . ".html";
|
|
}
|
|
}
|
|
?>
|