mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
ALL and SESSION constants for push
This commit is contained in:
parent
6e0936bd98
commit
2bae92f066
@ -40,12 +40,21 @@ class Push extends Msg
|
|||||||
*/
|
*/
|
||||||
protected $account_id;
|
protected $account_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Push to all clients / broadcast
|
||||||
|
*/
|
||||||
|
const ALL = 0;
|
||||||
|
/**
|
||||||
|
* Push to current session
|
||||||
|
*/
|
||||||
|
const SESSION = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param int $account_id =null account_id to push message too or
|
* @param int $account_id =null account_id to push message too or
|
||||||
* null: for current session only or 0 for whole instance / broadcast
|
* self::SESSION(=null): for current session only or self::ALL(=0) for whole instance / broadcast
|
||||||
*/
|
*/
|
||||||
public function __construct($account_id=null)
|
public function __construct($account_id=self::SESSION)
|
||||||
{
|
{
|
||||||
$this->account_id = $account_id;
|
$this->account_id = $account_id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user