FieldtypeTextarea class

Field that stores multiple lines of text

Properties set to $field that is using this type, acceessed by $field->get('property')

  • contentType (int): Content type of field output using a self::contentType* constant Default:0
  • htmlOptions (array): Options for content-type Markup/HTML using self::html* constants Default:[]
  • inputfieldClass (string): Inputfield class/module name to use for this field Default:InputfieldTextarea

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the FieldtypeTextarea class also inherits all the methods and properties of: FieldtypeText, Fieldtype, WireData and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
FieldtypeTextarea::configHelper()
FieldtypeTextareaHelper

Get an instance of the FieldtypeTextareaHelper config helper

 
FieldtypeTextarea::exportValue(Page $page, Field $field, $value)
array string

Export value

FieldtypeTextarea::findLinks(Page $page)
PageArray array int

Find abstracted HTML/href attribute Textarea links to given $page

 
FieldtypeTextarea::formatValue($page, $field, $value)
None
FieldtypeTextarea::getConfigInputfields(Field $field)
InputfieldWrapper

Get Inputfields to configure the Field

FieldtypeTextarea::getDatabaseSchema(Field $field)
array

Get database schema used by the Field

 
FieldtypeTextarea::getFieldSetups()
array

Get setup options and setup functions for new fields

FieldtypeTextarea::getInputfield(Page $page, Field $field)
Inputfield

Get the Inputfield module that provides input for Field

 
FieldtypeTextarea::importValue(Page $page, Field $field, $value)
array string

Import value

FieldtypeTextarea::loadPageField($page, $field)
None
FieldtypeTextarea::markupQA()
MarkupQA

Get the MarkupQA instance

 
FieldtypeTextarea::markupValue($page, $field)
None
FieldtypeTextarea::sleepValue($page, $field, $value)
None
FieldtypeTextarea::wakeupValue($page, $field, $value)
None

Additional methods and properties

In addition to the methods and properties above, FieldtypeTextarea also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.253