PHP Class Model\Message

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: sendya/shadowsocks-panel Class Usage Examples

Méthodes publiques

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

Méthodes publiques

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.

Method Details

deleteMessageById() public static méthode

Delete message by id
public static deleteMessageById ( $id ) : boolean
$id
Résultat boolean

deleteOuttimeMessage() public static méthode

Delete push time out message
public static deleteOuttimeMessage ( ) : boolean
Résultat boolean

getGlobalMessage() public static méthode

Get global message
public static getGlobalMessage ( ) : array
Résultat array

getMessageById() public static méthode

Get message by id
public static getMessageById ( $id ) : mixed
$id
Résultat mixed

getMessageByUid() public static méthode

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

getPushMessage() public static méthode

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

Property Details

$addTime public_oe property

推送时间
public $addTime

$content public_oe property

public $content

$enable public_oe property

public $enable

$id public_oe property

public $id

$order public_oe property

结束推送时间
public $order

$pushEndTime public_oe property

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

$pushTime public_oe property

内容
public $pushTime

$pushUsers public_oe property

添加时间
public $pushUsers

$type public_oe property

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