Commit 2d26d44f authored by mbriand's avatar mbriand
Browse files

Bleh

parent afbc40f7
......@@ -122,11 +122,28 @@ class affiche extends stdentity
function delete ()
{
if ( !$this->dbrw ) return;
if (($this->date_deb <= time()) && $this->modere)
$this->expire();
else
new delete($this->dbrw,"aff_affiches",array("id_affiche"=>$this->id));
$this->id = null;
}
$this->set_tags_array(array());
/** Fait expirer une affiche
*/
new delete($this->dbrw,"aff_affiches",array("id_affiche"=>$this->id));
$this->id = null;
function expire()
{
$this->date_fin = date();
$req = new update ($this->dbrw,
"aff_affiches",
array ("date_modifie" => date("Y-m-d H:i:s"),
"date_fin" => $this->date_fin
),
array(
"id_affiche"=>$this->id
));
}
/** Valide l'affiche
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment