[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7000] merge from bim-branch
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [7000] merge from bim-branch |
Date: |
Wed, 16 Feb 2011 09:29:38 +0000 |
Revision: 7000
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7000
Author: sigurdne
Date: 2011-02-16 09:29:38 +0000 (Wed, 16 Feb 2011)
Log Message:
-----------
merge from bim-branch
Added Paths:
-----------
trunk/bim/inc/class.boitem.inc.php
Copied: trunk/bim/inc/class.boitem.inc.php (from rev 6999,
branches/dev-bim2/property/inc/class.boitem.inc.php)
===================================================================
--- trunk/bim/inc/class.boitem.inc.php (rev 0)
+++ trunk/bim/inc/class.boitem.inc.php 2011-02-16 09:29:38 UTC (rev 7000)
@@ -0,0 +1,91 @@
+<?php
+
+include_class('property', 'boattribute_owner', 'inc/');
+
+ /**
+ * FIXME: Description
+ *
+ * @author Espen
+ */
+ class property_boitem extends property_boattribute_owner
+ {
+ private $id, $installed_date, $location_id, $vendor_id;
+
+ /**
+ * Should contain the group object of which this item belongs to.
+ * @var property_bogroup
+ */
+ private $group;
+
+ public function __construct($id = null, $installed_date = null,
$location_id = null, $vendor_id = null)
+ {
+ $this->set_installed_date($installed_date);
+ $this->set_id($id);
+ $this->set_location_id($location_id);
+ $this->set_vendor_id($location_id);
+ }
+
+
+ public function remove_attribute($attr_def) {
+ $this->attributes[$attr_def] = null;
+ }
+
+ public function set_attribute($attr_def, property_boattribute $attr) {
+ $group_attrs = $this->group->get_attribute_list();
+ if(array_key_exists($attr_def, $group_attrs))
+ {
+ $this->attributes[$attr_def] = $attr;
+ return true;
+ }
+
+ // Return false if array key (the attr definition) doesn't exist
in group.
+ return false;
+ }
+
+
+ public function set_installed_date($installed_date)
+ {
+ $this->installed_date = $installed_date;
+ }
+
+ public function get_installed_date()
+ {
+ return (int) $this->installed_date;
+ }
+
+ public function get_id() {
+ return $this->id;
+ }
+
+ public function set_id($id) {
+ $this->id = $id;
+ }
+
+ public function set_group(property_bogroup $group)
+ {
+ $this->group = $group;
+ }
+
+ public function get_group()
+ {
+ return $this->group;
+ }
+
+ public function get_location_id() {
+ return $this->location_id;
+ }
+
+ public function set_location_id($location_id) {
+ $this->location_id = $location_id;
+ }
+
+ public function get_vendor_id() {
+ return $this->vendor_id;
+ }
+
+ public function set_vendor_id($vendor_id) {
+ $this->vendor_id = $vendor_id;
+ }
+
+
+ }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7000] merge from bim-branch,
Sigurd Nes <=