Move methods.
authorJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 21:27:20 +0000 (22:27 +0100)
committerJan Schneider <jan@horde.org>
Thu, 16 Dec 2010 23:17:11 +0000 (00:17 +0100)
framework/Share/lib/Horde/Share/Sql.php

index 4dfcad9..b7c5346 100644 (file)
@@ -59,6 +59,16 @@ class Horde_Share_Sql extends Horde_Share_Base
     }
 
     /**
+     * Set the SQL table name to use for the current scope's share storage.
+     *
+     * @var string $table  The table name
+     */
+    public function setTable($table)
+    {
+        $this->_table = $table;
+    }
+
+    /**
      * Get storage table
      *
      * @return string
@@ -68,6 +78,11 @@ class Horde_Share_Sql extends Horde_Share_Base
         return $this->_table;
     }
 
+    public function setStorage(Horde_Db_Adapter $db)
+    {
+        $this->_db = $db;
+    }
+
     /**
      *
      * @return Horde_Db_Adapter
@@ -667,20 +682,6 @@ class Horde_Share_Sql extends Horde_Share_Base
     }
 
     /**
-     * Set the SQL table name to use for the current scope's share storage.
-     *
-     * @var string $table  The table name
-     */
-    public function setShareTable($table) {
-        $this->_table = $table;
-    }
-
-    public function setStorage(Horde_Db_Adapter $db)
-    {
-        $this->_db = $db;
-    }
-
-    /**
      * Utility function to convert from the SQL server's charset.
      */
     protected function _fromDriverCharset($data)