PHP_Beautifier
[ class tree: PHP_Beautifier ] [ index: PHP_Beautifier ] [ all elements ]

Class: PHP_Beautifier_Filter_Default

Source Location: /PHP_Beautifier-0.1.2/Beautifier/Filter/Default.filter.php

Class Overview

PHP_Beautifier_Filter
   |
   --PHP_Beautifier_Filter_Default

Default Filter: Handle all the tokens. Uses K & R style


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2004-2005 Claudio Bustos

Methods


Inherited Variables

Inherited Methods

Class: PHP_Beautifier_Filter

PHP_Beautifier_Filter::addSettingDefinition()
Add a setting definition
PHP_Beautifier_Filter::getDescription()
PHP_Beautifier_Filter::getName()
return @string
PHP_Beautifier_Filter::getSetting()
Get a setting of the Filter
PHP_Beautifier_Filter::handleToken()
Function called from PHP_Beautifier::process() to process the tokens.
PHP_Beautifier_Filter::off()
Turn off the Filter Use inside the code to beautify Ex.
PHP_Beautifier_Filter::on()
Turn on the Filter Use inside the code to beautify Ex.
PHP_Beautifier_Filter::postProcess()
Called from PHP_Beautifier::process() at the end of processing
PHP_Beautifier_Filter::setSetting()
Set a value of a Setting

Class Details

[line 47]
Default Filter: Handle all the tokens. Uses K & R style

This filters is loaded by default in PHP_Beautifier. Can handle all the tokens. If one of the tokens doesn't have a function, is added wihout modification (See __call()) The most important modifications are:

  • All the statements inside control structures, functions and class are indented with K&R style

    1 function myFunction() {
    2 echo 'hi';
    3 }
  • All the comments in new lines are indented. In multi-line comments, all the lines are indented, too.
This class is final, so don't try to extend it!



[ Top ]


Method Detail

comment_large   [line 203]

void comment_large( mixed $sTag)


[ Top ]

comment_short   [line 198]

void comment_short( mixed $sTag)


[ Top ]

detect_colon_after_parenthesis   [line 239]

void detect_colon_after_parenthesis( )

Detect structure elseif($something):

[ Top ]

off   [line 58]

void off( )


Overrides PHP_Beautifier_Filter::off() (Turn off the Filter Use inside the code to beautify Ex.)
[ Top ]

t_access   [line 61]

void t_access( mixed $sTag)


[ Top ]

t_array   [line 363]

void t_array( mixed $sTag)


[ Top ]

t_as   [line 146]

void t_as( mixed $sTag)


[ Top ]

t_assigment   [line 358]

void t_assigment( mixed $sTag)


[ Top ]

t_break   [line 316]

void t_break( mixed $sTag)


[ Top ]

t_close_brace   [line 126]

void t_close_brace( mixed $sTag)


[ Top ]

t_close_tag   [line 83]

void t_close_tag( mixed $sTag)


[ Top ]

t_colon   [line 299]

void t_colon( mixed $sTag)


[ Top ]

t_comma   [line 270]

void t_comma( mixed $sTag)


[ Top ]

t_comment   [line 183]

void t_comment( mixed $sTag)


[ Top ]

t_constant_encapsed_string   [line 283]

void t_constant_encapsed_string( mixed $sTag)


[ Top ]

t_control   [line 97]

void t_control( mixed $sTag)


[ Top ]

t_default   [line 327]

void t_default( mixed $sTag)


[ Top ]

t_doc_comment   [line 158]

void t_doc_comment( mixed $sTag)


[ Top ]

t_double_colon   [line 312]

void t_double_colon( mixed $sTag)


[ Top ]

t_else   [line 219]


t_end_heredoc   [line 65]

void t_end_heredoc( mixed $sTag)


[ Top ]

t_end_suffix   [line 331]

void t_end_suffix( mixed $sTag)


[ Top ]

t_equal   [line 256]

void t_equal( mixed $sTag)


[ Top ]

t_equal_sign   [line 353]

void t_equal_sign( mixed $sTag)


[ Top ]

t_extends   [line 338]

void t_extends( mixed $sTag)


[ Top ]

t_for   [line 266]

void t_for( mixed $sTag)


[ Top ]

t_implements   [line 343]

void t_implements( mixed $sTag)


[ Top ]

t_include   [line 275]

void t_include( mixed $sTag)


[ Top ]

t_instanceof   [line 348]

void t_instanceof( mixed $sTag)


[ Top ]

t_language_construct   [line 279]

void t_language_construct( mixed $sTag)


[ Top ]

t_logical   [line 261]

void t_logical( mixed $sTag)


[ Top ]

t_new   [line 151]

void t_new( mixed $sTag)


[ Top ]

t_object_operator   [line 367]

void t_object_operator( mixed $sTag)


[ Top ]

t_open_brace   [line 112]

void t_open_brace( mixed $sTag)


[ Top ]

t_open_tag   [line 70]

void t_open_tag( mixed $sTag)


[ Top ]

t_parenthesis_close   [line 105]

void t_parenthesis_close( mixed $sTag)


[ Top ]

t_parenthesis_open   [line 101]

void t_parenthesis_open( mixed $sTag)


[ Top ]

t_question   [line 294]

void t_question( mixed $sTag)


[ Top ]

t_semi_colon   [line 138]

void t_semi_colon( mixed $sTag)


[ Top ]

t_switch   [line 93]

void t_switch( mixed $sTag)


[ Top ]

t_variable   [line 287]

void t_variable( mixed $sTag)


[ Top ]

t_whitespace   [line 155]

void t_whitespace( mixed $sTag)


[ Top ]


Documentation generated on Fri, 4 Feb 2005 01:30:14 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.