X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FProfile_list.php;h=8cf5d210f823c0012811e2a4c91cc6ebb6452708;hb=145fbf1130a72391a66c30698506d5bba8223b4f;hp=9bf66745c261efcee94333ac38f27f3b3b9c2144;hpb=1a9a8ea73032b0ded09a8ea9a4c0511401507090;p=quix0rs-gnu-social.git diff --git a/classes/Profile_list.php b/classes/Profile_list.php index 9bf66745c2..8cf5d210f8 100644 --- a/classes/Profile_list.php +++ b/classes/Profile_list.php @@ -86,19 +86,6 @@ class Profile_list extends Managed_DataObject ); } - /** - * return a profile_list record, given its tag and tagger. - * - * @param array $kv ideally array('tag' => $tag, 'tagger' => $tagger) - * - * @return Profile_list a Profile_list object with the given tag and tagger. - */ - - function pkeyGet($kv) - { - return Memcached_DataObject::pkeyGet('Profile_list', $kv); - } - /** * get the tagger of this profile_list object * @@ -107,7 +94,7 @@ class Profile_list extends Managed_DataObject function getTagger() { - return Profile::staticGet('id', $this->tagger); + return Profile::getKV('id', $this->tagger); } /** @@ -420,18 +407,6 @@ class Profile_list extends Managed_DataObject return $xs->getString(); } - /** - * return an xml string to represent this people tag - * as the subject of an activitystreams feed. - * - * @return string activitystreams subject - */ - - function asActivitySubject() - { - return $this->asActivityNoun('subject'); - } - /** * return an xml string to represent this people tag * as a noun in an activitystreams feed. @@ -615,7 +590,7 @@ class Profile_list extends Managed_DataObject * * @return mixed Profile_list on success, false on fail */ - static function saveNew($fields) { + static function saveNew(array $fields) { extract($fields); $ptag = new Profile_list(); @@ -683,7 +658,7 @@ class Profile_list extends Managed_DataObject if (!isset($mainpage) || empty($mainpage)) { $orig = clone($ptag); - $user = User::staticGet('id', $ptag->tagger); + $user = User::getKV('id', $ptag->tagger); if(!empty($user)) { $ptag->mainpage = common_local_url('showprofiletag', array('tag' => $ptag->tag, 'tagger' => $user->nickname)); } else { @@ -726,7 +701,7 @@ class Profile_list extends Managed_DataObject // XXX: This should be in Memcached_DataObject... eventually. - static function getAtCursor($fn, $args, $cursor, $count=20) + static function getAtCursor($fn, array $args, $cursor, $count=20) { $items = array(); @@ -899,7 +874,7 @@ class Profile_list extends Managed_DataObject * @return Profile_list results */ - static function getByKeys($keys) { + static function getByKeys(array $keys) { $cache = Cache::instance(); if (!empty($cache)) {