Company
extends Localisable
in package
implements
InputFilterProviderInterface
A form which provides the basic structure for forms that utilise a model's {@link \Application\Model\LocalisedText}.
Table of Contents
Interfaces
- InputFilterProviderInterface
Properties
- $currentRepresentativeEmail : string|null
- $currentSlug : string|null
- $mapper : Company
- $translator : Translator
Methods
- __construct() : mixed
- getInputFilterSpecification() : array<string|int, mixed>
- getTranslator() : Translator
- isRepresentativeEmailUnique() : bool
- isSlugNameUnique() : bool
- Determine if the slug is unique.
- setCurrentRepresentativeEmail() : void
- setCurrentSlug() : void
- createLocalisedInputFilterSpecification() : array<string|int, mixed>
- Create an {@link \Laminas\InputFilter\InputFilter} for a specific language.
Properties
$currentRepresentativeEmail
private
string|null
$currentRepresentativeEmail
= null
$currentSlug
private
string|null
$currentSlug
= null
$mapper read-only
private
Company
$mapper
$translator read-only
private
Translator
$translator
Methods
__construct()
public
__construct(Translator $translator, Company $mapper) : mixed
Parameters
- $translator : Translator
- $mapper : Company
getInputFilterSpecification()
public
getInputFilterSpecification() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getTranslator()
public
getTranslator() : Translator
Return values
TranslatorisRepresentativeEmailUnique()
public
isRepresentativeEmailUnique(string $email) : bool
Parameters
- $email : string
Return values
boolisSlugNameUnique()
Determine if the slug is unique.
public
isSlugNameUnique(string $slugName) : bool
Parameters
- $slugName : string
Return values
boolsetCurrentRepresentativeEmail()
public
setCurrentRepresentativeEmail(string|null $email) : void
Parameters
- $email : string|null
setCurrentSlug()
public
setCurrentSlug(string|null $slugName) : void
Parameters
- $slugName : string|null
createLocalisedInputFilterSpecification()
Create an {@link \Laminas\InputFilter\InputFilter} for a specific language.
protected
createLocalisedInputFilterSpecification([string $suffix = '' ]) : array<string|int, mixed>
Parameters
- $suffix : string = ''
-
For languages that are not Dutch, a suffix should be specified (English: 'En').