FieldTypeVariable

Type
Class
Namespace
Craft
Inherits
Craft\FieldTypeVariable » Craft\BaseComponentTypeVariable
Since
1.0

Field type template variable.

See also http://craftcms.com

View source

Protected Properties

Public Methods

MethodDescription
__construct()Constructor
__toString()Use the component's name as its string representation.
getClassHandle()Returns the component's class handle.
getInputHtml()Returns the field's input HTML.
getName()Returns the component's name.
getSettingsHtml()Returns the component's settings HTML.
getStaticHtml()Returns static HTML for the field's value.
isSelectable()Returns whether this component should be selectable when choosing a component of this type.
populateVariables()Mass-populates instances of this class with a given set of models.

getInputHtml()

Returns the field's input HTML.

View source

Arguments

  • $handle (string)
  • $value (mixed)

Returns

string

Signature

public string getInputHtml ( $handle, $value )

getStaticHtml()

Returns static HTML for the field's value.

View source

Arguments

Returns

string

Signature

public string getStaticHtml ( $value )