CloneableInstantiable
| Methods |
| public addField( $field) Add a field to the block.
|
| public clearFields() Clear the fields for the block/attachment.
|
| public getAccessory() Get the section accessory.
|
| public getFields() Get the fields for the block/attachment.
|
| public getText() Get the section text.
|
| public setAccessory( $accessory) Set the section accessory.
|
| public setFields(array $fields) Set the fields for the block/attachment.
|
| public setText( $text) Set the section text.
|
| public toArray() Convert the block to its array representation.
|
| Properties |
| protected $accessory = NULL Block element to be included in the section.
|
| protected static $availableAttributes = ['text' => 'text', 'block_id' => 'block_id', 'fields' => 'fields', 'accessory' => 'accessory'] Internal attribute to property map.
|
| protected $fields = [] Fields to appear in the section.
|
| protected $text = NULL The text for the section.
|
| protected $type = 'section' Block type.
|
| Methods |
| protected getFieldClass() Get the class name of valid fields.
|
| protected getFieldsAsArrays() Iterates over all fields in this block/attachment and returns them in their array form.
|
| Properties |
| protected static $availableAttributes = ['text' => 'text', 'block_id' => 'block_id', 'fields' => 'fields', 'accessory' => 'accessory'] Internal attribute to property map.
|
| Methods |