fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6806] Small modifications, fixed error along with an


From: Petur Bjorn Thorsteinsson
Subject: [Fmsystem-commits] [6806] Small modifications, fixed error along with an exception
Date: Wed, 19 Jan 2011 08:41:37 +0000

Revision: 6806
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6806
Author:   peturbjorn
Date:     2011-01-19 08:41:37 +0000 (Wed, 19 Jan 2011)
Log Message:
-----------
Small modifications, fixed error along with an exception

Modified Paths:
--------------
    branches/dev-bim2/property/inc/class.bobimmodel.inc.php
    branches/dev-bim2/property/inc/class.sobimmodel.inc.php

Modified: branches/dev-bim2/property/inc/class.bobimmodel.inc.php
===================================================================
--- branches/dev-bim2/property/inc/class.bobimmodel.inc.php     2011-01-19 
08:40:11 UTC (rev 6805)
+++ branches/dev-bim2/property/inc/class.bobimmodel.inc.php     2011-01-19 
08:41:37 UTC (rev 6806)
@@ -165,7 +165,11 @@
         * needs sovfs object, with submodule set
         */
        public function removeIfcModelByModelId() {
-               $this->checkIdArguments();
+               try {
+                       $this->checkIdArguments();
+               } catch (InvalidArgumentException $e) {
+                       throw $e;
+               }
                /* @var $bimModel BimModel */
                $bimModel = 
$this->sobimmodel->retrieveBimModelInformationById();
                $this->sobimmodel->setModelName($bimModel->getName());

Modified: branches/dev-bim2/property/inc/class.sobimmodel.inc.php
===================================================================
--- branches/dev-bim2/property/inc/class.sobimmodel.inc.php     2011-01-19 
08:40:11 UTC (rev 6805)
+++ branches/dev-bim2/property/inc/class.sobimmodel.inc.php     2011-01-19 
08:41:37 UTC (rev 6806)
@@ -168,7 +168,7 @@
                }
        }
        private function checkArgModelId() {
-               if(!$this->modelName) {
+               if(!$this->modelId) {
                        throw new InvalidArgumentException("Invalid arguments! 
\n modelid: $this->modelId");
                }
        }




reply via email to

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