* @param string $dbname
* @param array $servers memcached servers to use for caching config info
*/
- static function setupDB($dbhost, $dbuser, $dbpass, $dbname, $servers)
+ static function setupDB($dbhost, $dbuser, $dbpass, $dbname, array $servers)
{
global $config;
}
static function cacheKey($k, $v) {
- return 'statusnet:' . self::$base . ':status_network:'.$k.':'.$v;
+ return 'gnusocial:' . self::$base . ':status_network:'.$k.':'.$v;
}
static function memGet($k, $v)
}
}
- function update($orig=null)
+ function update($dataObject=false)
{
- if (is_object($orig)) {
- $orig->decache(); # might be different keys
+ if (is_object($dataObject)) {
+ $dataObject->decache(); # might be different keys
}
- return parent::update($orig);
+ return parent::update($dataObject);
}
/**
return $result;
}
- function delete()
+ function delete($useWhere=false)
{
$this->decache(); # while we still have the values!
- return parent::delete();
+ return parent::delete($useWhere);
}
/**
*/
function getTags()
{
- $result = Status_network_tag::getTags($this->site_id);
-
- // XXX : for backwards compatibility
- if (empty($result)) {
- return explode('|', $this->tags);
- }
-
- return $result;
+ return Status_network_tag::getTags($this->site_id);
}
/**
* @param array tags
* @fixme only add/remove differentials
*/
- function setTags($tags)
+ function setTags(array $tags)
{
$this->clearTags();
foreach ($tags as $tag) {