You are here

abstract class CommerceShippingQuote in Commerce Shipping 7

Hierarchy

Expanded class hierarchy of CommerceShippingQuote

1 string reference to 'CommerceShippingQuote'
quote_base.inc in plugins/quotes/quote_base/quote_base.inc

File

plugins/quotes/quote_base/CommerceShippingQuote.class.php, line 92
Contains the CommerceShippingQuote class and CommerceShippingQuoteInterface interface.

View source
abstract class CommerceShippingQuote implements CommerceShippingQuoteInterface {

  /**
   * Constructor.
   *
   * Initialize class variables.
   *
   * @param $settings
   *    Array of settings, could hold rule settings or values selected by the user.
   * @param $order
   *    The order for which operations should be done.
   */
  public function __construct($settings = array(), $order = NULL) {
    $this->settings = $settings;
    $this->order = $order;
  }
  public function settings_form(&$form, $rules_settings) {
  }
  public function form_label($order = NULL) {
    return '';
  }
  public function submit_form($pane_values, $checkout_pane, $order = NULL) {
    return array();
  }
  public function submit_form_validate($pane_form, $pane_values, $form_parents = array(), $order = NULL) {
  }
  public function calculate_quote($currency_code, $form_values = array(), $order = NULL, $pane_form = NULL, $pane_values = NULL) {
  }
  public function shipping_items_created($pane_values, $checkout_pane, $order = NULL) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CommerceShippingQuote::calculate_quote public function Do the actual shipping cost calculation. Overrides CommerceShippingQuoteInterface::calculate_quote 1
CommerceShippingQuote::form_label public function Function to dynamically set the label Overrides CommerceShippingQuoteInterface::form_label
CommerceShippingQuote::settings_form public function Used to customize the Rules settings form for rules activating the shipping quote. Overrides CommerceShippingQuoteInterface::settings_form 1
CommerceShippingQuote::shipping_items_created public function Called After shipping items is created. Overrides CommerceShippingQuoteInterface::shipping_items_created
CommerceShippingQuote::submit_form public function Allow quote to add an form displayed when the shipping quote is selected. Overrides CommerceShippingQuoteInterface::submit_form 1
CommerceShippingQuote::submit_form_validate public function Perform validation on submit_form Overrides CommerceShippingQuoteInterface::submit_form_validate 1
CommerceShippingQuote::__construct public function Constructor.