$notificationParams = array(
'pluginKey'=>$this->pkey,
'action'=>'increaseBalance',
'entityType'=>$this->pkey.'_increaseBalance',
'entityId'=>$entityId,
'userId'=>$receiver,
'time'=>$timeStamp
);
$notificationData = array(
'string'=>array(
'key'=>$this->pkey.'+increaseBalance_notification_string',
'vars'=>array(
'amount'=>$amount,
'fromUsername'=>$fromUsername,
'fromUrl'=>$fromUrl,
'reason'=>$detail
)
),
'avatar'=>$avatars[$avatarUser],
'url'=>$this->router->urlForRoute('ofcreditservice_log')
);
$notificationEvent = new OW_Event('notifications.add', $notificationParams, $notificationData); OW::getEventManager()->trigger($notificationEvent);