protected function setPriceRule($rule_id)
    {
        $this->data_rule = array();

        if (is_numeric($rule_id)) {
            $this->data_rule = $this->price_rule->get($rule_id);
            if (empty($this->data_rule)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setPriceRule($rule_id)
    {
        $this->data_rule = array();

        if (is_numeric($rule_id)) {
            $this->data_rule = $this->price_rule->get($rule_id);
            if (empty($this->data_rule)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setPriceRule ( $ rule_id ) { $ this -> data_rule = array ( ) ; if ( is_numeric ( $ rule_id ) ) { $ this -> data_rule = $ this -> price_rule -> get ( $ rule_id ) ; if ( empty ( $ this -> data_rule ) ) { $ this -> outputHttpStatus ( 404 ) ; } } }
Returns an array of price rule data
@param null|integer $rule_id
Returns an array of price rule data