format($root);
?>
파일 보기
프로젝트 열기: tburry/pquery
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 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 | |
리턴 | boolean | array | Array of errors on failure, true on succes |
public $block_elements |
public string $indent_string | ||
리턴 | string |
public string $linebreak_string | ||
리턴 | string |