Copied!
  • property string $label The custom field name to display in the UI (free-form text).
  • property string $type The type of data to store in the custom field.
  • property \PHPFUI\ConstantContact\Definition\CustomFieldMetadata $metadata
  • property \PHPFUI\ConstantContact\Definition\CustomFieldChoiceRequest[] $choices Array of choices for custom fields of type: single_select or multi_select. Maximum number of elements for checkbox and radio display types is 20. Maximum number of elements for a dropdown is 100.
  • property int $version Available if data type is data. Displays 1 if using legacy date fields where values are stored as strings. Displays 2 if using new date fields where 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 = ['label' => 'string', 'type' => 'string', 'metadata' => '\PHPFUI\ConstantContact\Definition\CustomFieldMetadata', 'choices' => 'array<\PHPFUI\ConstantContact\Definition\CustomFieldChoiceRequest>', 'version' => 'int']
protected static array $maxLength = ['label' => 50, 'type' => 20, 'choices' => 100]
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 = ['label' => 'string', 'type' => 'string', 'metadata' => '\PHPFUI\ConstantContact\Definition\CustomFieldMetadata', 'choices' => 'array<\PHPFUI\ConstantContact\Definition\CustomFieldChoiceRequest>', 'version' => 'int']
protected static array $maxLength = ['label' => 50, 'type' => 20, 'choices' => 100]
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