ZenMagick 0.9.6


org.zenmagick.model.order.ZMOrderStatus

Class ZMOrderStatus

ZMObject
|
+--ZMOrderStatus

public class ZMOrderStatus
extends ZMObject

Order status.

Author:
DerManoMann
Version:
$Id: ZMOrderStatus.php 2054 2009-03-12 03:41:22Z dermanomann $

Fields inherited from org.zenmagick.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.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMOrderStatus

public ZMOrderStatus()

Create new status. /


Method Detail

getComment

public string getComment()

Get the comment.

Returns:
The comment (might be empty).

getDateAdded

public string getDateAdded()

Get the date it was added.

Returns:
The date the status was changed.

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.

getName

public string getName()

Get the order status name.

Returns:
The order status name.

getOrderId

public int getOrderId()

Get the order id.

Returns:
The order id.

getOrderStatusId

public int getOrderStatusId()

Get the order status id.

This is the id corresponding with the name.

Returns:
The order status id.

hasComment

public boolean hasComment()

Checks if a comment exists for this status.

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

isCustomerNotified

public boolean isCustomerNotified()

Has the customer been notified about this change.

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

setComment

public void setComment(string comment)

Set the comment.

Parameters:
comment - The comment.

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.

setDateAdded

public void setDateAdded(string dateAdded)

Set the date it was added.

Parameters:
dateAdded - The date the status was changed.

setId

public void setId(int id)

Set the order status (history) id.

Parameters:
id - The order status id.

setName

public void setName(string name)

Set the order status name.

Parameters:
name - The order status name.

setOrderId

public void setOrderId(int orderId)

Set the order id.

Parameters:
orderId - The order id.

setOrderStatusId

public void setOrderStatusId(int orderStatusId)

Set the order status id.

Parameters:
orderStatusId - The order status id.

ZenMagick 0.9.6