Browse Source

Rename as per review.

dereuromark 9 years ago
parent
commit
e88d442e7c
4 changed files with 15 additions and 16 deletions
  1. 6 6
      src/Database/Connection.php
  2. 3 3
      src/Database/Driver.php
  3. 3 4
      src/Database/Query.php
  4. 3 3
      src/ORM/EagerLoader.php

+ 6 - 6
src/Database/Connection.php

@@ -447,7 +447,7 @@ class Connection implements ConnectionInterface
         }
 
         $this->_transactionLevel++;
-        if ($this->isEnabledSavePoints()) {
+        if ($this->isSavePointsEnabled()) {
             $this->createSavePoint($this->_transactionLevel);
         }
     }
@@ -471,7 +471,7 @@ class Connection implements ConnectionInterface
 
             return $this->_driver->commitTransaction();
         }
-        if ($this->isEnabledSavePoints()) {
+        if ($this->isSavePointsEnabled()) {
             $this->releaseSavePoint($this->_transactionLevel);
         }
 
@@ -491,7 +491,7 @@ class Connection implements ConnectionInterface
             return false;
         }
 
-        $useSavePoint = $this->isEnabledSavePoints();
+        $useSavePoint = $this->isSavePointsEnabled();
         if ($this->_transactionLevel === 0 || !$useSavePoint) {
             $this->_transactionLevel = 0;
             $this->_transactionStarted = false;
@@ -540,7 +540,7 @@ class Connection implements ConnectionInterface
      *
      * @return bool true if enabled, false otherwise
      */
-    public function isEnabledSavePoints()
+    public function isSavePointsEnabled()
     {
         return $this->_useSavePoints;
     }
@@ -559,7 +559,7 @@ class Connection implements ConnectionInterface
      * `$connection->useSavePoints(false)` Disables usage of savepoints and returns false
      * `$connection->useSavePoints()` Returns current status
      *
-     * @deprecated 3.4.0 Use enableSavePoints()/isEnabledSavePoints() instead.
+     * @deprecated 3.4.0 Use enableSavePoints()/isSavePointsEnabled() instead.
      * @param bool|null $enable Whether or not save points should be used.
      * @return bool true if enabled, false otherwise
      */
@@ -569,7 +569,7 @@ class Connection implements ConnectionInterface
             $this->enableSavePoints($enable);
         }
 
-        return $this->isEnabledSavePoints();
+        return $this->isSavePointsEnabled();
     }
 
     /**

+ 3 - 3
src/Database/Driver.php

@@ -316,7 +316,7 @@ abstract class Driver
      *
      * @return bool
      */
-    public function isEnabledAutoQuoting()
+    public function isAutoQuotingEnabled()
     {
         return $this->_autoQuoting;
     }
@@ -328,7 +328,7 @@ abstract class Driver
      * If called with a boolean argument, it will toggle the auto quoting setting
      * to the passed value
      *
-     * @deprecated 3.4.0 use enableAutoQuoting()/isEnabledAutoQuoting() instead.
+     * @deprecated 3.4.0 use enableAutoQuoting()/isAutoQuotingEnabled() instead.
      * @param bool|null $enable Whether to enable auto quoting
      * @return bool
      */
@@ -338,7 +338,7 @@ abstract class Driver
             $this->enableAutoQuoting($enable);
         }
 
-        return $this->isEnabledAutoQuoting();
+        return $this->isAutoQuotingEnabled();
     }
 
     /**

+ 3 - 4
src/Database/Query.php

@@ -1829,12 +1829,11 @@ class Query implements ExpressionInterface, IteratorAggregate
      *
      * @return bool
      */
-    public function isEnabledBufferedResults()
+    public function isBufferedResultsEnabled()
     {
         return $this->_useBufferedResults;
     }
 
-
     /**
      * Enable/Disable buffered results.
      *
@@ -1848,7 +1847,7 @@ class Query implements ExpressionInterface, IteratorAggregate
      * If called with no arguments, it will return whether or not buffering is
      * enabled.
      *
-     * @deprecated 3.4.0 Use enableBufferedResults()/isEnabledBufferedResults() instead.
+     * @deprecated 3.4.0 Use enableBufferedResults()/isBufferedResultsEnabled() instead.
      * @param bool|null $enable Whether or not to enable buffering
      * @return bool|$this
      */
@@ -1858,7 +1857,7 @@ class Query implements ExpressionInterface, IteratorAggregate
             return $this->enableBufferedResults($enable);
         }
 
-        return $this->isEnabledBufferedResults();
+        return $this->isBufferedResultsEnabled();
     }
 
     /**

+ 3 - 3
src/ORM/EagerLoader.php

@@ -177,7 +177,7 @@ class EagerLoader
      *
      * @return bool The current value.
      */
-    public function isEnabledAutoFields()
+    public function isAutoFieldsEnabled()
     {
         return $this->_autoFields;
     }
@@ -185,7 +185,7 @@ class EagerLoader
     /**
      * Sets/Gets whether or not contained associations will load fields automatically.
      *
-     * @deprecated 3.4.0 Use enableAutoFields()/isEnabledAutoFields() instead.
+     * @deprecated 3.4.0 Use enableAutoFields()/isAutoFieldsEnabled() instead.
      * @param bool|null $enable The value to set.
      * @return bool The current value.
      */
@@ -195,7 +195,7 @@ class EagerLoader
             $this->enableAutoFields($enable);
         }
 
-        return $this->isEnabledAutoFields();
+        return $this->isAutoFieldsEnabled();
     }
 
     /**