Minahito
minah****@users*****
2006年 1月 12日 (木) 20:26:27 JST
Index: xoops2jp/html/modules/user/class/mailjob.php diff -u xoops2jp/html/modules/user/class/mailjob.php:1.1.2.1 xoops2jp/html/modules/user/class/mailjob.php:1.1.2.2 --- xoops2jp/html/modules/user/class/mailjob.php:1.1.2.1 Tue Jan 10 08:24:49 2006 +++ xoops2jp/html/modules/user/class/mailjob.php Thu Jan 12 20:26:27 2006 @@ -1,30 +1,30 @@ <?php -class UserMailjobObject +class UserMailjobObject extends XoopsSimpleObject { function UserMailjobObject() { $this->initVar('id', XOBJ_DTYPE_INT, '', true); $this->initVar('lastlogin', XOBJ_DTYPE_INT, '', false); - $this->initVar('lastlogin_flag', XOBJ_DTYPE_INT, '0', true); - $this->initVar('mailok', XOBJ_DTYPE_INT, '0', true); - $this->initVar('activeuser', XOBJ_DTYPE_INT, '0', true); + $this->initVar('lastlogin_flag', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('mailok', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('activeuser', XOBJ_DTYPE_BOOL, '0', true); $this->initVar('registdate', XOBJ_DTYPE_INT, '0', false); - $this->initVar('registdate_flag', XOBJ_DTYPE_INT, '0', true); - $this->initVar('sender', XOBJ_DTYPE_TXTBOX, '', false, 255, true); - $this->initVar('email', XOBJ_DTYPE_TXTBOX, '', false, 255, true); - $this->initVar('subject', XOBJ_DTYPE_TXTBOX, '', true, 255, true); - $this->initVar('body', XOBJ_DTYPE_TXTAREA, '', true, null, true); - $this->initVar('by_pm', XOBJ_DTYPE_INT, '0', true); - $this->initVar('by_email', XOBJ_DTYPE_INT, '0', true); + $this->initVar('registdate_flag', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('sender', XOBJ_DTYPE_STRING, '', false, 255); + $this->initVar('email', XOBJ_DTYPE_STRING, '', false, 255); + $this->initVar('subject', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('body', XOBJ_DTYPE_TEXT, '', true); + $this->initVar('by_pm', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('by_email', XOBJ_DTYPE_BOOL, '0', true); } } -class UserMailjobHandler +class UserMailjobHandler extends XoopsObjectGenericHandler { - $mTable = "mailjob"; - $mPrimary = "id"; - $mClass = "UserMailjobObject"; + var $mTable = "user_mailjob"; + var $mPrimary = "id"; + var $mClass = "UserMailjobObject"; } ?>