Element
- Namespace: \Redaxscript\Html
- Description: children class to create a element
- Package: Redaxscript
- Category: Html
- Author: Henry Ruhs
Properties
Property | Type | Visibility | Description |
---|---|---|---|
_tag | protected | ||
_singletonTags | protected | ||
_attributeArray | protected | ||
Property | Type | Visibility | Description |
Methods
Method | Visibility | Description |
---|---|---|
__toString | public | stringify the element |
init | public | init the class |
copy | public | copy the element |
attr | public | set the attribute to element |
removeAttr | public | remove the attribute from element |
addClass | public | add the class to element |
removeClass | public | remove the class from element |
_editClass | protected | edit class helper |
val | public | set the value to element |
text | public | set the text to element |
render | public | render the element |
html | public | set the html |
append | public | append to the html |
prepend | public | prepend to the html |
clear | public | clear the html |
Method | Visibility | Description |
Form
- Namespace: \Redaxscript\Html
- Description: children class to create a form
- Package: Redaxscript
- Category: Html
- Author: Henry Ruhs
- Method: button
- Method: cancel
- Method: checkbox
- Method: color
- Method: date
- Method: datetime
- Method: email
- Method: file
- Method: hidden
- Method: number
- Method: password
- Method: radio
- Method: range
- Method: reset
- Method: search
- Method: submit
- Method: time
- Method: tel
- Method: text
- Method: url
- Method: week
Properties
Property | Type | Visibility | Description |
---|---|---|---|
_registry | protected | ||
_language | protected | ||
_captcha | protected | ||
_languageArray | protected | ||
_attributeArray | protected | ||
_optionArray | protected | ||
Property | Type | Visibility | Description |
Methods
Method | Visibility | Description |
---|---|---|
__construct | public | constructor of the class |
__call | public | call method as needed |
__toString | public | stringify the form |
init | public | init the class |
legend | public | append the legend |
label | public | append the label |
textarea | public | append the textarea |
select | public | append the select |
selectRange | public | append the select range |
captcha | public | append the captcha |
token | public | append the token |
render | public | render the form |
_createInput | protected | create the input |
_createOption | protected | create the option |
_createButton | protected | create the button |
_createLink | protected | append the link |
html | public | set the html |
append | public | append to the html |
prepend | public | prepend to the html |
clear | public | clear the html |
Method | Visibility | Description |
HtmlAbstract
- Namespace: \Redaxscript\Html
- Description: abstract class to create html
- Package: Redaxscript
- Category: Html
- Author: Henry Ruhs
Properties
Property | Type | Visibility | Description |
---|---|---|---|
_html | protected | ||
Property | Type | Visibility | Description |
Methods
Method | Visibility | Description |
---|---|---|
html | public | set the html |
append | public | append to the html |
prepend | public | prepend to the html |
clear | public | clear the html |
Method | Visibility | Description |
Purifier
- Namespace: \Redaxscript\Html
- Description: parent class to purify html against xss
- Package: Redaxscript
- Category: Html
- Author: Henry Ruhs
Properties
Property | Type | Visibility | Description |
---|---|---|---|
_allowedTags | protected | ||
Property | Type | Visibility | Description |
Methods
Method | Visibility | Description |
---|---|---|
purify | public | purify the html |
_process | protected | process the html |
_stripTags | protected | strip the tags |
_stripAttributes | protected | strip the attributes |
_createDocument | protected | create the document |
_createFragment | protected | create the fragment |
Method | Visibility | Description |