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

Class: PHP_Beautifier_Filter_NewLines

Source Location: /PHP_Beautifier-0.1.15/Beautifier/Filter/NewLines.filter.php

Class Overview

PHP_Beautifier_Filter
   |
   --PHP_Beautifier_Filter_NewLines

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


Author(s):

Version:

  • Release: 0.1.15

Copyright:

  • 2004-2010 Claudio Bustos

Variables

Methods


Inherited Variables

Inherited Methods

Class: PHP_Beautifier_Filter

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.
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::preProcess()
Called from PHP_Beautifier::process() at the beginning
PHP_Beautifier_Filter::setSetting()
Set a value of a Setting
PHP_Beautifier_Filter::__call()
PHP_Beautifier_Filter::__sleep()
PHP_Beautifier_Filter::__toString()

Class Details

[line 43]
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)"



[ Top ]


Class Variables

$aSettings = array(
        'before' => false,
        'after' => false
    )

[line 45]

  • Access: protected

Type:   mixed
Overrides:   Array


[ Top ]

$sDescription =  'Add new lines after or before specific contents'

[line 49]

  • Access: protected

Type:   mixed
Overrides:   Array


[ Top ]



Method Detail

__construct (Constructor)   [line 54]

PHP_Beautifier_Filter_NewLines __construct( PHP_Beautifier $oBeaut, [ $aSettings = array()])

  • Access: public

Overrides 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.)

Parameters:

PHP_Beautifier   $oBeaut   — 
   $aSettings   — 

[ Top ]

__call   [line 81]

void __call( $sMethod, $aArgs)

  • Access: public

Overrides PHP_Beautifier_Filter::__call() (parent method not documented)

Parameters:

   $sMethod   — 
   $aArgs   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:37:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.