Class PHP_Beautifier_Filter_NewLines

Description

New Lines: Add new lines after o before specific contents The settings are 'before' and 'after'. As value, use a colon separated list of contents or tokens

Command line example:

  1. php_beautifier --filters "NewLines(before=if:switch:T_CLASS,after=T_COMMENT:function)"

Located in /Beautifier/Filter/NewLines.filter.php (line 43)

PHP_Beautifier_Filter
   |
   --PHP_Beautifier_Filter_NewLines
Variable Summary
Method Summary
 PHP_Beautifier_Filter_NewLines __construct (PHP_Beautifier $oBeaut, [ $aSettings = array()])
 void __call ( $sMethod,  $aArgs)
Variables
mixed $aSettings = array(
'before' => false,
'after' => false
)
(line 45)
  • access: protected

Redefinition of:
PHP_Beautifier_Filter::$aSettings
Settings for the Filter
mixed $sDescription = 'Add new lines after or before specific contents' (line 49)
  • access: protected

Redefinition of:
PHP_Beautifier_Filter::$sDescription
Description of the Filter

Inherited Variables

Inherited from PHP_Beautifier_Filter

PHP_Beautifier_Filter::$aFilterTokenFunctions
PHP_Beautifier_Filter::$aSettingsDefinition
PHP_Beautifier_Filter::$aToken
PHP_Beautifier_Filter::$bOn
PHP_Beautifier_Filter::$oBeaut
Methods
Constructor __construct (line 54)
  • access: public
PHP_Beautifier_Filter_NewLines __construct (PHP_Beautifier $oBeaut, [ $aSettings = array()])

Redefinition of:
PHP_Beautifier_Filter::__construct()
Constructor If you need to overload this (for example, to create a definition for setting with addSettingDefinition() remember call the parent constructor.
__call (line 81)
  • access: public
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:08 -0400 by phpDocumentor 1.4.3