[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6994] merge from bim-branch
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6994] merge from bim-branch |
Date: |
Wed, 16 Feb 2011 09:29:01 +0000 |
Revision: 6994
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6994
Author: sigurdne
Date: 2011-02-16 09:29:01 +0000 (Wed, 16 Feb 2011)
Log Message:
-----------
merge from bim-branch
Added Paths:
-----------
trunk/bim/inc/class.bimmodel.inc.php
Copied: trunk/bim/inc/class.bimmodel.inc.php (from rev 6993,
branches/dev-bim2/property/inc/class.bimmodel.inc.php)
===================================================================
--- trunk/bim/inc/class.bimmodel.inc.php (rev 0)
+++ trunk/bim/inc/class.bimmodel.inc.php 2011-02-16 09:29:01 UTC (rev
6994)
@@ -0,0 +1,77 @@
+<?php
+phpgw::import_class('property.bimobject');
+class BimModel extends BimObject{
+ private $databaseId;
+ private $name;
+ private $creationDate;
+ private $fileSize;
+ private $fileName;
+ private $usedItemCount;
+ private $vfsFileId;
+ private $used;
+
+ function __construct($databaseId = null, $name = null, $creationDate =
null, $fileSize = null,$fileName= null,$usedItemCount= null, $vfsFileId = null)
{
+ $this->databaseId = (int)$databaseId;
+ $this->name = $name;
+ $this->creationDate = $creationDate;
+ $this->fileSize = $fileSize;
+ $this->fileName = $fileName;
+ $this->usedItemCount = $usedItemCount;
+ if($usedItemCount && $usedItemCount > 0) {
+ $this->used = true;
+ } else {
+ $this->used = false;
+ }
+
+ }
+ function getDatabaseId() {
+ return $this->databaseId;
+ }
+ function setDatabaseId($databaseId) {
+ $this->databaseId = $databaseId;
+ }
+ function getName() {
+ return $this->name;
+ }
+ function setName($item) {
+ $this->name = $item;
+ }
+ function getCreationDate() {
+ return $this->creationDate;
+ }
+ function setCreationDate($item) {
+ $this->creationDate = $item;
+ }
+ function getFileSize() {
+ return $this->fileSize;
+ }
+ function setFileSize($item) {
+ $this->fileSize = $item;
+ }
+ function getFileName() {
+ return $this->fileName;
+ }
+ function setFileName($item) {
+ $this->fileName = $item;
+ }
+ function getUsedItemCount() {
+ return $this->usedItemCount;
+ }
+ function setUsedItemCount($item) {
+ $this->usedItemCount = $item;
+ }
+ function getVfsFileId() {
+ return $this->vfsFileId;
+ }
+ function setVfsFileId($item) {
+ $this->vfsFileId = $item;
+ }
+
+ function getUsed() {
+ if($this->used) {
+ return $this->used;
+ } else {
+ return (bool)($this->usedItemCount > 0);
+ }
+ }
+}
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6994] merge from bim-branch,
Sigurd Nes <=