<?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";
}

?>
