[xoops-cvslog 3760] CVS update: xoops2jp/html/modules/base/kernel

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 7月 28日 (金) 17:58:27 JST


Index: xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php
diff -u xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.8 xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.9
--- xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.8	Thu Jul 27 18:30:24 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php	Fri Jul 28 17:58:27 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package legacy
- * @version $Id: Legacy_EventFunctions.class.php,v 1.1.2.8 2006/07/27 09:30:24 minahito Exp $
+ * @version $Id: Legacy_EventFunctions.class.php,v 1.1.2.9 2006/07/28 08:58:27 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -180,6 +180,19 @@
 		
 		$render->setAttribute('xoops_notification', $xoops_notification);
 	}
+	
+	/**
+	 * This member function is added to 'User_UserViewAction.GetUserPosts'.
+	 * Recount posts of $xoopsUser in the comment system.
+	 * 
+	 * @static
+	 */
+	function recountPost(&$posts, $xoopsUser)
+	{
+		$handler =& xoops_gethandler('comment');
+		$criteria =& new Criteria('com_uid', $xoopsUser->get('uid'));
+		$posts += $handler->getCount($criteria);
+	}
 }
 
 ?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る