Activity
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
- $translator : Translator
Methods
- __construct() : mixed
- beforeBeginTime() : bool
- Checks if a certain date is before the begin date of the activity.
- beforeEndTime() : bool
- Check if a certain date is before the end date of the activity.
- getInputFilterSpecification() : array<string|int, mixed>
- Get the input filter. Will generate a different inputfilter depending on if the Dutch and/or English language is set.
- getTranslator() : Translator
- isValid() : bool
- Validate the form.
- setAllOptions() : Activity
- createLocalisedInputFilterSpecification() : array<string|int, mixed>
- Create an {@link \Laminas\InputFilter\InputFilter} for a specific language.
Properties
$translator read-only
private
Translator
$translator
Methods
__construct()
public
__construct(Translator $translator) : mixed
Parameters
- $translator : Translator
beforeBeginTime()
Checks if a certain date is before the begin date of the activity.
public
static beforeBeginTime(string $value[, array<string|int, mixed> $context = [] ]) : bool
Parameters
- $value : string
- $context : array<string|int, mixed> = []
Tags
Return values
boolbeforeEndTime()
Check if a certain date is before the end date of the activity.
public
static beforeEndTime(string $value[, array<string|int, mixed> $context = [] ]) : bool
Parameters
- $value : string
- $context : array<string|int, mixed> = []
Tags
Return values
boolgetInputFilterSpecification()
Get the input filter. Will generate a different inputfilter depending on if the Dutch and/or English language is set.
public
getInputFilterSpecification() : array<string|int, mixed>
Return values
array<string|int, mixed>getTranslator()
public
getTranslator() : Translator
Return values
TranslatorisValid()
Validate the form.
public
isValid() : bool
Tags
Return values
boolsetAllOptions()
public
setAllOptions(array<string|int, Organ> $organs, array<string|int, Company> $companies, array<string|int, ActivityCategory> $categories) : Activity
Parameters
- $organs : array<string|int, Organ>
- $companies : array<string|int, Company>
- $categories : array<string|int, ActivityCategory>
Return values
ActivitycreateLocalisedInputFilterSpecification()
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').