aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/DbService.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle/DbService.php')
-rw-r--r--src/SemanticScuttle/DbService.php67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/SemanticScuttle/DbService.php b/src/SemanticScuttle/DbService.php
new file mode 100644
index 0000000..875ee98
--- /dev/null
+++ b/src/SemanticScuttle/DbService.php
@@ -0,0 +1,67 @@
+<?php
+/**
+ * SemanticScuttle - your social bookmark manager.
+ *
+ * PHP version 5.
+ *
+ * @category Bookmarking
+ * @package SemanticScuttle
+ * @author Christian Weiske <cweiske@cweiske.de>
+ * @license GPL http://www.gnu.org/licenses/gpl.html
+ * @link http://sourceforge.net/projects/semanticscuttle
+ */
+
+/**
+ * Base class for services utilizing the database.
+ *
+ * @category Bookmarking
+ * @package SemanticScuttle
+ * @author Christian Weiske <cweiske@cweiske.de>
+ * @license GPL http://www.gnu.org/licenses/gpl.html
+ * @link http://sourceforge.net/projects/semanticscuttle
+ */
+class SemanticScuttle_DbService extends SemanticScuttle_Service
+{
+ /**
+ * Database object
+ *
+ * @var sql_db
+ */
+ protected $db;
+
+
+
+ /**
+ * Database table name
+ *
+ * @var string
+ */
+ protected $tablename;
+
+
+
+ /**
+ * Returns database table name
+ *
+ * @return string Table name
+ */
+ public function getTableName()
+ {
+ return $this->tablename;
+ }
+
+
+
+ /**
+ * Set the database table name
+ *
+ * @param string $value New table name
+ *
+ * @return void
+ */
+ function setTableName($value)
+ {
+ $this->tablename = $value;
+ }
+
+}