PHP_Beautifier_FilterPHP_Beautifier_Filter
Definition for creation of Filters For concrete details, please see PHP_Beautifier_Filter_Default
Located in //usr/share/php/PHP/Beautifier/Filter.php (line 38)
| Class | Description |
|---|---|
PHP_Beautifier_Filter_Default
|
Default Filter: Handle all the tokens. Uses K & R style |
PHP_Beautifier_Filter_IndentStyles
|
Filter Indent Styles: Indent the code in k&r, allman, gnu or whitesmiths |
PHP_Beautifier_Filter_ListClassFunction
|
Create a list of functions and classes in the script By default, this Filter puts the list at the beggining of the script. |
PHP_Beautifier_Filter_Lowercase
|
Lowercase: lowercase all control structures. |
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 |
PHP_Beautifier_Filter_phpBB
|
Filter the code to make it compatible with phpBB Coding Standards |
PHP_Beautifier_Filter_Pear
|
Filter the code to make it compatible with PEAR Coding Standards |
PHP_Beautifier_Filter_ArrayNested
|
Filter Array Nested: Indent the array structures Ex. |
array
$aFilterTokenFunctions
= array() (line 49)
Associative array of functions to use when some token are found
array
$aSettings
= array() (line 54)
Settings for the Filter
array
$aSettingsDefinition
= array() (line 61)
Definition of the settings
Should be an associative array. The keys are the names of settings and the values are an array with the keys 'type' and '
mixed
$aToken
= false (line 80)
Current token
bool
$bOn
= true (line 76)
Switch to 'turn' on and off the filter
PHP_Beautifier
$oBeaut
(line 44)
Stores a reference to main PHP_Beautifier
string
$sDescription
= 'Filter for PHP_Beautifier' (line 66)
Description of the Filter
Constructor __construct (line 92)
Constructor If you need to overload this (for example, to create a definition for setting with addSettingDefinition() remember call the parent constructor.
addSettingDefinition (line 103)
Add a setting definition
getDescription (line 236)
getName (line 113)
return @string
getSetting (line 150)
Get a setting of the Filter
handleToken (line 177)
Function called from PHP_Beautifier::process() to process the tokens.
If the received token is one of the keys of $aFilterTokenFunctions a function with the same name of the value of that key is called. If the method doesn't exists, __call() is called, and return PHP_Beautifier_Filter::BYPASS. PHP_Beautifier, now, call the next Filter is its list. If the method exists, it can return true or PHP_Beautifier_Filter::BYPASS.
off (line 141)
Turn off the Filter Use inside the code to beautify Ex.
on (line 127)
Turn on the Filter Use inside the code to beautify Ex.
postProcess (line 227)
Called from PHP_Beautifier::process() at the end of processing
The post-process must be made in PHP_Beautifier::$aOut
preProcess (line 219)
Called from PHP_Beautifier::process() at the beginning
of the processing
setSetting (line 159)
Set a value of a Setting
__call (line 210)
__sleep (line 230)
__toString (line 240)
Documentation generated on Sun, 22 Jun 2008 18:59:47 -0400 by phpDocumentor 1.3.1