Minahito
minah****@users*****
2006年 10月 3日 (火) 17:17:55 JST
Index: xoops2jp/html/modules/pm/class/priv_msgs.php diff -u /dev/null xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.2.1 --- /dev/null Tue Oct 3 17:17:55 2006 +++ xoops2jp/html/modules/pm/class/priv_msgs.php Tue Oct 3 17:17:55 2006 @@ -0,0 +1,31 @@ +<?php +/** + * @package pm + * @version $Id: priv_msgs.php,v 1.1.2.1 2006/10/03 08:17:55 minahito Exp $ + */ + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +class PmPriv_msgsObject extends XoopsSimpleObject +{ + function PmPriv_msgsObject() + { + $this->initVar('msg_id', XOBJ_DTYPE_INT, '', true); + $this->initVar('msg_image', XOBJ_DTYPE_STRING, '', false, 100); + $this->initVar('subject', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('from_userid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('to_userid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('msg_time', XOBJ_DTYPE_INT, '0', true); + $this->initVar('msg_text', XOBJ_DTYPE_TEXT, '', true); + $this->initVar('read_msg', XOBJ_DTYPE_BOOL, '0', true); + } +} + +class PmPriv_msgsHandler extends XoopsObjectGenericHandler +{ + var $mTable = "priv_msgs"; + var $mPrimary = "msg_id"; + var $mClass = "PmPriv_msgsObject"; +} + +?>