summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service/User.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-24 09:10:05 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-24 09:10:05 +0000
commit5d11ae2fd5a88b5605aa70167516a571822f0e06 (patch)
tree5403c5da4f7d42e65ce9ba268da36fecae0e1b1a /src/SemanticScuttle/Service/User.php
parentcc1a0b1e9cc2cecdae9d126f1489ee3f12dca531 (diff)
downloadsemanticscuttle-5d11ae2fd5a88b5605aa70167516a571822f0e06.tar.gz
semanticscuttle-5d11ae2fd5a88b5605aa70167516a571822f0e06.tar.bz2
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/User.php')
-rw-r--r--src/SemanticScuttle/Service/User.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/SemanticScuttle/Service/User.php b/src/SemanticScuttle/Service/User.php
index 49951d1..bc9ebfe 100644
--- a/src/SemanticScuttle/Service/User.php
+++ b/src/SemanticScuttle/Service/User.php
@@ -1,13 +1,11 @@
<?php
-class SemanticScuttle_Service_User extends SemanticScuttle_Service
+class SemanticScuttle_Service_User extends SemanticScuttle_DbService
{
- protected $db;
protected $fields = array(
'primary' => 'uId',
'username' => 'username',
'password' => 'password');
protected $profileurl;
- protected $tablename;
protected $sessionkey;
protected $cookiekey;
protected $cookietime = 1209600; // 2 weeks
@@ -569,10 +567,6 @@ class SemanticScuttle_Service_User extends SemanticScuttle_Service
return $_SESSION['sessionStable'] == 1;
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
-
function getFieldName($field) { return $this->fields[$field]; }
function setFieldName($field, $value) { $this->fields[$field] = $value; }