ZMObject
|
+--ZMAttribute
public class ZMAttribute
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMAttribute(int id, string name, string type) Create new attribute. |
|
| Method Summary | |
|---|---|
| void | addValue(ZMAttributeValue value) Add an attribute value. |
| void | Clear all values. |
| string | Get the attribute comment. |
| int | getId() Get the attribute id. |
| string | getName() Get the attribute name. |
| int | Get the product id. |
| int | Get the attribute sort order. |
| string | getType() Get the attribute type. |
| array | Get the attribute values. |
| void | removeValue(mixed value) Remove an attribute value. |
| void | setComment(string comment) Set the attribute comment. |
| void | setId(int id) Set the attribute id. |
| void | setName(string name) Set the attribute name. |
| void | setProductId(int productId) Set the product id. |
| void | setSortOrder(int sortOrder) Set the attribute sort order. |
| string | setType(mixed type) Set the attribute type. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMAttribute(int id, string name, string type)
Create new attribute.
public void addValue(ZMAttributeValue value)
Add an attribute value.
ZMAttributeValue.public void clearValues()
Clear all values. /
public string getComment()
Get the attribute comment.
public int getId()
Get the attribute id.
public string getName()
Get the attribute name.
public int getProductId()
Get the product id.
public int getSortOrder()
Get the attribute sort order.
public string getType()
Get the attribute type.
public array getValues()
Get the attribute values.
ZMAttributeValue objects.public void removeValue(mixed value)
Remove an attribute value.
ZMAttributeValue instance or a value id.public void setComment(string comment)
Set the attribute comment.
public void setId(int id)
Set the attribute id.
public void setName(string name)
Set the attribute name.
public void setProductId(int productId)
Set the product id.
public void setSortOrder(int sortOrder)
Set the attribute sort order.
public string setType(mixed type)
Set the attribute type.
A single attribute.