\OrderHistoryCore

Summary

Methods
Properties
Constants
changeIdOrderState()
getLastOrderState()
addWithemail()
add()
isValidated()
addWs()
$id_order
$id_order_state
$id_employee
$date_add
$date_upd
$definition
No constants found
No protected methods found
$webserviceParameters
N/A
No private methods found
No private properties found
N/A

Properties

$id_order

$id_order : integer

Type

integer — Order id

$id_order_state

$id_order_state : integer

Type

integer — Order status id

$id_employee

$id_employee : integer

Type

integer — Employee id for this history entry

$date_add

$date_add : string

Type

string — Object creation date

$date_upd

$date_upd : string

Type

string — Object last modification date

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

changeIdOrderState()

changeIdOrderState(integer  $new_order_state, \int/object  $id_order, boolean  $use_existing_payment = false) 

Sets the new state of the given order

Parameters

integer $new_order_state
\int/object $id_order
boolean $use_existing_payment

getLastOrderState()

getLastOrderState(integer  $id_order) : \OrderState|boolean

Returns the last order status

Parameters

integer $id_order

Returns

\OrderState|boolean

addWithemail()

addWithemail(boolean  $autodate = true, array  $template_vars = false, \Context  $context = null) : boolean

Parameters

boolean $autodate

Optional

array $template_vars

Optional

\Context $context

Optional

Returns

boolean

add()

add(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

isValidated()

isValidated() : integer

Returns

integer

addWs()

addWs() : boolean

Add method for webservice create resource Order History If sendemail=1 GET parameter is present sends email to customer otherwise does not

Returns

boolean