From: Andrey Kutejko Date: Fri, 2 Aug 2013 19:20:13 +0000 (+0300) Subject: minor style changes X-Git-Tag: 0.6~46 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=0f37834140d45fa8f5ea1a008fdb1362ea172452;p=ipf-legacy-orm.git minor style changes --- 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()