Property | Type | Description | |
---|---|---|---|
$addTime | 推送时间 | ||
$content | |||
$enable | |||
$id | |||
$order | 结束推送时间 | ||
$pushEndTime | 消息类型: 0 正常消息(推送一次后将不会再次提示) 1 重复推送消息 | ||
$pushTime | 内容 | ||
$pushUsers | 添加时间 | ||
$type | 推送用户 为空或-1值推送给所有用户 指定用户,使用json格式,例子{1,3,4,5,6,7,10,11} |
Method | 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 | ||
return | boolean |
public static deleteOuttimeMessage ( ) : boolean | ||
return | boolean |
public static getGlobalMessage ( ) : array | ||
return | array |
public static getMessageById ( $id ) : mixed | ||
$id | ||
return | mixed |
public static getMessageByUid ( string $userId = '-1' ) : array | ||
$userId | string | |
return | array |
public static getPushMessage ( integer $pushEndTime ) : array | ||
$pushEndTime | integer | |
return | array |