[xoops-cvslog 1874] CVS update: xoops2jp/html/modules/user/class

Back to archive index

Minahito minah****@users*****
2006年 1月 19日 (木) 21:12:16 JST


Index: xoops2jp/html/modules/user/class/ranks.php
diff -u /dev/null xoops2jp/html/modules/user/class/ranks.php:1.1.2.1
--- /dev/null	Thu Jan 19 21:12:16 2006
+++ xoops2jp/html/modules/user/class/ranks.php	Thu Jan 19 21:12:16 2006
@@ -0,0 +1,29 @@
+<?php
+
+class UserRanksObject extends XoopsSimpleObject
+{
+	function UserRanksObject()
+	{
+		$this->initVar('rank_id', XOBJ_DTYPE_INT, 0, true);
+		$this->initVar('rank_title', XOBJ_DTYPE_STRING, '', true, 50);
+		$this->initVar('rank_min', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('rank_max', XOBJ_DTYPE_INT, '0', true);
+		$this->initVar('rank_special', XOBJ_DTYPE_BOOL, '0', true);
+		$this->initVar('rank_image', XOBJ_DTYPE_STRING, '', false, 255);
+	}
+}
+
+class UserRanksHandler extends XoopsObjectGenericHandler
+{
+	var $mTable = "ranks";
+	var $mPrimary = "rank_id";
+	var $mClass = "UserRanksObject";
+
+	function delete(&$obj)
+	{
+		@unlink(XOOPS_UPLOAD_PATH . "/" . $obj->get('rank_image'));
+		return parent::delete($obj);
+	}
+}
+
+?>


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