53 public function id($format =
'n')
55 return $this->
getVar(
'msg_id', $format);
64 return $this->
getVar(
'msg_id', $format);
73 return $this->
getVar(
'msg_image', $format);
82 return $this->
getVar(
'subject', $format);
91 return $this->
getVar(
'from_userid', $format);
100 return $this->
getVar(
'to_userid', $format);
109 return $this->
getVar(
'msg_time', $format);
118 return $this->
getVar(
'msg_text', $format);
127 return $this->
getVar(
'read_msg', $format);
154 parent::__construct($db,
'priv_msgs',
'XoopsPrivmessage',
'msg_id',
'subject');
165 $qb = $this->db2->createXoopsQueryBuilder()
166 ->update($this->table,
'pm')
167 ->set(
'pm.read_msg',
':readmsg')
168 ->where(
'pm.msg_id = :msgid')
169 ->setParameter(
':readmsg', 1, \PDO::PARAM_INT)
170 ->setParameter(
':msgid', $pm->
getVar(
'msg_id'), \PDO::PARAM_INT);
setRead(XoopsPrivmessage &$pm)
getVar($key, $format= 's')
__construct(Connection $db=null)
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')