/** * Set data with filtering * * @param mixed $key * @param mixed $value * @return Enterprise_CustomerSegment_Model_Segment_Condition_Sales_Salesamount */ public function setData($key, $value = null) { //filter key "value" if (is_array($key) && isset($key['value']) && $key['value'] !== null) { $key['value'] = (double) $key['value']; } elseif ($key == 'value' && $value !== null) { $value = (double) $value; } return parent::setData($key, $value); }
public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_sales_ordersnumber'); $this->setValue(null); }
public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_sales_purchasedquantity'); $this->setValue(null); }