__construct (Constructor) [line 202]
PHP_Beautifier __construct(
)
|
|
Constructor.
Assing values to $aControlStructures,$aControlStructuresEnd, $aTokenFunctions
add [line 979]
Add a string to the output
Parameters:
addFilter [line 351]
bool addFilter(
string
$mFilter, [array
$aSettings = array()])
|
|
Add a Filter to the Beautifier The first argument is the name of the file of the Filter.
Parameters:
addFilterDirectory [line 320]
void addFilterDirectory(
string
$sDir)
|
|
Add a filter directory
Parameters:
addIndent [line 1008]
addNewLine [line 998]
Add a new line to the output
decIndent [line 1028]
get [line 911]
Returns the beutified code
getControlParenthesis [line 939]
mixed getControlParenthesis(
[int
$iRet = 0])
|
|
Get the token constant for the current Parenthesis
Parameters:
getControlSeq [line 929]
void getControlSeq(
[int
$iRet = 0])
|
|
Get the token constant for the current control construct
Parameters:
getFilterDescription [line 376]
mixed getFilterDescription(
string
$sFilter)
|
|
Return the Filter Description
Parameters:
getFilterDirectories [line 333]
array getFilterDirectories(
)
|
|
Return an array with all the Filter Dirs
getFilterList [line 419]
Get the names of the loaded filters
getFilterListTotal [line 430]
array getFilterListTotal(
)
|
|
Get the list of all available Filters in all the include Dirs
getIndentChar [line 452]
getIndentNumber [line 456]
getMode [line 968]
bool getMode(
string
$sKey)
|
|
Get the state of a mode
Parameters:
getNewLine [line 460]
getNextTokenConstant [line 1158]
int getNextTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) next token constant
Parameters:
getNextTokenContent [line 1168]
int getNextTokenContent(
[int
$iNext = 1])
|
|
Get the 'x' significant (non whiteline) next token text
Parameters:
getPreviousTokenConstant [line 1138]
int getPreviousTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) previous token constant
Parameters:
getPreviousTokenContent [line 1148]
string getPreviousTokenContent(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) previous token text
Parameters:
getPreviousWhitespace [line 1173]
void getPreviousWhitespace(
)
|
|
getSetting [line 920]
mixed getSetting(
string
$sKey)
|
|
Returns the value of a settings
Parameters:
getToken [line 1231]
array &getToken(
int
$iIndex)
|
|
Get a token by number
Parameters:
getTokenAssoc [line 654]
mixed getTokenAssoc(
int
$iIndex)
|
|
Get the reference to $aOut, based on the number of the token
Parameters:
getTokenAssocText [line 663]
mixed getTokenAssocText(
int
$iIndex)
|
|
Get the output for specified token
Parameters:
getTokenFunction [line 692]
mixed getTokenFunction(
mixed
$sTokenType)
|
|
Return the function for a token constant or string.
Parameters:
incIndent [line 1017]
void incIndent(
[int
$iIncr = false])
|
|
Increments the indent in X chars.
If param omitted, used iIndentNumber
Parameters:
isNextTokenConstant [line 1108]
bool isNextTokenConstant(
mixed
$mValue, [
$iPrev = 1])
|
|
Return true if any of the constant defined is param 1 is the next 'x' content
Parameters:
isNextTokenContent [line 1123]
bool isNextTokenContent(
mixed
$mValue, [
$iPrev = 1])
|
|
Return true if any of the content defined is param 1 is the next 'x' content
Parameters:
isPreviousTokenConstant [line 1078]
bool isPreviousTokenConstant(
mixed
$mValue, [
$iPrev = 1])
|
|
Return true if any of the constant defined is param 1 is the previous 'x' constant
Parameters:
isPreviousTokenContent [line 1093]
bool isPreviousTokenContent(
mixed
$mValue, [
$iPrev = 1])
|
|
Return true if any of the content defined is param 1 is the previous 'x' content
Parameters:
pop [line 988]
void pop(
[int
$iReps = 1])
|
|
Delete the last added outputs
Parameters:
process [line 585]
Process the string or file to beautify
removeWhitespace [line 1204]
Remove all whitespace from the previous tag
replaceTokenAssoc [line 676]
bool replaceTokenAssoc(
int
$iIndex, string
$sText)
|
|
Replace the output for specified token
Parameters:
save [line 527]
void save(
[string
$sFile = null])
|
|
Save the beautified code to output file
Parameters:
setBeautify [line 896]
void setBeautify(
bool
$sFlag)
|
|
Set the Beautifier on or off
Parameters:
setIndentChar [line 468]
void setIndentChar(
string
$sChar)
|
|
Character used for indentation
Parameters:
setIndentNumber [line 476]
void setIndentNumber(
int
$iIndentNumber)
|
|
Number of characters for indentation
Parameters:
setInputFile [line 493]
void setInputFile(
string
$sFile)
|
|
Set the file for beautify
Parameters:
setInputString [line 552]
void setInputString(
string
$sText)
|
|
Set a string for beautify
Parameters:
setMode [line 951]
void setMode(
string
$sKey)
|
|
Set a mode to true
Parameters:
setNewLine [line 484]
void setNewLine(
string
$sNewLine)
|
|
Character used as a new line
Parameters:
setOutputFile [line 517]
void setOutputFile(
string
$sFile)
|
|
Set the output file for beautify
Parameters:
show [line 903]
unsetMode [line 959]
void unsetMode(
string
$sKey)
|
|
Set a mode to false
Parameters: