mediatekformation

HttpFoundationExtension extends AbstractExtension
in package

Integrates the HttpFoundation component with the Form library.

Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

$typeExtensions  : array<string|int, array<string|int, FormTypeExtensionInterface>>
The type extensions provided by this extension.
$typeGuesser  : FormTypeGuesserInterface|null
The type guesser provided by this extension.
$typeGuesserLoaded  : bool
Whether the type guesser has been loaded.
$types  : array<string|int, FormTypeInterface>
The types provided by this 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.
loadTypeExtensions()  : array<string|int, FormTypeExtensionInterface>
Registers the type extensions.
loadTypeGuesser()  : FormTypeGuesserInterface|null
Registers the type guesser.
loadTypes()  : array<string|int, FormTypeInterface>
Registers the types.
initTypeExtensions()  : mixed
Initializes the type extensions.
initTypeGuesser()  : mixed
Initializes the type guesser.
initTypes()  : mixed
Initializes the types.

Properties

$typeGuesserLoaded

Whether the type guesser has been loaded.

private bool $typeGuesserLoaded = false

Methods

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

initTypeExtensions()

Initializes the type extensions.

private initTypeExtensions() : mixed
Tags
throws
UnexpectedTypeException

if any registered type extension is not an instance of FormTypeExtensionInterface

Return values
mixed

initTypeGuesser()

Initializes the type guesser.

private initTypeGuesser() : mixed
Tags
throws
UnexpectedTypeException

if the type guesser is not an instance of FormTypeGuesserInterface

Return values
mixed

Search results