SalutationUtil
in package
Table of Contents
Properties
- $framework : ContaoFrameworkInterface
Methods
- __construct() : mixed
- createNameByFields() : mixed
- Creates complete names by inserting an array of the person's data.
- createSalutation() : string
Properties
$framework
protected
ContaoFrameworkInterface
$framework
Methods
__construct()
public
__construct(ContaoFrameworkInterface $framework) : mixed
Parameters
- $framework : ContaoFrameworkInterface
createNameByFields()
Creates complete names by inserting an array of the person's data.
public
createNameByFields(string $language, array<string|int, mixed> $data) : mixed
Supported field names: firstname, lastname, academicTitle, additionalTitle, gender
If some of the fields shouldn't go into the processed name, just leave them out of $arrData
Parameters
- $language : string
- $data : array<string|int, mixed>
createSalutation()
public
createSalutation(mixed $language, mixed $entity[, array<string|int, mixed> $options = [] ]) : string
Parameters
- $language : mixed
- $entity : mixed
-
object|array
- $options : array<string|int, mixed> = []