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:
@@ -26,7 +26,7 @@ if (!defined('STATUSNET')) {
|
||||
* @package Hub
|
||||
* @author Brion Vibber <brion@status.net>
|
||||
*/
|
||||
class HubSub extends Memcached_DataObject
|
||||
class HubSub extends Managed_DataObject
|
||||
{
|
||||
public $__table = 'hubsub';
|
||||
|
||||
@@ -40,11 +40,6 @@ class HubSub extends Memcached_DataObject
|
||||
public $created;
|
||||
public $modified;
|
||||
|
||||
public /*static*/ function staticGet($topic, $callback)
|
||||
{
|
||||
return parent::staticGet(__CLASS__, 'hashkey', self::hashkey($topic, $callback));
|
||||
}
|
||||
|
||||
protected static function hashkey($topic, $callback)
|
||||
{
|
||||
return sha1($topic . '|' . $callback);
|
||||
|
Reference in New Issue
Block a user