Minahito
minah****@users*****
2006年 3月 8日 (水) 19:23:34 JST
Index: xoops2jp/html/modules/user/class/avatar_user_link.php diff -u xoops2jp/html/modules/user/class/avatar_user_link.php:1.1.2.1 xoops2jp/html/modules/user/class/avatar_user_link.php:1.1.2.2 --- xoops2jp/html/modules/user/class/avatar_user_link.php:1.1.2.1 Wed Mar 8 16:50:45 2006 +++ xoops2jp/html/modules/user/class/avatar_user_link.php Wed Mar 8 19:23:34 2006 @@ -33,6 +33,19 @@ return $force ? $this->db->queryF($sql) : $this->db->query($sql); } + + /** + * Delete all of link informations about a user specified. + * + * @return bool + */ + function deleteAllByUser(&$xoopsUser) + { + if (is_object($xoopsUser)) { + $criteria =& new Criteria('user_id', $xoopsUser->get('uid')); + return $this->deleteAll($criteria); + } + } } ?>