• API
  • -
  • Redaxscript\Html

Element

  • Namespace: Redaxscript\Html
  • Description: children class to create a element
  • Package: Redaxscript
  • Category: Html
  • Author: Henry Ruhs
  • Inherited from: \Redaxscript\Html\HtmlAbstract

Properties

PropertyTypeVisibilityDescription
$_tagstringprotectedtag of the element
$_singletonTagsarrayprotectedarray of singleton tags
$_attributeArrayarrayprotectedattributes of the element
$_htmlstringprotectedhtml of the element
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
__toStringpublicstringify the element
initpublicinit the class
copypubliccopy the element
attrpublicset attribute to the element
removeAttrpublicremove attribute from the element
addClasspublicadd class to the element
removeClasspublicremove class from the element
_editClassprotectededit class helper
valpublicset value to the element
textpublicset text to the element
renderpublicrender the element
htmlpublicset the html
appendpublicappend to the html
prependpublicprepend to the html
clearpublicclear the html
MethodVisibilityDescription

Form

  • Namespace: Redaxscript\Html
  • Description: children class to create a form
  • Package: Redaxscript
  • Category: Html
  • Author: Henry Ruhs
  • Inherited from: \Redaxscript\Html\HtmlAbstract

Properties

PropertyTypeVisibilityDescription
$_registry\Redaxscript\Registryprotectedinstance of the registry class
$_language\Redaxscript\Languageprotectedinstance of the language class
$_captchaobjectprotectedcaptcha of the form
$_languageArrayarrayprotectedlanguages of the form
$_attributeArrayarrayprotectedattributes of the form
$_optionArrayarrayprotectedoptions of the form
$_htmlstringprotectedhtml of the element
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
__constructpublicconstructor of the class
__callpubliccall method as needed
__toStringpublicstringify the form
initpublicinit the class
legendpublicappend the legend
labelpublicappend the label
textareapublicappend the textarea
selectpublicappend the select
selectRangepublicappend the select range
captchapublicappend the captcha
tokenpublicappend the token
renderpublicrender the form
_createInputprotectedcreate the input
_createOptionprotectedcreate the option
_createButtonprotectedcreate the button
_createLinkprotectedcreate the link
htmlpublicset the html
appendpublicappend to the html
prependpublicprepend to the html
clearpublicclear the html
MethodVisibilityDescription

HtmlAbstract

  • Namespace: Redaxscript\Html
  • Description: abstract class to create html
  • Package: Redaxscript
  • Category: Html
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
$_htmlstringprotectedhtml of the element
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
htmlpublicset the html
appendpublicappend to the html
prependpublicprepend to the html
clearpublicclear the html
MethodVisibilityDescription

Purifier

  • Namespace: Redaxscript\Html
  • Description: parent class to purify html against xss
  • Package: Redaxscript
  • Category: Html
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
$_allowedTagsarrayprotectedarray of allowed tags
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
purifypublicpurify the html
_processprotectedprocess the html
_stripTagsprotectedstrip the tags
_stripAttributesprotectedstrip the attributes
_createDocumentprotectedcreate the document
_createFragmentprotectedcreate the fragment
MethodVisibilityDescription