PHP Class Model\Message

Inheritance: extends Illuminate\Database\Eloquent\Model
Show file Open project: sendya/shadowsocks-panel Class Usage Examples

Public Properties

Property Type Description
$addTime 推送时间
$content
$enable
$id
$order 结束推送时间
$pushEndTime 消息类型: 0 正常消息(推送一次后将不会再次提示) 1 重复推送消息
$pushTime 内容
$pushUsers 添加时间
$type 推送用户 为空或-1值推送给所有用户 指定用户,使用json格式,例子{1,3,4,5,6,7,10,11}

Public Methods

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.

Method Details

deleteMessageById() public static method

Delete message by id
public static deleteMessageById ( $id ) : boolean
$id
return boolean

deleteOuttimeMessage() public static method

Delete push time out message
public static deleteOuttimeMessage ( ) : boolean
return boolean

getGlobalMessage() public static method

Get global message
public static getGlobalMessage ( ) : array
return array

getMessageById() public static method

Get message by id
public static getMessageById ( $id ) : mixed
$id
return mixed

getMessageByUid() public static method

Get push message by userId
public static getMessageByUid ( string $userId = '-1' ) : array
$userId string
return array

getPushMessage() public static method

Get push message array by end time.
public static getPushMessage ( integer $pushEndTime ) : array
$pushEndTime integer
return array

Property Details

$addTime public property

推送时间
public $addTime

$content public property

public $content

$enable public property

public $enable

$id public property

public $id

$order public property

结束推送时间
public $order

$pushEndTime public property

消息类型: 0 正常消息(推送一次后将不会再次提示) 1 重复推送消息
public $pushEndTime

$pushTime public property

内容
public $pushTime

$pushUsers public property

添加时间
public $pushUsers

$type public property

推送用户 为空或-1值推送给所有用户 指定用户,使用json格式,例子{1,3,4,5,6,7,10,11}
public $type