function XmobileSession()
 {
     XoopsTableObject::XoopsTableObject();
     // define object elements
     $this->initVar('session_id', XOBJ_DTYPE_TXTBOX, '', true, 32);
     $this->initVar('uid', XOBJ_DTYPE_INT, '0', true);
     $this->initVar('subscriber_id', XOBJ_DTYPE_TXTBOX, '', false, 40);
     $this->initVar('ip_address', XOBJ_DTYPE_TXTBOX, '', false, 15);
     $this->initVar('php_session_id', XOBJ_DTYPE_TXTBOX, '', true, 32);
     $this->initVar('last_access', XOBJ_DTYPE_INT, time(), true);
     $this->initVar('user_agent', XOBJ_DTYPE_TXTBOX, '', false, 255);
     // define primary key
     $this->setKeyFields(array('session_id'));
 }
 function &exportWpObject()
 {
     $wp_object = parent::exportWpObject();
     $wp_object->comment_type = $this->getVar('comment_type');
     return $wp_object;
 }