swipestripe
[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: Modifier

Source Location: /code/modifiers/Modifier.php

Class Overview

DataObject
   |
   --Modifier

Represents the type of object that injects its details into an {@Link Order} Modification. Has a set interface so that all necessary details by Modification are available.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods


Child classes:

FlatFeeShipping
Flat fee shipping, flat fees can be added for each supported shipping country from the SiteConfig using FlatFeeShippingRates.
FlatFeeTax
Flat fee tax, flat fees can be added for each supported shipping country from the SiteConfig using FlatFeeShippingRates.

Class Details

[line 17]
Represents the type of object that injects its details into an {@Link Order} Modification. Has a set interface so that all necessary details by Modification are available.

Modifiers can be deleted so the pertinant details such as the Amount that they alter the Order by and the Description of what they are for, are both saved to the Modification

  • denormalised in a sense.




Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Variables

static $supported_methods = array(
   )

[line 25]

Methods supported, array of class names of classes that extend Modifier and have been enabled, e.g: FlatFeeShipping



Tags:

access:  public

Type:   Array


[ Top ]



Class Methods


static method combined_form_fields [line 35]

static FieldSet combined_form_fields( Order $order)

Get all the form fields from all the supported methods.



Parameters:

Order   $order  

[ Top ]

static method combined_form_requirements [line 59]

static FieldSet combined_form_requirements( unknown_type $order)

Get all the form requirements from all the supported methods.

//TODO is this really needed? all modifier fields go into Validation as required to perform validation on




Parameters:

unknown_type   $order  

[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:26 +1300 by phpDocumentor 1.4.4