]> git.andy128k.dev Git - ipf.git/commitdiff
minor style changes
authorAndrey Kutejko <andy128k@gmail.com>
Fri, 2 Aug 2013 19:20:13 +0000 (22:20 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Fri, 2 Aug 2013 19:20:13 +0000 (22:20 +0300)
ipf/orm/export.php
ipf/orm/table.php

index e6fb1918c4c7020bd0484125efe5a664bd540e4c..b9d7332681918f342e4dc76779b4aabfc50da7b0 100644 (file)
@@ -368,7 +368,7 @@ class IPF_ORM_Export extends IPF_ORM_Connection_Module
                  );
              }
 
-             $sql = $connection->export->exportClassesSql(array($class));
+             $sql = $this->exportClassesSql($class);
 
              // Build array of all the creates
              // We need these to happen first
index 7f87815cbfb367a98b93f8e384331925af78e980..626fe365fd48f9098fc362ac6aab39fcb31b1a3e 100644 (file)
@@ -992,14 +992,12 @@ class IPF_ORM_Table extends IPF_ORM_Configurable implements Countable
     public function bindQueryParts(array $queryParts)
     {
         $this->_options['queryParts'] = $queryParts;
-
         return $this;
     }
 
     public function bindQueryPart($queryPart, $value)
     {
         $this->_options['queryParts'][$queryPart] = $value;
-
         return $this;
     }
 
@@ -1043,11 +1041,10 @@ class IPF_ORM_Table extends IPF_ORM_Configurable implements Countable
 
     public function getBoundQueryPart($queryPart)
     {
-        if ( ! isset($this->_options['queryParts'][$queryPart])) {
+        if (isset($this->_options['queryParts'][$queryPart]))
+            return $this->_options['queryParts'][$queryPart];
+        else
             return null;
-        }
-
-        return $this->_options['queryParts'][$queryPart];
     }
 
     public function __toString()