Comments: on this page. Click to read or post your own.

Class EcommerceRole

Description

EcommerceRole is a DataObjectDecorator for the member class to allow additional member fields for the module. It has a base set of contact fields that can be statically called anywhere in the system using singleton('Member')->getEcommerceFields(); The OrderForm and MemberForm class uses this call.

Located in /ecommerce/code/model/EcommerceRole.php (line 11)

Object
   |
   --Extension
      |
      --DataObjectDecorator
         |
         --EcommerceRole
Method Summary
static void createOrMerge (data $data)
static void findCountry ()
static void findCountryTitle ($code $code)
void CountryTitle ()
void extraDBFields ()
void updateCMSFields ( &$fields)
Variables
Methods
static method createOrMerge (line 88)

Create a new member from the given data or merge with the built-in fields.

  • access: public
static void createOrMerge (data $data)
  • data $data: the array data from a submitted form.
static method findCountry (line 109)

Find the member country, if the member doesn't exist then return the Geoip visitor country based on their IP address.

static void findCountry ()
static method findCountryTitle (line 123)

Give the two letter code to resolve the title of the country.

static void findCountryTitle ($code $code)
  • $code $code: - the two letter country code you want the full name of.
CountryTitle (line 80)
void CountryTitle ()
extraDBFields (line 16)

Define extra database fields for this extension.

void extraDBFields ()

Redefinition of:
DataObjectDecorator::extraDBFields()
Define extra database fields
getEcommerceFields (line 50)

Return the member fields to be shown on order forms.

For orders made by existing members, this will be called on that memeber. For new orders, this will be called on the singleton object.

void getEcommerceFields ()
getEcommerceRequiredFields (line 69)
void getEcommerceRequiredFields ()
updateCMSFields (line 33)

Add fields to the member popup box in the CMS.

void updateCMSFields ( &$fields)

Redefinition of:
DataObjectDecorator::updateCMSFields()
This function is used to provide modifications to the form in the CMS by the decorator. By default, no changes are made.

Inherited Methods

Inherited From DataObjectDecorator

DataObjectDecorator::augmentDatabase()
DataObjectDecorator::augmentSQL()
DataObjectDecorator::augmentWrite()
DataObjectDecorator::extraDBFields()
DataObjectDecorator::loadExtraDBFields()
DataObjectDecorator::updateCMSFields()
DataObjectDecorator::updateFormFields()
DataObjectDecorator::updateSummaryFields()
DataObjectDecorator::updateSummaryFieldsExcludeExtra()

Inherited From Extension

Extension::setOwner()

Inherited From Object

Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:40:33 +1300 by phpDocumentor 1.3.2