Collections functions
General functions
Render functions
Theme permission functions
Resource functions

message_selectedseen()

Description

Mark all selected messages as seen

Parameters

ColumnTypeDefaultDescription
$messages
List $messages of message refs in JSON list format

Return

void

Location

include/message_functions.php lines 436 to 445

Definition

 
function message_selectedseen($messages)
    {
    global 
$userref;
 
    
$parameters = array("i",(int)$userref);
    
$messages json_decode($messagestrue);
    
$parameters array_merge($parametersps_param_fill($messages,"i"));
 
    
ps_query("UPDATE user_message SET seen = '1' WHERE user = ? AND ref IN (" ps_param_insert(count($messages)) . ")"$parameters);
    }

This article was last updated 26th September 2022 14:05 Europe/London time based on the source file dated 13th September 2022 10:20 Europe/London time.