\MessageCore

Summary

Methods
Properties
Constants
getMessageByCartId()
getMessagesByOrderId()
getMessagesByCartId()
markAsReaded()
$id
$message
$id_cart
$id_order
$id_customer
$id_employee
$private
$date_add
$definition
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : 

Type

$message

$message : string

Type

string — message content

$id_cart

$id_cart : integer

Type

integer — Cart ID (if applicable)

$id_order

$id_order : integer

Type

integer — Order ID (if applicable)

$id_customer

$id_customer : integer

Type

integer — Customer ID (if applicable)

$id_employee

$id_employee : integer

Type

integer — Employee ID (if applicable)

$private

$private : boolean

Type

boolean — Message is not displayed to the customer

$date_add

$date_add : string

Type

string — Object creation date

$definition

$definition : 

Type

Methods

getMessageByCartId()

getMessageByCartId(integer  $id_cart) : array

Return the last message from cart

Parameters

integer $id_cart

Cart ID

Returns

array —

Message

getMessagesByOrderId()

getMessagesByOrderId(integer  $id_order, boolean  $private = false, \Context  $context = null) : array

Return messages from Order ID

Parameters

integer $id_order

Order ID

boolean $private

return WITH private messages

\Context $context

Returns

array —

Messages

getMessagesByCartId()

getMessagesByCartId(  $id_cart, boolean  $private = false, \Context  $context = null) : array

Return messages from Cart ID

Parameters

$id_cart
boolean $private

return WITH private messages

\Context $context

Returns

array —

Messages

markAsReaded()

markAsReaded(integer  $id_message,   $id_employee) 

Registered a message 'readed'

Parameters

integer $id_message

Message ID

$id_employee