Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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);
 }
Exemplo n.º 3
0
 /**
  * Get HTML of condition string
  *
  * @return string
  */
 public function asHtml()
 {
     return Mage::helper('enterprise_customersegment')->__('Customer Address %s', parent::asHtml());
 }
Exemplo n.º 4
0
 /**
  * Define Type and value
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_order_address_type');
     $this->setValue('shipping');
 }
Exemplo n.º 5
0
 /**
  * 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);
 }
Exemplo n.º 7
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_sales');
     $this->setValue(null);
 }
Exemplo n.º 8
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_customer_address_default');
     $this->setValue('default_billing');
 }
Exemplo n.º 9
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_customer_newsletter');
     $this->setValue(1);
 }