charger( $id ); } } function charger( $id ) { return $this->getVars( "select * from $this->table where id = " . intval( $id ) ); } function chargerPoids( $poids , $zone = 1 ) { return $this->getVars( "select * from $this->table where poidsmax = " . floatval( $poids ) . " AND zone = " . intval( $zone ) ); } function delete( $requete ) { $resul = $this->query( $requete ); CacheBase::getCache()->reset_cache(); } function supprimer() { if ( $this->id == 0 || $this->id == "" ) { return; } $this->delete( "delete from $this->table where id = " . intval( $id ) ); return 1; } } ?>