コード例 #1
0
ファイル: Uptodate.php プロジェクト: hazaeluz/magento_connect
 /**
  * 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;
 }
コード例 #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);
 }
コード例 #3
0
 /**
  * Get HTML of condition string
  *
  * @return string
  */
 public function asHtml()
 {
     return Mage::helper('enterprise_customersegment')->__('Customer Address %s', parent::asHtml());
 }
コード例 #4
0
ファイル: Type.php プロジェクト: hientruong90/ee_14_installer
 /**
  * Define Type and value
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_order_address_type');
     $this->setValue('shipping');
 }
コード例 #5
0
ファイル: Amount.php プロジェクト: hazaeluz/magento_connect
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_shoppingcart_amount');
     $this->setValue(null);
 }
コード例 #6
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_customer_address_region');
     $this->setValue(1);
 }
コード例 #7
0
ファイル: Sales.php プロジェクト: hazaeluz/magento_connect
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_sales');
     $this->setValue(null);
 }
コード例 #8
0
ファイル: Default.php プロジェクト: jpbender/mage_virtual
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_customer_address_default');
     $this->setValue('default_billing');
 }
コード例 #9
0
ファイル: Newsletter.php プロジェクト: jpbender/mage_virtual
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType('enterprise_customersegment/segment_condition_customer_newsletter');
     $this->setValue(1);
 }