Class

PrivateMsg

Package: PHPBoost\Member Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2016 10 24 Since: PHPBoost 1.6 - 2007 04 02 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: phpboost/member/PrivateMsg.class.php

This class provides methods to manage private message.

Methods summary
public static
# __static( )
public static integer
# count_conversations( integer $userid )

Counts the user's number of conversation.

public static
# start_conversation( integer $pm_to, string $pm_objet, string $pm_contents, integer $pm_from, boolean $system_pm = false )

Starts a conversation with another member.

public static
# send( integer $pm_to, integer $pm_idconvers, string $pm_contents, integer $pm_from, integer $pm_status, boolean $check_pm_before_send = true )

Answers to a conversation

public static
# delete_conversation( integer $pm_userid, integer $pm_idconvers, integer $pm_expd, boolean $pm_del, boolean $pm_update )

Deletes a conversation.

public static integer
# delete( integer $pm_to, integer $pm_idmsg, integer $pm_idconvers )

Deletes a private message, until the recipient has not read it.

Constants summary
boolean NOCHECK_PM_BOX
# false
boolean CHECK_PM_BOX
# true
boolean SYSTEM_PM
# true
boolean DEL_PM_CONVERS
# true
boolean UPDATE_MBR_PM
# false