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:
@@ -55,23 +55,6 @@ class QnA_Question extends Managed_DataObject
|
||||
public $closed; // int (boolean) whether a question is closed
|
||||
public $created; // datetime
|
||||
|
||||
/**
|
||||
* Get an instance by compound key
|
||||
*
|
||||
* This is a utility method to get a single instance with a given set of
|
||||
* key-value pairs. Usually used for the primary key for a compound key; thus
|
||||
* the name.
|
||||
*
|
||||
* @param array $kv array of key-value mappings
|
||||
*
|
||||
* @return Bookmark object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
function pkeyGet($kv)
|
||||
{
|
||||
return Memcached_DataObject::pkeyGet('QnA_Question', $kv);
|
||||
}
|
||||
|
||||
/**
|
||||
* The One True Thingy that must be defined and declared.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user