ZenMagick 0.9.8


org.zenmagick.store.model.order.ZMOrderStatus
\store\model\order\ZMOrderStatus.php at line 34

Class ZMOrderStatus

ZMObject
└─ZMOrderStatus

public class ZMOrderStatus
extends ZMObject

Order status.

Author:
DerManoMann
Version:
$Id: ZMOrderStatus.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMOrderStatus()

Create new status.

Method Summary
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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\order\ZMOrderStatus.php at line 45

ZMOrderStatus

public ZMOrderStatus()

Create new status.


Method Detail

\store\model\order\ZMOrderStatus.php at line 121

getComment

public string getComment()

Get the comment.

Returns:
The comment (might be empty).

\store\model\order\ZMOrderStatus.php at line 100

getDateAdded

public string getDateAdded()

Get the date it was added.

Returns:
The date the status was changed.

\store\model\order\ZMOrderStatus.php at line 70

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.

\store\model\order\ZMOrderStatus.php at line 93

getName

public string getName()

Get the order status name.

Returns:
The order status name.

\store\model\order\ZMOrderStatus.php at line 77

getOrderId

public int getOrderId()

Get the order id.

Returns:
The order id.

\store\model\order\ZMOrderStatus.php at line 86

getOrderStatusId

public int getOrderStatusId()

Get the order status id.

This is the id corresponding with the name.

Returns:
The order status id.

\store\model\order\ZMOrderStatus.php at line 114

hasComment

public boolean hasComment()

Checks if a comment exists for this status.

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

\store\model\order\ZMOrderStatus.php at line 107

isCustomerNotified

public boolean isCustomerNotified()

Has the customer been notified about this change.

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

\store\model\order\ZMOrderStatus.php at line 170

setComment

public void setComment(string comment)

Set the comment.

Parameters:
comment - The comment.

\store\model\order\ZMOrderStatus.php at line 163

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.

\store\model\order\ZMOrderStatus.php at line 156

setDateAdded

public void setDateAdded(string dateAdded)

Set the date it was added.

Parameters:
dateAdded - The date the status was changed.

\store\model\order\ZMOrderStatus.php at line 128

setId

public void setId(int id)

Set the order status (history) id.

Parameters:
id - The order status id.

\store\model\order\ZMOrderStatus.php at line 149

setName

public void setName(string name)

Set the order status name.

Parameters:
name - The order status name.

\store\model\order\ZMOrderStatus.php at line 135

setOrderId

public void setOrderId(int orderId)

Set the order id.

Parameters:
orderId - The order id.

\store\model\order\ZMOrderStatus.php at line 142

setOrderStatusId

public void setOrderStatusId(int orderStatusId)

Set the order status id.

Parameters:
orderStatusId - The order status id.

ZenMagick 0.9.8