From 0f37834140d45fa8f5ea1a008fdb1362ea172452 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Fri, 2 Aug 2013 22:20:13 +0300 Subject: [PATCH] minor style changes --- ipf/orm/export.php | 2 +- ipf/orm/table.php | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ipf/orm/export.php b/ipf/orm/export.php index e6fb191..b9d7332 100644 --- a/ipf/orm/export.php +++ b/ipf/orm/export.php @@ -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 diff --git a/ipf/orm/table.php b/ipf/orm/table.php index 7f87815..626fe36 100644 --- a/ipf/orm/table.php +++ b/ipf/orm/table.php @@ -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() -- 2.49.0