Documentation

AbstractExtension
in package
implements FormExtensionInterface

AbstractYes
Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

Interfaces

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

Properties

$typeExtensions  : array<string|int, array<string|int, FormTypeExtensionInterface>>
The type extensions provided by this extension.
$typeGuesser  : mixed
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.

Methods

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

$typeGuesser

The type guesser provided by this extension.

private mixed $typeGuesser = null

$typeGuesserLoaded

Whether the type guesser has been loaded.

private bool $typeGuesserLoaded = false

Methods

hasType()

Returns whether the given type is supported.

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

The name of the type

Return values
bool

hasTypeExtensions()

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

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

The name of the type

Return values
bool

initTypeExtensions()

Initializes the type extensions.

private initTypeExtensions() : mixed
Tags
throws
UnexpectedTypeException

if any registered type extension is not an instance of FormTypeExtensionInterface


        
On this page

Search results