forked from GNUsocial/gnu-social
pkeyGet is now static and more similar to getKV
Memcached_DataObject now defines * pkeyGetClass to avoid collision with Managed_DataObject pkeyGet * getClassKV to avoid collision with Managed_DataObject getKV
This commit is contained in:
@@ -57,32 +57,6 @@ class Twitter_synch_status extends Managed_DataObject
|
||||
public $created; // datetime not_null
|
||||
public $modified; // datetime not_null
|
||||
|
||||
/**
|
||||
* Get an instance by key
|
||||
*
|
||||
* @param string $k Key to use to lookup (usually 'foreign_id' for this class)
|
||||
* @param mixed $v Value to lookup
|
||||
*
|
||||
* @return Twitter_synch_status object found, or null for no hits
|
||||
*/
|
||||
static function staticGet($k, $v=null)
|
||||
{
|
||||
throw new Exception("Use pkeyGet() for this class.");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an instance by compound primary key
|
||||
*
|
||||
* @param array $kv key-value pair array
|
||||
*
|
||||
* @return Twitter_synch_status object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
function pkeyGet($kv)
|
||||
{
|
||||
return Memcached_DataObject::pkeyGet('Twitter_synch_status', $kv);
|
||||
}
|
||||
|
||||
/**
|
||||
* return table definition for DB_DataObject
|
||||
*
|
||||
|
Reference in New Issue
Block a user