ZMObject
└─ZMWidget
└─ZMReservedQtyWidget
public class ZMReservedQtyWidget
extends ZMWidget
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| protected array | getStats() Get stats. |
| string | {@inheritDoc} |
| Methods inherited from org.zenmagick.mvc.widgets.ZMWidget | |
|---|---|
| getDescription, getTitle, isEnabled, render, setDescription, setEnabled, setTitle | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMReservedQtyWidget()
Create new instance.
protected array getStats()
Get stats.
public string render(ZMRequest request)
Display reserved qty.
This widget relies on the fact that arbitrary properties can be set to
ZMObjectbased classes. The quick edit plugin does exactly that by setting the current product for each row. That, in turn, is then used to calculate the reserved quantity for the given product.