forked from GNUsocial/gnu-social
Updating all Memcached_DataObject extended classes to Managed_DataObject
In some brief tests, this causes no problems. In this state however, you would need to modify DB_DataObject to have a static declaration of staticget (and probably pkeyGet). The next commit will change the staticGet overload to a unique function name (like getKV for getKeyValue), which means we can properly call the function by PHP Strict Standards.
This commit is contained in:
@@ -32,7 +32,7 @@ if (!defined('STATUSNET')) {
|
||||
|
||||
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
|
||||
|
||||
class GNUsocialProfileExtensionField extends Memcached_DataObject
|
||||
class GNUsocialProfileExtensionField extends Managed_DataObject
|
||||
{
|
||||
public $__table = 'GNUsocialProfileExtensionField';
|
||||
public $id; // int(11)
|
||||
@@ -41,17 +41,6 @@ class GNUsocialProfileExtensionField extends Memcached_DataObject
|
||||
public $description; // text
|
||||
public $type; // varchar(256)
|
||||
|
||||
/**
|
||||
*
|
||||
* k key
|
||||
* v value
|
||||
*/
|
||||
function staticGet($k,$v=NULL)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('GNUsocialProfileExtensionField',$k,$v);
|
||||
}
|
||||
|
||||
|
||||
function table()
|
||||
{
|
||||
return array('id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
|
||||
|
||||
@@ -32,7 +32,7 @@ if (!defined('STATUSNET')) {
|
||||
|
||||
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
|
||||
|
||||
class GNUsocialProfileExtensionResponse extends Memcached_DataObject
|
||||
class GNUsocialProfileExtensionResponse extends Managed_DataObject
|
||||
{
|
||||
public $__table = 'GNUsocialProfileExtensionResponse';
|
||||
public $id; // int(11)
|
||||
@@ -40,17 +40,6 @@ class GNUsocialProfileExtensionResponse extends Memcached_DataObject
|
||||
public $profile_id; // int(11)
|
||||
public $value; // text
|
||||
|
||||
/**
|
||||
*
|
||||
* k key
|
||||
* v value
|
||||
*/
|
||||
function staticGet($k,$v=NULL)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('GNUsocialProfileExtensionResponse',$k,$v);
|
||||
}
|
||||
|
||||
|
||||
function table()
|
||||
{
|
||||
return array('id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
|
||||
|
||||
@@ -32,7 +32,7 @@ if (!defined('STATUSNET')) {
|
||||
|
||||
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
|
||||
|
||||
class GNUsocialPhoto extends Memcached_DataObject
|
||||
class GNUsocialPhoto extends Managed_DataObject
|
||||
{
|
||||
public $__table = 'GNUsocialPhoto';
|
||||
public $id; // int(11)
|
||||
@@ -42,17 +42,6 @@ class GNUsocialPhoto extends Memcached_DataObject
|
||||
public $thumb_uri; // varchar(512)
|
||||
public $title; // varchar(512)
|
||||
public $photo_description; // text
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* k key
|
||||
* v value
|
||||
*/
|
||||
function staticGet($k,$v=NULL)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('GNUsocialPhoto',$k,$v);
|
||||
}
|
||||
|
||||
/* function delete()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user