mediatekformation

PreloadedExtension
in package
implements FormExtensionInterface

A form extension with preloaded types, type extensions and type guessers.

Tags
author

Bernhard Schussek bschussek@gmail.com

Interfaces, Classes, Traits and Enums

FormExtensionInterface
Interface for extensions which provide types, type extensions and a guesser.

Table of Contents

$typeExtensions  : mixed
$typeGuesser  : mixed
$types  : mixed
__construct()  : mixed
Creates a new preloaded extension.
getType()  : FormTypeInterface
Returns a type by name.
getTypeExtensions()  : array<string|int, FormTypeExtensionInterface>
Returns the extensions for the given type.
getTypeGuesser()  : FormTypeGuesserInterface|null
Returns the type guesser provided by this extension.
hasType()  : bool
Returns whether the given type is supported.
hasTypeExtensions()  : bool
Returns whether this extension provides type extensions for the given type.

Properties

Methods

__construct()

Creates a new preloaded extension.

public __construct(array<string|int, FormTypeInterface> $types, array<string|int, array<string|int, FormTypeExtensionInterface>> $typeExtensions[, FormTypeGuesserInterface $typeGuesser = null ]) : mixed
Parameters
$types : array<string|int, FormTypeInterface>

The types that the extension should support

$typeExtensions : array<string|int, array<string|int, FormTypeExtensionInterface>>

The type extensions that the extension should support

$typeGuesser : FormTypeGuesserInterface = null
Return values
mixed —

hasType()

Returns whether the given type is supported.

public hasType(mixed $name) : bool
Parameters
$name : mixed

The name of the type

Return values
bool —

Whether the type is supported by this extension

hasTypeExtensions()

Returns whether this extension provides type extensions for the given type.

public hasTypeExtensions(mixed $name) : bool
Parameters
$name : mixed

The name of the type

Return values
bool —

Whether the given type has extensions

Search results