[xoops-cvslog 2132] CVS update: xoops2jp/html/modules/base/class

Back to archive index

Minahito minah****@users*****
2006年 2月 3日 (金) 02:02:01 JST


Index: xoops2jp/html/modules/base/class/online.php
diff -u /dev/null xoops2jp/html/modules/base/class/online.php:1.1.2.1
--- /dev/null	Fri Feb  3 02:02:01 2006
+++ xoops2jp/html/modules/base/class/online.php	Fri Feb  3 02:02:01 2006
@@ -0,0 +1,32 @@
+<?php
+
+class BaseOnlineObject extends XoopsSimpleObject
+{
+	var $mModule = null;
+	
+	function BaseOnlineObject()
+	{
+		$this->initVar('online_uid', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('online_uname', XOBJ_DTYPE_STRING, '', true, 25);
+		$this->initVar('online_updated', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('online_module', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('online_ip', XOBJ_DTYPE_STRING, '', true, 15);
+	}
+	
+	function loadModule()
+	{
+		if ($this->get('online_module')) {
+			$handler =& xoops_gethandler('modules');
+			$this->mModule =& $handler->get($this->get('online_module'));
+		}
+	}
+}
+
+class BaseOnlineHandler extends XoopsObjectGenericHandler
+{
+	var $mTable = "online";
+	var $mPrimary = "";
+	var $mClass = "BaseOnlineObject";
+}
+
+?>


xoops-cvslog メーリングリストの案内
Back to archive index