Msg
in package
Class Msg See and write messages to other users
Table of Contents
- cntReceivers() : mixed
- count receivers
- cntTypes() : int
- Zaehlt die Nachrichten pro typ, 'box' bzw reiter
- getAll() : string
- Zeigt die Nachrichten eines Members Template: message_table.tpl.php
- getByID() : array<string|int, mixed>
- Holt die Message des Users anhand der Msg-ID User wird innerhalb der Funktion geprueft
- getContactIDs() : array<string|int, mixed>
- Get's all "contact" user-ids:
- getContacts() : string
- Erzeugt eine Cloud aller Leute, die geschrieben haben Experimental.
- getFromIDsAsResult() : bool|mysqli_result
- Get's all receivers id's and the their amount of msg
- getReceiverIDs() : array<string|int, mixed>
- For more than one receiver Get's array of receiver ids others than the main receiver
- getSQL() : array<string|int, mixed>
- Returns the needed sql select as an array
- writeAlert() : int
- Schreibt eine Email an den, der per Email benachrichtigt werden will, dass eine PM eingetroffen ist
- writePM() : array<string|int, mixed>
- writes Post-Msg and Get-Msg in user_messages_header Also message one time in user_messages_body
Methods
cntReceivers()
count receivers
public
static cntReceivers( $msg_id) : mixed
Parameters
Return values
mixed —cntTypes()
Zaehlt die Nachrichten pro typ, 'box' bzw reiter
public
static cntTypes(string $strType[, string $PUID = '' ]) : int
Parameters
- $strType : string
-
- in, out, saved, with, new
- $PUID : string = ''
-
- PUID or user.id
Return values
int —- Anzahl oder 0
getAll()
Zeigt die Nachrichten eines Members Template: message_table.tpl.php
public
static getAll([string $strBox = '' ], int $nPos[, array<string|int, mixed> $saAtt = [] ][, bool $bShowNavi = true ]) : string
Parameters
- $strBox : string = ''
-
- inbox, inbox_new, outbox, saved, member, member_export
- $nPos : int
- $saAtt : array<string|int, mixed> = []
-
- fuer seiten-navi und sql
- $bShowNavi : bool = true
Return values
string —Anzahl Msg
getByID()
Holt die Message des Users anhand der Msg-ID User wird innerhalb der Funktion geprueft
public
static getByID(int $nID[, bool $bReply = false ]) : array<string|int, mixed>
Parameters
- $nID : int
-
Message ID
- $bReply : bool = false
-
- exception for re_msg_id
Return values
array<string|int, mixed> —Message
getContactIDs()
Get's all "contact" user-ids:
public
static getContactIDs() : array<string|int, mixed>
Return values
array<string|int, mixed> —getContacts()
Erzeugt eine Cloud aller Leute, die geschrieben haben Experimental.
public
static getContacts(int $nWeeks) : string
Parameters
- $nWeeks : int
Return values
string —mit allem
getFromIDsAsResult()
Get's all receivers id's and the their amount of msg
public
static getFromIDsAsResult(int $nWeeks) : bool|mysqli_result
Parameters
- $nWeeks : int
Return values
bool|mysqli_result —getReceiverIDs()
For more than one receiver Get's array of receiver ids others than the main receiver
public
static getReceiverIDs(int $msg_id, int $to_id) : array<string|int, mixed>
Parameters
- $msg_id : int
- $to_id : int
-
- the main receiver
Return values
array<string|int, mixed> —getSQL()
Returns the needed sql select as an array
public
static getSQL( $strBox, $nPos, $saAtt) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —[0] = select count, [1] = found rows, [4] select ... limit
writeAlert()
Schreibt eine Email an den, der per Email benachrichtigt werden will, dass eine PM eingetroffen ist
public
static writeAlert(array<string|int, mixed> $saUserMessage, int $nMessageID) : int
Parameters
- $saUserMessage : array<string|int, mixed>
- $nMessageID : int
Return values
int —$bSend
writePM()
writes Post-Msg and Get-Msg in user_messages_header Also message one time in user_messages_body
public
static writePM([array<string|int, mixed> $saMsg = [] ][, array<string|int, mixed> $saTo = [] ]) : array<string|int, mixed>
Parameters
- $saMsg : array<string|int, mixed> = []
-
: subject, message, party_id, status from_user_id, to_user_id to_user_id could be an array
- $saTo : array<string|int, mixed> = []
-
: receivers public_uid