format($root);
?>
Mostra file
Open project: tburry/pquery
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$block_elements | Determines which elements start on a new line and which function as block | ||
$errors | array | Errors found during formatting | |
$indent_string | string | String that is used to generate correct indenting | |
$linebreak_string | string | String that is used to break lines | |
$options | array | Other formatting options | |
$whitespace | Determines which characters are considered whitespace |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Class constructor | |
__invoke ( &$node ) | Class magic invoke method, performs {@link format()} | |
format ( &$node ) | Formats HTML/Javascript | |
format_html ( |
Formats HTML | |
minify_html ( |
Minifies HTML / removes unneeded whitespace | |
minify_javascript ( |
Minifies javascript using JSMin+ |
public __construct ( array $options = [] ) | ||
$options | array | {@link $options} |
public __invoke ( &$node ) |
public format_html ( |
||
$root | ||
$recursive | boolean |
static public minify_html ( |
||
$root | ||
$strip_comments | boolean | |
$recursive | boolean |
static public minify_javascript ( |
||
$root | ||
$indent_string | string | |
$wrap_comment | boolean | Wrap javascript in HTML comments () |
$recursive | boolean | |
return | boolean | array | Array of errors on failure, true on succes |
public $block_elements |
public string $indent_string | ||
return | string |
public string $linebreak_string | ||
return | string |