class FormattingUtil

Methods

static 
formatWriteParams($params, $entity, $fields)

Massage values into the format the BAO expects for a write operation

static 
formatValue($value, $fieldSpec, string $entity)

Transform raw api input to appropriate format for use in a SQL query.

Details

at line 54
static formatWriteParams($params, $entity, $fields)

Massage values into the format the BAO expects for a write operation

Parameters

$params
$entity
$fields

Exceptions

API_Exception

at line 99
static formatValue($value, $fieldSpec, string $entity)

Transform raw api input to appropriate format for use in a SQL query.

This is used by read AND write actions (Get, Create, Update, Replace)

Parameters

$value
$fieldSpec
string $entity Ex: 'Contact', 'Domain'

Exceptions

API_Exception