Author: sevein
Date: Tue Aug 14 13:20:45 2012
New Revision: 12102

Log:
Cosmetic changes

Modified:
   trunk/plugins/sfRadPlugin/lib/sfRadPlugin.class.php

Modified: trunk/plugins/sfRadPlugin/lib/sfRadPlugin.class.php
==============================================================================
--- trunk/plugins/sfRadPlugin/lib/sfRadPlugin.class.php Tue Aug 14 12:16:37 
2012        (r12101)
+++ trunk/plugins/sfRadPlugin/lib/sfRadPlugin.class.php Tue Aug 14 13:20:45 
2012        (r12102)
@@ -79,30 +79,6 @@
     return implode(' - ', $string);
   }
 
-  protected function property($name)
-  {
-    if (!isset($this->property[$name]))
-    {
-      $criteria = new Criteria;
-      $this->resource->addPropertysCriteria($criteria);
-      $criteria->add(QubitProperty::NAME, $name);
-
-      if (1 == count($query = QubitProperty::get($criteria)))
-      {
-        $this->property[$name] = $query[0];
-      }
-      else
-      {
-        $this->property[$name] = new QubitProperty;
-        $this->property[$name]->name = $name;
-
-        $this->resource->propertys[] = $this->property[$name];
-      }
-    }
-
-    return $this->property[$name];
-  }
-
   public function __get($name)
   {
     switch ($name)
@@ -154,12 +130,37 @@
       case 'statementOfScaleCartographic':
       case 'titleProperOfPublishersSeries':
       case 'titleStatementOfResponsibility':
+
         $this->property($name)->value = $value;
 
         return $this;
     }
   }
 
+  protected function property($name)
+  {
+    if (!isset($this->property[$name]))
+    {
+      $criteria = new Criteria;
+      $this->resource->addPropertysCriteria($criteria);
+      $criteria->add(QubitProperty::NAME, $name);
+
+      if (1 == count($query = QubitProperty::get($criteria)))
+      {
+        $this->property[$name] = $query[0];
+      }
+      else
+      {
+        $this->property[$name] = new QubitProperty;
+        $this->property[$name]->name = $name;
+
+        $this->resource->propertys[] = $this->property[$name];
+      }
+    }
+
+    return $this->property[$name];
+  }
+
   public function offsetExists($offset)
   {
     $args = func_get_args();

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to