Class PHP_Beautifier_Filter_Default

Description

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 without 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!

Located in /Beautifier/Filter/Default.filter.php (line 47)

PHP_Beautifier_Filter
   |
   --PHP_Beautifier_Filter_Default
Variable Summary
Method Summary
 void comment_large ( $sTag)
 void comment_short ( $sTag)
 void off ()
 void t_access ( $sTag)
 void t_array ( $sTag)
 void t_as ( $sTag)
 void t_assigment ( $sTag)
 void t_assigment_pre ( $sTag)
 void t_break ( $sTag)
 void t_case ( $sTag)
 void t_clone ( $sTag)
 void t_close_brace ( $sTag)
 void t_close_tag ( $sTag)
 void t_colon ( $sTag)
 void t_comma ( $sTag)
 void t_comment ( $sTag)
 void t_continue ( $sTag)
 void t_control ( $sTag)
 void t_default ( $sTag)
 void t_doc_comment ( $sTag)
 void t_dot ( $sTag)
 void t_double_colon ( $sTag)
 void t_else ( $sTag)
 void t_end_heredoc ( $sTag)
 void t_end_suffix ( $sTag)
 void t_equal ( $sTag)
 void t_equal_sign ( $sTag)
 void t_extends ( $sTag)
 void t_for ( $sTag)
 void t_foreach ( $sTag)
 void t_implements ( $sTag)
 void t_include ( $sTag)
 void t_instanceof ( $sTag)
 void t_language_construct ( $sTag)
 void t_logical ( $sTag)
 void t_new ( $sTag)
 void t_object_operator ( $sTag)
 void t_open_brace ( $sTag)
 void t_open_tag ( $sTag)
 void t_operator ( $sTag)
 void t_parenthesis_close ( $sTag)
 void t_parenthesis_open ( $sTag)
 void t_question ( $sTag)
 void t_semi_colon ( $sTag)
 void t_switch ( $sTag)
 void t_variable ( $sTag)
 void t_whitespace ( $sTag)
 void __call ( $sMethod,  $aArgs)
Variables
Methods
comment_large (line 229)
void comment_large ( $sTag)
  • $sTag
comment_short (line 224)
void comment_short ( $sTag)
  • $sTag
off (line 59)
  • access: public
void off ()

Redefinition of:
PHP_Beautifier_Filter::off()
Turn off the Filter Use inside the code to beautify Ex.
t_access (line 62)
  • access: public
void t_access ( $sTag)
  • $sTag
t_array (line 435)
void t_array ( $sTag)
  • $sTag
t_as (line 172)
void t_as ( $sTag)
  • $sTag
t_assigment (line 422)
void t_assigment ( $sTag)
  • $sTag
t_assigment_pre (line 427)
void t_assigment_pre ( $sTag)
  • $sTag
t_break (line 369)
void t_break ( $sTag)
  • $sTag
t_case (line 102)
void t_case ( $sTag)
  • $sTag
t_clone (line 432)
void t_clone ( $sTag)
  • $sTag
t_close_brace (line 144)
void t_close_brace ( $sTag)
  • $sTag
t_close_tag (line 84)
void t_close_tag ( $sTag)
  • $sTag
t_colon (line 354)
void t_colon ( $sTag)
  • $sTag
t_comma (line 320)
void t_comma ( $sTag)
  • $sTag
t_comment (line 209)
void t_comment ( $sTag)
  • $sTag
t_constant_encapsed_string (line 338)
void t_constant_encapsed_string ( $sTag)
  • $sTag
t_continue (line 384)
void t_continue ( $sTag)
  • $sTag
t_control (line 98)
void t_control ( $sTag)
  • $sTag
t_default (line 391)
void t_default ( $sTag)
  • $sTag
t_doc_comment (line 184)
void t_doc_comment ( $sTag)
  • $sTag
t_dot (line 325)
void t_dot ( $sTag)
  • $sTag
t_double_colon (line 365)
void t_double_colon ( $sTag)
  • $sTag
t_else (line 265)
  • uses: detect_colon_after_parenthesis
void t_else ( $sTag)
  • $sTag
t_end_heredoc (line 66)
  • access: public
void t_end_heredoc ( $sTag)
  • $sTag
t_end_suffix (line 395)
void t_end_suffix ( $sTag)
  • $sTag
t_equal (line 302)
void t_equal ( $sTag)
  • $sTag
t_equal_sign (line 417)
void t_equal_sign ( $sTag)
  • $sTag
t_extends (line 402)
void t_extends ( $sTag)
  • $sTag
t_for (line 316)
void t_for ( $sTag)
  • $sTag
t_foreach (line 312)
void t_foreach ( $sTag)
  • $sTag
t_implements (line 407)
void t_implements ( $sTag)
  • $sTag
t_include (line 330)
void t_include ( $sTag)
  • $sTag
t_instanceof (line 412)
void t_instanceof ( $sTag)
  • $sTag
t_language_construct (line 334)
void t_language_construct ( $sTag)
  • $sTag
t_logical (line 307)
void t_logical ( $sTag)
  • $sTag
t_new (line 177)
void t_new ( $sTag)
  • $sTag
t_object_operator (line 443)
void t_object_operator ( $sTag)
  • $sTag
t_open_brace (line 126)
void t_open_brace ( $sTag)
  • $sTag
t_open_tag (line 71)
  • access: public
void t_open_tag ( $sTag)
  • $sTag
t_operator (line 448)
void t_operator ( $sTag)
  • $sTag
t_parenthesis_close (line 115)
void t_parenthesis_close ( $sTag)
  • $sTag
t_parenthesis_open (line 111)
void t_parenthesis_open ( $sTag)
  • $sTag
t_question (line 349)
void t_question ( $sTag)
  • $sTag
t_semi_colon (line 164)
void t_semi_colon ( $sTag)
  • $sTag
t_switch (line 94)
void t_switch ( $sTag)
  • $sTag
t_variable (line 342)
void t_variable ( $sTag)
  • $sTag
t_whitespace (line 181)
void t_whitespace ( $sTag)
  • $sTag
__call (line 50)
void __call ( $sMethod,  $aArgs)
  • $sMethod
  • $aArgs

Redefinition of:
PHP_Beautifier_Filter::__call()

Inherited Methods

Inherited From PHP_Beautifier_Filter

 PHP_Beautifier_Filter::__construct()
 PHP_Beautifier_Filter::addSettingDefinition()
 PHP_Beautifier_Filter::getDescription()
 PHP_Beautifier_Filter::getName()
 PHP_Beautifier_Filter::getSetting()
 PHP_Beautifier_Filter::handleToken()
 PHP_Beautifier_Filter::off()
 PHP_Beautifier_Filter::on()
 PHP_Beautifier_Filter::postProcess()
 PHP_Beautifier_Filter::preProcess()
 PHP_Beautifier_Filter::setSetting()
 PHP_Beautifier_Filter::__call()
 PHP_Beautifier_Filter::__sleep()
 PHP_Beautifier_Filter::__toString()
Class Constants

Inherited Constants

Inherited from PHP_Beautifier_Filter

PHP_Beautifier_Filter::BYPASS

Documentation generated on Mon, 31 May 2010 16:16:06 -0400 by phpDocumentor 1.4.3