Documentation

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

$translator read-only

private Translator $translator

Methods

__construct()

public __construct(Company $mapper, Translator $translator) : mixed
Parameters
$mapper : Company
$translator : Translator

getInputFilterSpecification()

public getInputFilterSpecification() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

getTranslator()

public getTranslator() : Translator
Return values
Translator

isRepresentativeEmailUnique()

public isRepresentativeEmailUnique(string $email) : bool
Parameters
$email : string
Return values
bool

isSlugNameUnique()

Determine if the slug is unique.

public isSlugNameUnique(string $slugName) : bool
Parameters
$slugName : string
Return values
bool

setCurrentRepresentativeEmail()

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').

Tags
inheritDoc
Return values
array<string|int, mixed>

        
On this page

Search results