[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8091]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [8091] |
Date: |
Sat, 12 Nov 2011 12:30:56 +0000 |
Revision: 8091
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8091
Author: vator
Date: 2011-11-12 12:30:55 +0000 (Sat, 12 Nov 2011)
Log Message:
-----------
Added Paths:
-----------
trunk/controller/inc/helper/
trunk/controller/inc/helper/class.calender_cell.inc.php
Added: trunk/controller/inc/helper/class.calender_cell.inc.php
===================================================================
--- trunk/controller/inc/helper/class.calender_cell.inc.php
(rev 0)
+++ trunk/controller/inc/helper/class.calender_cell.inc.php 2011-11-12
12:30:55 UTC (rev 8091)
@@ -0,0 +1,46 @@
+<?php
+ class calendar_cell
+ {
+ private $id;
+ private $status;
+ private $deadline;
+
+ public function __construct(int $id, $status, $deadline)
+ {
+ $this->id = (int)$id;
+ $this->status = $status;
+ $this->deadline = $deadline;
+ }
+
+ public function set_id($id)
+ {
+ $this->id = $id;
+ }
+
+ public function get_id() { return $this->id; }
+
+ public function set_status($status)
+ {
+ $this->status = $status;
+ }
+
+ public function get_status() { return $this->status; }
+
+ public function set_deadline($deadline)
+ {
+ $this->deadline = $deadline;
+ }
+
+ public function get_deadline() { return $this->deadline; }
+
+
+ public function serialize()
+ {
+ return array(
+ 'id' => $this->get_id(),
+ 'status' => $this->get_status(),
+ 'deadline' => $this->get_deadline()
+ );
+ }
+ }
+?>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8091],
Torstein <=