<?php
-class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_Service
+class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
{
- var $tablename;
-
-
/**
* Returns the single service instance
*
$this->db->sql_query($query);
}
-
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>
<?php
-class SemanticScuttle_Service_CommonDescription extends SemanticScuttle_Service
+class SemanticScuttle_Service_CommonDescription extends SemanticScuttle_DbService
{
- var $tablename;
-
/**
* Returns the single service instance
*
$this->db->sql_query($query);
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>
<?php
-class SemanticScuttle_Service_SearchHistory extends SemanticScuttle_Service
+class SemanticScuttle_Service_SearchHistory extends SemanticScuttle_DbService
{
- var $tablename;
var $sizeSearchHistory;
/**
$this->db->sql_query($query);
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>
<?php
-class SemanticScuttle_Service_Tag extends SemanticScuttle_Service
+class SemanticScuttle_Service_Tag extends SemanticScuttle_DbService
{
- var $tablename;
-
/**
* Returns the single service instance
*
}
function renameTag($uId, $oldName, $newName) {
- $newname = $this->normalize($newname);
+ $newname = $this->normalize($newName);
$query = 'UPDATE `'. $this->getTableName() .'`';
$query.= ' SET tag="'.$newName.'"';
$this->db->sql_query($query);
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>
<?php
-class SemanticScuttle_Service_Tag2Tag extends SemanticScuttle_Service
+class SemanticScuttle_Service_Tag2Tag extends SemanticScuttle_DbService
{
- protected $tablename;
-
/**
* Returns the single service instance
*
$tsts->deleteAll();
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>
* The table must be updated for each modification of
* the relations between tags.
*/
-class SemanticScuttle_Service_TagCache extends SemanticScuttle_Service
+class SemanticScuttle_Service_TagCache extends SemanticScuttle_DbService
{
- var $tablename;
/**
* Returns the single service instance
$this->db->sql_query($query);
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>
<?php
-class SemanticScuttle_Service_TagStat extends SemanticScuttle_Service
+class SemanticScuttle_Service_TagStat extends SemanticScuttle_DbService
{
-
- var $tablename;
-
/**
* Returns the single service instance
*
$this->db->sql_query($query);
}
- // Properties
- function getTableName() { return $this->tablename; }
- function setTableName($value) { $this->tablename = $value; }
}
?>
<?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
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; }