ZenMagick 0.9.10


zenmagick.store.shared.model.order\ZMOrderStatus
model\order\ZMOrderStatus.php at line 33

Class ZMOrderStatus

ZMObject
└─ZMOrderStatus

public class ZMOrderStatus
extends ZMObject

Order status.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new status.

string

getComment()

Get the comment.

string

getDateAdded()

Get the date it was added.

int

getId()

Get the order status (history) id.

string

getName()

Get the order status name.

int

getOrderId()

Get the order id.

int

getOrderStatusId()

Get the order status id.

boolean

hasComment()

Checks if a comment exists for this status.

boolean

isCustomerNotified()

Has the customer been notified about this change.

void

setComment(string comment)

Set the comment.

void

setCustomerNotified(boolean customerNotified)

Set whether the customer been notified about this change.

void

setDateAdded(string dateAdded)

Set the date it was added.

void

setId(int id)

Set the order status (history) id.

void

setName(string name)

Set the order status name.

void

setOrderId(int orderId)

Set the order id.

void

setOrderStatusId(int orderStatusId)

Set the order status id.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\order\ZMOrderStatus.php at line 44

__construct

public void __construct()

Create new status.


model\order\ZMOrderStatus.php at line 120

getComment

public string getComment()

Get the comment.

Returns:
The comment (might be empty).

model\order\ZMOrderStatus.php at line 99

getDateAdded

public string getDateAdded()

Get the date it was added.

Returns:
The date the status was changed.

model\order\ZMOrderStatus.php at line 69

getId

public int getId()

Get the order status (history) id.

This is the primary key id of the order_status_history table.

Returns:
The order status id.

model\order\ZMOrderStatus.php at line 92

getName

public string getName()

Get the order status name.

Returns:
The order status name.

model\order\ZMOrderStatus.php at line 76

getOrderId

public int getOrderId()

Get the order id.

Returns:
The order id.

model\order\ZMOrderStatus.php at line 85

getOrderStatusId

public int getOrderStatusId()

Get the order status id.

This is the id corresponding with the name.

Returns:
The order status id.

model\order\ZMOrderStatus.php at line 113

hasComment

public boolean hasComment()

Checks if a comment exists for this status.

Returns:
true if a comment exist, false if not.

model\order\ZMOrderStatus.php at line 106

isCustomerNotified

public boolean isCustomerNotified()

Has the customer been notified about this change.

Returns:
true if the customer has been notified, false if not.

model\order\ZMOrderStatus.php at line 169

setComment

public void setComment(string comment)

Set the comment.

Parameters:
comment - The comment.

model\order\ZMOrderStatus.php at line 162

setCustomerNotified

public void setCustomerNotified(boolean customerNotified)

Set whether the customer been notified about this change.

Parameters:
customerNotified - true if the customer has been notified, false if not.

model\order\ZMOrderStatus.php at line 155

setDateAdded

public void setDateAdded(string dateAdded)

Set the date it was added.

Parameters:
dateAdded - The date the status was changed.

model\order\ZMOrderStatus.php at line 127

setId

public void setId(int id)

Set the order status (history) id.

Parameters:
id - The order status id.

model\order\ZMOrderStatus.php at line 148

setName

public void setName(string name)

Set the order status name.

Parameters:
name - The order status name.

model\order\ZMOrderStatus.php at line 134

setOrderId

public void setOrderId(int orderId)

Set the order id.

Parameters:
orderId - The order id.

model\order\ZMOrderStatus.php at line 141

setOrderStatusId

public void setOrderStatusId(int orderStatusId)

Set the order status id.

Parameters:
orderStatusId - The order status id.

ZenMagick 0.9.10