Свойство | Type | Description | |
---|---|---|---|
$addTime | 推送时间 | ||
$content | |||
$enable | |||
$id | |||
$order | 结束推送时间 | ||
$pushEndTime | 消息类型: 0 正常消息(推送一次后将不会再次提示) 1 重复推送消息 | ||
$pushTime | 内容 | ||
$pushUsers | 添加时间 | ||
$type | 推送用户 为空或-1值推送给所有用户 指定用户,使用json格式,例子{1,3,4,5,6,7,10,11} |
Méthode | Description | |
---|---|---|
deleteMessageById ( $id ) : boolean | Delete message by id | |
deleteOuttimeMessage ( ) : boolean | Delete push time out message | |
getGlobalMessage ( ) : array | Get global message | |
getMessageById ( $id ) : mixed | Get message by id | |
getMessageByUid ( string $userId = '-1' ) : array | Get push message by userId | |
getPushMessage ( integer $pushEndTime ) : array | Get push message array by end time. |
public static deleteMessageById ( $id ) : boolean | ||
$id | ||
Résultat | boolean |
public static deleteOuttimeMessage ( ) : boolean | ||
Résultat | boolean |
public static getGlobalMessage ( ) : array | ||
Résultat | array |
public static getMessageById ( $id ) : mixed | ||
$id | ||
Résultat | mixed |
public static getMessageByUid ( string $userId = '-1' ) : array | ||
$userId | string | |
Résultat | array |
public static getPushMessage ( integer $pushEndTime ) : array | ||
$pushEndTime | integer | |
Résultat | array |