fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6995] merge from bim-branch


From: Sigurd Nes
Subject: [Fmsystem-commits] [6995] merge from bim-branch
Date: Wed, 16 Feb 2011 09:29:07 +0000

Revision: 6995
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6995
Author:   sigurdne
Date:     2011-02-16 09:29:07 +0000 (Wed, 16 Feb 2011)
Log Message:
-----------
merge from bim-branch

Added Paths:
-----------
    trunk/bim/inc/class.bimmodelinformation.inc.php

Copied: trunk/bim/inc/class.bimmodelinformation.inc.php (from rev 6994, 
branches/dev-bim2/property/inc/class.bimmodelinformation.inc.php)
===================================================================
--- trunk/bim/inc/class.bimmodelinformation.inc.php                             
(rev 0)
+++ trunk/bim/inc/class.bimmodelinformation.inc.php     2011-02-16 09:29:07 UTC 
(rev 6995)
@@ -0,0 +1,127 @@
+<?php
+phpgw::import_class('property.bimobject');
+
+class BimModelInformation extends BimObject{
+       private $authorization;
+       private $author;
+       private $changeDate;
+       private $description;
+       private $organization;
+       private $originatingSystem;
+       private $preProcessor;
+       private $valDate;
+       private $nativeSchema;
+
+       public function loadVariablesFromXml(SimpleXMLElement 
$modelInformation) {
+               if(!empty($modelInformation->authorization)){
+                       
$this->setAuthorization((string)$modelInformation->authorization);
+               }
+               if(!empty($modelInformation->author)) {
+                       $this->setAuthor((string)$modelInformation->author);
+               }
+               if(!empty($modelInformation->changeDate)) {
+                       $this->setChangeDate($modelInformation->changeDate);
+               }
+               if(!empty($modelInformation->valDate)) {
+                       $this->setValDate($modelInformation->valDate);
+               }
+               if(!empty($modelInformation->description)) {
+                       
$this->setDescription((string)$modelInformation->description);
+               }
+               if(!empty($modelInformation->organization)) {
+                       
$this->setOrganization((string)$modelInformation->organization);
+               }
+               if(!empty($modelInformation->originatingSystem)) {
+                       
$this->setOriginatingSystem((string)$modelInformation->originatingSystem);
+               }
+               if(!empty($modelInformation->originatingSystem)) {
+                       
$this->setOriginatingSystem((string)$modelInformation->originatingSystem);
+               }
+               if(!empty($modelInformation->preProcessor)) {
+                       
$this->setPreProcessor((string)$modelInformation->preProcessor);
+               }
+               if(!empty($modelInformation->nativeSchema)) {
+                       
$this->setNativeSchema((string)$modelInformation->nativeSchema);
+               }
+       }
+
+       /* 
+        *Converts ISO8601 string to timestamp
+        * Not needed, postgres accepts iso8601 as input
+        */
+       public function convertToTimestamp($iso8601date) {
+               return strtotime($iso8601date);
+       }
+
+       public function getOrganization() {
+               return $this->organization;
+       }
+
+       public function setOrganization($organization) {
+               $this->organization = $organization;
+       }
+
+       public function getOriginatingSystem() {
+               return $this->originatingSystem;
+       }
+
+       public function setOriginatingSystem($originatingSystem) {
+               $this->originatingSystem = $originatingSystem;
+       }
+
+       public function getPreProcessor() {
+               return $this->preProcessor;
+       }
+
+       public function setPreProcessor($preProcessor) {
+               $this->preProcessor = $preProcessor;
+       }
+
+       public function getAuthorization() {
+               return $this->authorization;
+       }
+
+       public function setAuthorization($authorization) {
+               $this->authorization =  $authorization;
+       }
+
+       public function getAuthor() {
+               return $this->author;
+       }
+
+       public function setAuthor($author) {
+               $this->author = $author;
+       }
+
+       public function getChangeDate() {
+               return $this->changeDate;
+       }
+
+       public function setChangeDate($changeDate) {
+               $this->changeDate = $changeDate;
+       }
+
+       public function getDescription() {
+               return $this->description;
+       }
+
+       public function setDescription($description) {
+               $this->description = $description;
+       }
+
+       public function getValDate() {
+               return $this->valDate;
+       }
+
+       public function setValDate($valDate) {
+               $this->valDate = $valDate;
+       }
+
+       public function setNativeSchema($nativeSchema) {
+               $this->nativeSchema = $nativeSchema;
+       }
+
+       public function getNativeSchema() {
+               return $this->nativeSchema;
+       }
+}
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]