UNA
Loading...
Searching...
No Matches
BxDolPush Class Reference
Inheritance diagram for BxDolPush:
BxDolFactory iBxDolSingleton

Public Member Functions

 __clone ()
 
 send ($iProfileId, $aMessage, $bAddToQueue=false)
 

Static Public Member Functions

static getInstance ()
 
static getTags ($iProfileId=false)
 
static getNotificationsCount ($iProfileId=0, &$aBubbles=null)
 

Protected Attributes

 $_sAppId
 
 $_sRestApi
 

Constructor & Destructor Documentation

◆ __construct()

BxDolPush::__construct ( )
protected

Reimplemented from BxDolFactory.

Member Function Documentation

◆ __clone()

BxDolPush::__clone ( )

Prevent cloning the instance

◆ getInstance()

static BxDolPush::getInstance ( )
static

Get singleton instance of the class

Implements iBxDolSingleton.

◆ getNotificationsCount()

static BxDolPush::getNotificationsCount ( $iProfileId = 0,
& $aBubbles = null )
static
Parameters
$a- array to fill with notification counter per module
Returns
total number of notifications

◆ getTags()

static BxDolPush::getTags ( $iProfileId = false)
static

Get tags to send to PUSH server

Parameters
$iProfileId- profile ID
Returns
array of tags

Hooks:

'system', 'push_tags' - hook on get tags to send to PUSH server

  • $unit_name - equals system
  • $action - equals push_tags
  • $object_id - profile_id from current user
  • $sender_id - profile_id from current user
  • $extra_params - array of additional params with the following array keys:
    • tags - [array] by ref, array of tags, can be overridden in hook processing
      HOOKS
      hook-system-push_tags

The documentation for this class was generated from the following file: