PHP Class Craft\AmForms_FormModel

Inheritance: extends craft\BaseElementModel
Datei anzeigen Open project: am-impact/amforms

Protected Properties

Property Type Description
$elementType

Public Methods

Method Description
__toString ( ) : string Use the form handle as the string representation.
behaviors ( ) : array
displayField ( string $handle ) : string Display a field.
displayForm ( ) : string Display the form.
getCpEditUrl ( ) : string | false Returns the element's CP edit URL.
getFieldLayout ( ) : craft\FieldLayoutModel | null Returns the field layout used by this element.
getFields ( ) : array Return the element's fields.
getNamespace ( ) : string Get a namespace for this form.
getRedirectEntry ( ) : null | craft\EntryModel Return the form's redirect Entry.
getRedirectUrl ( ) : null | string Return the form's redirect URL.
isEditable ( ) : boolean

Protected Methods

Method Description
defineAttributes ( ) : array

Method Details

__toString() public method

Use the form handle as the string representation.
public __toString ( ) : string
return string

behaviors() public method

public behaviors ( ) : array
return array

defineAttributes() protected method

protected defineAttributes ( ) : array
return array

displayField() public method

Display a field.
public displayField ( string $handle ) : string
$handle string
return string

displayForm() public method

With this we can display the Form FieldType on a front-end template.
public displayForm ( ) : string
return string

getCpEditUrl() public method

Returns the element's CP edit URL.
public getCpEditUrl ( ) : string | false
return string | false

getFieldLayout() public method

Returns the field layout used by this element.
public getFieldLayout ( ) : craft\FieldLayoutModel | null
return craft\FieldLayoutModel | null

getFields() public method

Return the element's fields.
public getFields ( ) : array
return array

getNamespace() public method

Get a namespace for this form.
public getNamespace ( ) : string
return string

getRedirectEntry() public method

Return the form's redirect Entry.
public getRedirectEntry ( ) : null | craft\EntryModel
return null | craft\EntryModel

getRedirectUrl() public method

Return the form's redirect URL.
public getRedirectUrl ( ) : null | string
return null | string

isEditable() public method

public isEditable ( ) : boolean
return boolean

Property Details

$elementType protected_oe property

protected $elementType