X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FForeign_link.php;h=a964d87fdd9baa19e2a1fd024a74f9d3c5745c6c;hb=dd61ae8fbeee64c85f8186672292335592be1ff5;hp=e3f0cf1ee6f205132dd81144e800ba1cd4450331;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/classes/Foreign_link.php b/classes/Foreign_link.php index e3f0cf1ee6..a964d87fdd 100644 --- a/classes/Foreign_link.php +++ b/classes/Foreign_link.php @@ -22,10 +22,6 @@ class Foreign_link extends Managed_DataObject public $created; // datetime() not_null public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP - /* Static get */ - function staticGet($k,$v=null) - { return Memcached_DataObject::staticGet('Foreign_link',$k,$v); } - /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -137,7 +133,12 @@ class Foreign_link extends Managed_DataObject function getUser() { - return User::staticGet($this->user_id); + return User::getKV($this->user_id); + } + + function getProfile() + { + return Profile::getKV('id', $this->user_id); } // Make sure we only ever delete one record at a time