summaryrefslogtreecommitdiffstatshomepage
path: root/src/SemanticScuttle/Service/Tag.php
diff options
context:
space:
mode:
authorGravatar cweiske2009-10-24 09:10:05 +0000
committerGravatar cweiske2009-10-24 09:10:05 +0000
commit5d11ae2fd5a88b5605aa70167516a571822f0e06 (patch)
tree5403c5da4f7d42e65ce9ba268da36fecae0e1b1a /src/SemanticScuttle/Service/Tag.php
parentcc1a0b1e9cc2cecdae9d126f1489ee3f12dca531 (diff)
downloadscuttle-5d11ae2fd5a88b5605aa70167516a571822f0e06.tar.gz
scuttle-5d11ae2fd5a88b5605aa70167516a571822f0e06.zip
use dbservice in all services that need a db
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@406 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Service/Tag.php')
-rw-r--r--src/SemanticScuttle/Service/Tag.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/SemanticScuttle/Service/Tag.php b/src/SemanticScuttle/Service/Tag.php
index 2a70948..c863640 100644
--- a/src/SemanticScuttle/Service/Tag.php
+++ b/src/SemanticScuttle/Service/Tag.php
@@ -1,8 +1,6 @@
<?php
-class SemanticScuttle_Service_Tag extends SemanticScuttle_Service
+class SemanticScuttle_Service_Tag extends SemanticScuttle_DbService
{
- var $tablename;
-
/**
* Returns the single service instance
*
@@ -95,7 +93,7 @@ class SemanticScuttle_Service_Tag extends SemanticScuttle_Service
}
function renameTag($uId, $oldName, $newName) {
- $newname = $this->normalize($newname);
+ $newname = $this->normalize($newName);
$query = 'UPDATE `'. $this->getTableName() .'`';
$query.= ' SET tag="'.$newName.'"';
@@ -126,8 +124,5 @@ class SemanticScuttle_Service_Tag extends SemanticScuttle_Service
$this->db->sql_query($query);
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>