From 00ba74e0c407a80f11bdd9724f9e8f885dc725e9 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sat, 24 Oct 2009 08:05:00 +0000 Subject: introduce dbservice, a service base class that has a database variable, table variable and getter/setter for table git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@400 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/DbService.php | 67 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/SemanticScuttle/DbService.php (limited to 'src/SemanticScuttle/DbService.php') 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 @@ + + * @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 + * @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; + } + +} -- cgit v1.2.3