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

Back to archive index

Minahito minah****@users*****
2006年 1月 29日 (日) 00:49:28 JST


Index: xoops2jp/html/modules/base/class/smiles.php
diff -u /dev/null xoops2jp/html/modules/base/class/smiles.php:1.1.2.1
--- /dev/null	Sun Jan 29 00:49:28 2006
+++ xoops2jp/html/modules/base/class/smiles.php	Sun Jan 29 00:49:28 2006
@@ -0,0 +1,29 @@
+<?php
+
+class BaseSmilesObject extends XoopsSimpleObject
+{
+	function BaseSmilesObject()
+	{
+		$this->initVar('id', XOBJ_DTYPE_INT, '', true);
+		$this->initVar('code', XOBJ_DTYPE_STRING, '', true, 50);
+		$this->initVar('smile_url', XOBJ_DTYPE_STRING, '', true, 100);
+		$this->initVar('emotion', XOBJ_DTYPE_STRING, '', true, 75);
+		$this->initVar('display', XOBJ_DTYPE_BOOL, '0', true);
+	}
+}
+
+class BaseSmilesHandler extends XoopsObjectGenericHandler
+{
+	var $mTable = "smiles";
+	var $mPrimary = "id";
+	var $mClass = "BaseSmilesObject";
+	
+	function delete(&$obj)
+	{
+		@unlink(XOOPS_UPLOAD_PATH . "/" . $obj->get('smile_url'));
+		
+		parent::delete($obj);
+	}
+}
+
+?>


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