PHP Класс DebugKit\View\Helper\TidyHelper

Passes html through tidy on the command line, and reports markup errors
Наследование: extends Cake\View\Helper
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$helpers array helpers property
$results results property

Открытые методы

Метод Описание
process ( string $html = '', &$out = '' ) : array Return a nested array of errors for the passed html string Fudge the markup slightly so that the tag which is invalid is highlighted
report ( mixed $html = null ) : string report method
tidyErrors ( string $in = '', &$out = '' ) : string Run the html string through tidy, and return the (raw) errors. pass back a reference to the normalized string so that the error messages can be linked to the line that caused them.

Защищенные методы

Метод Описание
_exec ( mixed $cmd, &$out = null ) : boolean exec method

Описание методов

_exec() защищенный Метод

exec method
protected _exec ( mixed $cmd, &$out = null ) : boolean
$cmd mixed ''
Результат boolean True if successful

process() публичный Метод

Return a nested array of errors for the passed html string Fudge the markup slightly so that the tag which is invalid is highlighted
public process ( string $html = '', &$out = '' ) : array
$html string ''
Результат array

report() публичный Метод

Call process if a string is passed, or no prior results exist - and return the results using the toolbar helper to generate a nested navigatable array
public report ( mixed $html = null ) : string
$html mixed null
Результат string

tidyErrors() публичный Метод

Run the html string through tidy, and return the (raw) errors. pass back a reference to the normalized string so that the error messages can be linked to the line that caused them.
public tidyErrors ( string $in = '', &$out = '' ) : string
$in string ''
Результат string

Описание свойств

$helpers публичное свойство

helpers property
public array $helpers
Результат array

$results публичное свойство

results property
public $results