PHP Class Craft\RetourFieldType

Inheritance: extends craft\BaseFieldType
Datei anzeigen Open project: nystudio107/retour

Public Methods

Method Description
defineContentAttribute ( ) : mixed Returns the content attribute config.
getInputHtml ( string $name, mixed $value ) : string Returns the field's input HTML.
getName ( ) : mixed Returns the name of the fieldtype.
getSettingsHtml ( ) : none Render the field settings
onAfterElementSave ( ) : null
prepValue ( mixed $value ) : mixed Prepares the field's value for use.
prepValueFromPost ( mixed $value ) : mixed Returns the input value as it should be saved to the database.

Protected Methods

Method Description
defineSettings ( ) : none Define our FieldType's settings

Method Details

defineContentAttribute() public method

Returns the content attribute config.
public defineContentAttribute ( ) : mixed
return mixed

defineSettings() protected method

Define our FieldType's settings
protected defineSettings ( ) : none
return none

getInputHtml() public method

Returns the field's input HTML.
public getInputHtml ( string $name, mixed $value ) : string
$name string
$value mixed
return string

getName() public method

Returns the name of the fieldtype.
public getName ( ) : mixed
return mixed

getSettingsHtml() public method

Render the field settings
public getSettingsHtml ( ) : none
return none

onAfterElementSave() public method

public onAfterElementSave ( ) : null
return null

prepValue() public method

Prepares the field's value for use.
public prepValue ( mixed $value ) : mixed
$value mixed
return mixed

prepValueFromPost() public method

Returns the input value as it should be saved to the database.
public prepValueFromPost ( mixed $value ) : mixed
$value mixed
return mixed