addUserFields
extends eventReturnArray
in
Module-Event: addUserFields
Event wird ausgeführt, wenn im Artikel-Editor die Link-Liste für den "Link einfügen"-Dialog geladen wird Parameter: Array mit bereits vorhandenen benutzerdefinierten Feldern in der Form Beschreibung als key => Feldparamater als value Rückgabe: Array mit vorhandenen benutzerdefinierten Feldern in der Form Beschreibung als key => Feldparamater als value
-
Feld-Typen:
-
textarea =>
-
select =>
-
checkbox =>
-
radio =>
-
textinput/unbekannt =>
-
Aufbau für alle Feld-Typen:
-
- 'type' => Feld-Type
-
- 'name' => Feld-Name
-
- 'value' => Feld-Value
-
- 'class' => CSS-Klasse für Feld
-
- 'readonly' => readonly-Eigenschaft
-
zusätzlich für Typ "textinput"
-
- 'lenght' => maximale Textlänge
-
zusätzlich für Typ "select"
-
- 'options' => Optionen für Select-Box
-
- 'firstempty' => erstes Element automatisch "Bitte wählen"
-
- 'firstenabled' => erstes Element automatisch leer
-
zusätzlich für Typ "checkbox" und "radio"
-
- 'description' => Bschreibung von Checkbox/ Radiobutton
-
- 'id' => Element-ID
-
- 'selected' => Vorauswahl ja/nein
Table of Contents
$data | Event-Daten | array |
---|---|---|
$modules | Events mit aktuellem Event | array |
$activeModules | Liste mit aktiven Modulen | array |
$cache | Event-Cache | cache |
$permissions | Berechtigungen | permissions |
getReturnType() | Defines type of returned data | string|bool|null |
__construct() | Konstruktor | bool |
isExecutable() | User acan execute event | bool |
is_a() | Checks if module event class has implemented \fpcm\module\event | bool |
getEventClasses() | Liefert Array mit Event-Klassen in installierten Modulen zurück | array |
getEventClassBase() | Returns event base class data | string |
run() | Executes a certain event | array |
getEventNamespace() | Returns full event namespace | string |
Properties
$data
Event-Daten
protected
array
$data
$modules
Events mit aktuellem Event
protected
array
$modules
$activeModules
Liste mit aktiven Modulen
protected
array
$activeModules
= []
$cache
Event-Cache
protected
cache
$cache
$permissions
Berechtigungen
protected
permissions
$permissions
Methods
getReturnType()
Defines type of returned data
protected
getReturnType(
)
: string|bool|null
Return values
string|bool|null__construct()
Konstruktor
public
__construct(
[ $dataParams :
mixed
= null ]
)
: bool
Parameters
- $dataParams : mixed = null
Return values
boolisExecutable()
User acan execute event
public
isExecutable(
)
: bool
Tags
Return values
boolis_a()
Checks if module event class has implemented \fpcm\module\event
protected
is_a(
$object :
mixed
)
: bool
Parameters
- $object : mixed
Return values
boolgetEventClasses()
Liefert Array mit Event-Klassen in installierten Modulen zurück
protected
getEventClasses(
)
: array
Tags
Return values
arraygetEventClassBase()
Returns event base class data
protected
getEventClassBase(
)
: string
Return values
stringrun()
Executes a certain event
public
run(
)
: array
Return values
arraygetEventNamespace()
Returns full event namespace
public
final static getEventNamespace(
$event :
string
)
: string
Parameters
- $event : string