You are here

public static function UCXF_FieldList::createField in Extra Fields Checkout Pane 7

Same name and namespace in other branches
  1. 6.2 class/UCXF_FieldList.class.php \UCXF_FieldList::createField()

Create a field based on pane type

@access public @static

Parameters

string $pane_type:

Return value

UCXF_Field

3 calls to UCXF_FieldList::createField()
UCXFApiTestCase::createFieldThroughAPI in ./uc_extra_fields_pane.test
Creates a field through the API and sets default values.
UCXF_FieldList::dbResultToField in class/UCXF_FieldList.class.php
Creates UCXF_Field objects from a database resource.
uc_extra_fields_pane_field_features_rebuild in ./uc_extra_fields_pane.features.inc
Implements hook_features_rebuild().

File

class/UCXF_FieldList.class.php, line 59
Contains the UCXF_FieldList class.

Class

UCXF_FieldList
This class is used to keep track of all loaded fields in one request. It's also used as a central place to request fields.

Code

public static function createField($pane_type) {
  return new UCXF_AddressField();
}