Copied!
  • property string $display_type Determines how Constant Contact renders a single_select or multi_select field.
  • property bool $allow_negative For type number, determines if a value can be negative. By default, this value is false for the type number.
  • property int $decimal_places For types number and currency, determines the number of decimal places possible in the value.
  • property string $currency_code For type currency, specifies the three-letter currency code to assign.
  • property bool $integer For types number and currency, determines whether the custom field should store only whole numbers (integers) without decimal values. If the integer is set to false, the decimal_places must be between 1 and 4.
  • property string $display_format Specifies the display format for date fields in the user interface. If not specified for a date type field, defaults to YYYY-MM-DD format. Valid only for version 2 type dates (values are stored as actual dates to support date comparisons and validations).
CloneableInstantiable
Methods
public PHPFUI\ConstantContact\Definition\Base::__construct(array $initialValues = [])
public PHPFUI\ConstantContact\Definition\Base::__get(string $field) : ?mixed
 

Unset fields will return null

public PHPFUI\ConstantContact\Definition\Base::__set(string $field, ?mixed $value)
 
  • return mixed value being set to allow for assignment chaining
public PHPFUI\ConstantContact\Definition\Base::getData() : array
 
  • return array representation of data
public PHPFUI\ConstantContact\Definition\Base::getFields() : array
 
  • return array all the valid fields for the object. Index is field name and value is the type.
public PHPFUI\ConstantContact\Definition\Base::getJSON() : string
 
  • return string pretty print JSON
public PHPFUI\ConstantContact\Definition\Base::toArray() : array
 

More descriptive alternative to getData()

  • return array representation of data
Properties
protected static array $fields = ['display_type' => 'string', 'allow_negative' => 'bool', 'decimal_places' => 'int', 'currency_code' => 'string', 'integer' => 'bool', 'display_format' => 'string']
protected static array PHPFUI\ConstantContact\Definition\Base::$maxLength = []
 
  • var array<string,int> maximum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$minLength = []
 
  • var array<string,int> minimum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$requiredFields = []
 
  • var string[] required fields.
Properties
protected static array $fields = ['display_type' => 'string', 'allow_negative' => 'bool', 'decimal_places' => 'int', 'currency_code' => 'string', 'integer' => 'bool', 'display_format' => 'string']
protected static array PHPFUI\ConstantContact\Definition\Base::$maxLength = []
 
  • var array<string,int> maximum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$minLength = []
 
  • var array<string,int> minimum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$requiredFields = []
 
  • var string[] required fields.
© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration