\NotificationCore

Summary

Methods
Properties
Constants
__construct()
getLastElements()
getLastElementsIdsByType()
updateEmployeeLastElement()
$types
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$types

$types : 

Type

Methods

__construct()

__construct() 

getLastElements()

getLastElements() : array

getLastElements return all the notifications (new order, new customer registration, and new customer message) Get all the notifications

Returns

array —

containing the notifications

getLastElementsIdsByType()

getLastElementsIdsByType(string  $type, integer  $id_last_element) : array

getLastElementsIdsByType return all the element ids to show (order, customer registration, and customer message) Get all the element ids

Parameters

string $type

contains the field name of the Employee table

integer $id_last_element

contains the id of the last seen element

Returns

array —

containing the notifications

updateEmployeeLastElement()

updateEmployeeLastElement(string  $type) : boolean

updateEmployeeLastElement return 0 if the field doesn't exists in Employee table.

Updates the last seen element by the employee

Parameters

string $type

contains the field name of the Employee table

Returns

boolean —

if type exists or not