Skip to content

Tidy

Tidy up the HTML.


See Also:

  • http://www.php.net/tidy

Properties

config

Tidy configuration

protected array $config

Methods

__construct

public __construct(array $config = [], bool $deep = false): mixed

Parameters:

Parameter Type Description
$config array Tidy configuration.
$deep bool Tidy each individual child.

render

Render to HTML.

public render(\Qubus\Form\FormBuilder\Element $element, string $html): string

Parameters:

Parameter Type Description
$element \Qubus\Form\FormBuilder\Element
$html string Original rendered html

Inherited methods

isDeep

Whether to apply the decorator to all descendants.

public isDeep(): bool

apply

Apply modifications.

public apply(\Qubus\Form\FormBuilder\Element $element, bool $deep): mixed

Parameters:

Parameter Type Description
$element \Qubus\Form\FormBuilder\Element
$deep bool The decorator of a parent is applied to a child.

validate

Validate the element

public validate(\Qubus\Form\FormBuilder\Element $element, bool $valid): bool

Parameters:

Parameter Type Description
$element \Qubus\Form\FormBuilder\Element
$valid bool Result of FormBuilder validation.

filter

Modify the value.

public filter(\Qubus\Form\FormBuilder\Element $element, mixed $value): mixed

Parameters:

Parameter Type Description
$element \Qubus\Form\FormBuilder\Element
$value mixed

render

Render to HTML

public render(\Qubus\Form\FormBuilder\Element $element, string $html): string

Parameters:

Parameter Type Description
$element \Qubus\Form\FormBuilder\Element
$html string Original rendered html.

renderContent

Render the element content to HTML

public renderContent(\Qubus\Form\FormBuilder\Element $element, string $html): string

Parameters:

Parameter Type Description
$element \Qubus\Form\FormBuilder\Element
$html string Original rendered html.

applyToValidationScript

public applyToValidationScript(\Qubus\Form\FormBuilder\Control $param, array $rules): mixed

Parameters:

Parameter Type Description
$param \Qubus\Form\FormBuilder\Control
$rules array