forked from GNUsocial/gnu-social
Plugins with classes that extend Managed_DataObject get better code reuse
The switch to having a function in Managed_DataObject is now being applied to plugins which can use this as well. There are some plugins that still use Memcached_DataObject, but these will be taken care of later.
This commit is contained in:
@@ -55,20 +55,6 @@ class ModLog extends Managed_DataObject
|
||||
public $grant; // 1 = grant, 0 = revoke
|
||||
public $created; // datetime
|
||||
|
||||
/**
|
||||
* Get an instance by key
|
||||
*
|
||||
* @param string $k Key to use to lookup (usually 'user_id' for this class)
|
||||
* @param mixed $v Value to lookup
|
||||
*
|
||||
* @return TagSub object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
function staticGet($k, $v=null)
|
||||
{
|
||||
return Managed_DataObject::staticGet('ModLog', $k, $v);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an instance by compound key
|
||||
*
|
||||
|
Reference in New Issue
Block a user