Elgg  Version master
Public Member Functions | Protected Attributes | List of all members
Elgg\Forms\FieldsService Class Reference

Service for getting field definitions for type/subtype combinations. More...

Public Member Functions

 __construct (PluginHooksService $hooks, Translator $translator)
 Constructor. More...
 
 get (string $type, string $subtype)
 Returns an array of fields for a give type/subtype combination. More...
 

Protected Attributes

 $fields = []
 
 $hooks
 
 $translator
 

Detailed Description

Service for getting field definitions for type/subtype combinations.

Since
4.0

Definition at line 14 of file FieldsService.php.

Constructor & Destructor Documentation

Elgg\Forms\FieldsService::__construct ( PluginHooksService  $hooks,
Translator  $translator 
)

Constructor.

Parameters
PluginHooksService$hookshooks service
Translator$translatortranslator service

Definition at line 39 of file FieldsService.php.

Member Function Documentation

Elgg\Forms\FieldsService::get ( string  $type,
string  $subtype 
)

Returns an array of fields for a give type/subtype combination.

Parameters
string$typetype of the entity to get fields for
string$subtypesubtype of the entity to get fields for
Returns
array

Definition at line 52 of file FieldsService.php.

Member Data Documentation

Elgg\Forms\FieldsService::$fields = []
protected

Definition at line 21 of file FieldsService.php.

Elgg\Forms\FieldsService::$hooks
protected

Definition at line 26 of file FieldsService.php.

Elgg\Forms\FieldsService::$translator
protected

Definition at line 31 of file FieldsService.php.


The documentation for this class was generated from the following file: