From d488089620d20276f3fa36e40c02befaac3855ee Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 21 Apr 2008 21:26:57 +0000 Subject: [PATCH] Move class from root to core directory --- htdocs/boutique/commande/commande.class.php | 26 ++++++++++++++------- htdocs/{ => core}/address.class.php | 12 ++++------ 2 files changed, 22 insertions(+), 16 deletions(-) rename htdocs/{ => core}/address.class.php (82%) diff --git a/htdocs/boutique/commande/commande.class.php b/htdocs/boutique/commande/commande.class.php index 2e6377ee581..0bc7e278917 100644 --- a/htdocs/boutique/commande/commande.class.php +++ b/htdocs/boutique/commande/commande.class.php @@ -1,5 +1,6 @@ + * Copyright (C) 2008 Laurent Destailleur * * 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 @@ -14,16 +15,24 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ - * $Source$ - * */ -require_once(DOL_DOCUMENT_ROOT ."/address.class.php"); + /** + \file htdocs/boutique/commande/commande.class.php + \ingroup osc + \brief Fichier de la classe des commandes OSC + \version $Id$ +*/ + +require_once(DOL_DOCUMENT_ROOT ."/core/address.class.php"); -class Commande { +/** + \class Commande + \brief Classe permettant la gestion des commandes OSC +*/ +class Commande +{ var $db ; var $id ; @@ -33,12 +42,13 @@ class Commande { $this->db = $DB; $this->id = $id ; - $this->billing_adr = New Address(); - $this->delivry_adr = New Address(); + $this->billing_adr = new Address(); + $this->delivry_adr = new Address(); $this->total_ot_subtotal = 0; $this->total_ot_shipping = 0; } + /* * * diff --git a/htdocs/address.class.php b/htdocs/core/address.class.php similarity index 82% rename from htdocs/address.class.php rename to htdocs/core/address.class.php index 34192bf7b80..49e85e867d2 100644 --- a/htdocs/address.class.php +++ b/htdocs/core/address.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005 Laurent Destailleur +/* Copyright (C) 2003 Rodolphe Quiedeville + * Copyright (C) 2005-2008 Laurent Destailleur * * 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 @@ -15,16 +15,12 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ - * $Source$ - * */ /** - \file htdocs/address.class.php + \file htdocs/core/address.class.php \brief Fichier de la classe des adresses postales - \version $Revision$ + \version $Id$ */