/** * Customize default operator input by type mapper for some types * @return array */ public function getDefaultOperatorInputByType() { if (null === $this->_defaultOperatorInputByType) { parent::getDefaultOperatorInputByType(); $this->_defaultOperatorInputByType['numeric'] = array('>=', '<=', '>', '<'); } return $this->_defaultOperatorInputByType; }
/** * Set data with filtering * * @param mixed $key * @param mixed $value * @return Enterprise_CustomerSegment_Model_Segment_Condition_Customer_Newsletter */ public function setData($key, $value = null) { //filter key "value" if (is_array($key) && isset($key['value']) && $key['value'] !== null) { $key['value'] = (int) $key['value']; } elseif ($key == 'value' && $value !== null) { $value = (int) $value; } return parent::setData($key, $value); }
/** * Get HTML of condition string * * @return string */ public function asHtml() { return Mage::helper('enterprise_customersegment')->__('Customer Address %s', parent::asHtml()); }
/** * Define Type and value * */ public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_order_address_type'); $this->setValue('shipping'); }
/** * Class constructor */ public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_shoppingcart_amount'); $this->setValue(null); }
/** * Class constructor */ public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_customer_address_region'); $this->setValue(1); }
/** * Class constructor */ public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_sales'); $this->setValue(null); }
/** * Class constructor */ public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_customer_address_default'); $this->setValue('default_billing'); }
/** * Class constructor */ public function __construct() { parent::__construct(); $this->setType('enterprise_customersegment/segment_condition_customer_newsletter'); $this->setValue(1); }