From: Florent Bruneau Date: Sun, 13 Jan 2008 15:28:07 +0000 (+0100) Subject: Update object definition to reflect database structure. X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=27890fd45fcbcdc4b0a2d82575054e20e9b39db4;p=platal.git Update object definition to reflect database structure. Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetevents/xnetevents.inc.php b/modules/xnetevents/xnetevents.inc.php index 2ce687d..2cfdc76 100644 --- a/modules/xnetevents/xnetevents.inc.php +++ b/modules/xnetevents/xnetevents.inc.php @@ -23,17 +23,18 @@ */ class XNetEventPart { - private $id; - private $title; - private $description; - - private $begin; - private $end; - private $where; /* Geolocalize ? Addresse ==> google map - Each asso sould have its list of reusable addresses - and UI should list previous (recent) addresses. */ - - private $extras; // Can be use to store attachments or URL + public $id = null; + public $title = null; + public $description = null; + public $url = null; + public $where = null; /* Geolocalize ? Addresse ==> google map + Each asso sould have its list of reusable addresses + and UI should list previous (recent) addresses. */ + public $begin = null; + public $end = null; + + public $prices = null; + public $useCategories = null; public function __construct(array $data) { } @@ -45,23 +46,25 @@ class XNetEventPart class XNetEvent { /* Payment types */ - const PAYMENT_TELEPAYMENT; - const PAYMENT_MONEY; + const PAYMENT_TELEPAYMENT = 'telepayment'; + const PAYMENT_MONEY = 'money'; private $tofetch; - private $id; - private $shortname; - private $title; - private $description; - private $subscriptionLimit; + public $id = null; + public $shortname = null; + public $title = null; + public $description = null; + public $subscriptionLimit = null; - private $closed; - private $memberOnly; - private $invite; + public $closed = null; + public $memberOnly = null; + public $invite = null; + public $publicList = null; + public $paymentIsSubscription = null; - private $categories; - private $parts; + public $categories = null; + public $parts = null; public function __construct($id = null) { $this->tofetch = $id;