HtmlElementBsInputTextarea
extends HtmlElementBsInput
in package
Table of Contents
Properties
- $help : mixed
- $input : mixed
- $label : mixed
- $parent : mixed
- $attributes : mixed
- $content : mixed
- $feedback : mixed
- $params : mixed
- $tag : mixed
- $types : mixed
Methods
- __construct() : HtmlElementBsInputCheckbox
- attributes() : HtmlElement
- Add new attributes to element
- childContent() : mixed
- content() : string
- Set the element content and return the formated element as a string
- dispatch() : mixed
- Display the content
- element() : object
- Call a new class which extend current HtmlElementClass
- input() : mixed
- parseParam() : mixed
- tag() : HtmlElement
- Instantiate a new object using tag name
- use() : string
- Return the formated element as a string
- child() : HtmlElement
- Instantiate a child element
- parseAttributes() : string
- Convert Attributes from array to a scring
- parseContent() : string|array<string|int, mixed>|null
- Convert the content from array to string
- parseElementContent() : mixed
- parseParams() : mixed
- setAttrClass() : mixed
- setAttributeByParam() : mixed
- setAttributes() : mixed
- setAttributesSize() : mixed
- setAttributesValue() : mixed
- setContent() : mixed
- children() : mixed
- getContentByGroup() : mixed
- getContentByLayout() : mixed
- getLabelClass() : mixed
- getTagByLayout() : mixed
- getTemplateByTag() : string
- Return the template use to format the element
- setAttributesAriaLabel() : mixed
- setAttributesAutocomplete() : mixed
- setAttributesByLayout() : mixed
- setAttributesByType() : mixed
- setAttributesCols() : mixed
- setAttributesDisabled() : mixed
- setAttributesFeedback() : mixed
- setAttributesHelp() : mixed
- setAttributesId() : mixed
- setAttributesLabel() : mixed
- setAttributesMultiple() : mixed
- setAttributesName() : mixed
- setAttributesPlaceholder() : mixed
- setAttributesRange() : mixed
- setAttributesReadonly() : mixed
- setAttributesRequired() : mixed
- setAttributesRows() : mixed
- setAttributesText() : mixed
- setAttributesTitle() : mixed
- setAttributesValid() : mixed
Properties
$help
public
mixed
$help
$input
public
mixed
$input
$label
public
mixed
$label
$parent
public
mixed
$parent
$attributes
protected
mixed
$attributes
$content
protected
mixed
$content
$feedback
protected
mixed
$feedback
= null
$params
protected
mixed
$params
$tag
protected
mixed
$tag
= 'div'
$types
private
mixed
$types
= ['color', 'email', 'file', 'password', 'range', 'text']
Methods
__construct()
public
__construct([array<string|int, mixed> $params = [] ][, mixed $parent = null ]) : HtmlElementBsInputCheckbox
Parameters
- $params : array<string|int, mixed> = []
- $parent : mixed = null
Return values
HtmlElementBsInputCheckboxattributes()
Add new attributes to element
public
attributes([array<string|int, mixed>|null $attributes = [] ][, bool $mergeValues = true ]) : HtmlElement
Parameters
- $attributes : array<string|int, mixed>|null = []
-
The the attributes must be included in one array, each member having any of the following format:
- single attribute: $attributes = ['disabled']
- associative: $atributes = ['type'=>'input', 'value'=>3]
- associative multiple keys: $attributes = ['data' => ['role' => 'content', 'content' => 'button']]
- assocuative multiple values: $attributes = ['class' => 'btn btn-sm']
- $mergeValues : bool = true
-
- merge new values true | false
Return values
HtmlElementchildContent()
public
childContent(mixed $name[, mixed $return = false ]) : mixed
Parameters
- $name : mixed
- $return : mixed = false
content()
Set the element content and return the formated element as a string
public
content([array<string|int, mixed>|string|null $content = null ][, mixed $return = false ]) : string
Parameters
- $content : array<string|int, mixed>|string|null = null
- $return : mixed = false
Return values
stringdispatch()
Display the content
public
dispatch([array<string|int, mixed>|string|null $content = null ]) : mixed
Parameters
- $content : array<string|int, mixed>|string|null = null
element()
Call a new class which extend current HtmlElementClass
public
element(string $element[, array<string|int, mixed>|string $properties = [] ][, mixed $root = null ]) : object
Parameters
- $element : string
-
- defined element
- $properties : array<string|int, mixed>|string = []
- $root : mixed = null
Return values
object —defeined in extended class
input()
public
input(array<string|int, mixed>|string $params) : mixed
Parameters
- $params : array<string|int, mixed>|string
parseParam()
public
parseParam(mixed $key[, mixed $default = null ]) : mixed
Parameters
- $key : mixed
- $default : mixed = null
tag()
Instantiate a new object using tag name
public
tag(string|null $tag[, mixed $attributes = null ][, mixed $newElement = true ][, mixed $instance = null ]) : HtmlElement
Parameters
- $tag : string|null
-
element tag
- $attributes : mixed = null
- $newElement : mixed = true
- $instance : mixed = null
Return values
HtmlElementuse()
Return the formated element as a string
public
use() : string
Return values
stringchild()
Instantiate a child element
protected
child(string $name, string $type[, array<string|int, mixed> $defaultAttributes = [] ]) : HtmlElement
Parameters
- $name : string
-
- the child name
- $type : string
-
- the element type | html-tag
- $defaultAttributes : array<string|int, mixed> = []
Return values
HtmlElementparseAttributes()
Convert Attributes from array to a scring
protected
parseAttributes() : string
Return values
stringparseContent()
Convert the content from array to string
protected
parseContent() : string|array<string|int, mixed>|null
Return values
string|array<string|int, mixed>|nullparseElementContent()
protected
parseElementContent(mixed $content) : mixed
Parameters
- $content : mixed
parseParams()
protected
parseParams() : mixed
setAttrClass()
protected
setAttrClass(mixed $value[, mixed $merge = true ]) : mixed
Parameters
- $value : mixed
- $merge : mixed = true
setAttributeByParam()
protected
setAttributeByParam(mixed $key) : mixed
Parameters
- $key : mixed
setAttributes()
protected
setAttributes() : mixed
setAttributesSize()
protected
setAttributesSize() : mixed
setAttributesValue()
protected
setAttributesValue() : mixed
setContent()
protected
setContent() : mixed
children()
private
children() : mixed
getContentByGroup()
private
getContentByGroup(mixed $content) : mixed
Parameters
- $content : mixed
getContentByLayout()
private
getContentByLayout() : mixed
getLabelClass()
private
getLabelClass() : mixed
getTagByLayout()
private
getTagByLayout() : mixed
getTemplateByTag()
Return the template use to format the element
private
getTemplateByTag() : string
Return values
stringsetAttributesAriaLabel()
private
setAttributesAriaLabel() : mixed
setAttributesAutocomplete()
private
setAttributesAutocomplete() : mixed
setAttributesByLayout()
private
setAttributesByLayout() : mixed
setAttributesByType()
private
setAttributesByType() : mixed
setAttributesCols()
private
setAttributesCols() : mixed
setAttributesDisabled()
private
setAttributesDisabled() : mixed
setAttributesFeedback()
private
setAttributesFeedback() : mixed
setAttributesHelp()
private
setAttributesHelp() : mixed
setAttributesId()
private
setAttributesId() : mixed
setAttributesLabel()
private
setAttributesLabel() : mixed
setAttributesMultiple()
private
setAttributesMultiple() : mixed
setAttributesName()
private
setAttributesName() : mixed
setAttributesPlaceholder()
private
setAttributesPlaceholder() : mixed
setAttributesRange()
private
setAttributesRange() : mixed
setAttributesReadonly()
private
setAttributesReadonly() : mixed
setAttributesRequired()
private
setAttributesRequired() : mixed
setAttributesRows()
private
setAttributesRows() : mixed
setAttributesText()
private
setAttributesText() : mixed
setAttributesTitle()
private
setAttributesTitle() : mixed
setAttributesValid()
private
setAttributesValid() : mixed