__construct (Constructor) [line 220]
PHP_Beautifier __construct(
)
|
|
Constructor.
Assing values to $aControlStructures,$aControlStructuresEnd, $aTokenFunctions
add [line 1042]
Add a string to the output
Parameters:
addFilter [line 371]
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 340]
void addFilterDirectory(
string
$sDir)
|
|
Add a filter directory
Parameters:
addIndent [line 1072]
addNewLine [line 1062]
Add a new line to the output
addNewLineIndent [line 1083]
Add a new line and a indent to output
decIndent [line 1104]
get [line 972]
Returns the beutified code
getControlParenthesis [line 1000]
mixed getControlParenthesis(
[int
$iRet = 0])
|
|
Get the token constant for the current Parenthesis
Parameters:
getControlSeq [line 990]
void getControlSeq(
[int
$iRet = 0])
|
|
Get the token constant for the current control construct
Parameters:
getFilterDescription [line 412]
mixed getFilterDescription(
string
$sFilter)
|
|
Return the Filter Description
Parameters:
getFilterDirectories [line 353]
array getFilterDirectories(
)
|
|
Return an array with all the Filter Dirs
getFilterList [line 455]
Get the names of the loaded filters
getFilterListTotal [line 466]
array getFilterListTotal(
)
|
|
Get the list of all available Filters in all the include Dirs
getIndentChar [line 488]
getIndentNumber [line 492]
getMode [line 1030]
bool getMode(
string
$sKey)
|
|
Get the state of a mode
Parameters:
getNewLine [line 496]
getNextTokenConstant [line 1236]
int getNextTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whitespace) next token constant
Parameters:
getNextTokenContent [line 1246]
int getNextTokenContent(
[int
$iNext = 1])
|
|
Get the 'x' significant (non whitespace) next token text
Parameters:
getPreviousTokenConstant [line 1216]
int getPreviousTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whitespace) previous token constant
Parameters:
getPreviousTokenContent [line 1226]
string getPreviousTokenContent(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whitespace) previous token text
Parameters:
getPreviousWhitespace [line 1259]
string getPreviousWhitespace(
)
|
|
Return the whitespace previous to current token
Ex.: You have ' if($a)' if you call this funcion on 'if', you get ' '
getSetting [line 981]
mixed getSetting(
string
$sKey)
|
|
Returns the value of a settings
Parameters:
getToken [line 1317]
array &getToken(
int
$iIndex)
|
|
Get a token by number
Parameters:
getTokenAssoc [line 707]
mixed getTokenAssoc(
int
$iIndex)
|
|
Get the reference to $aOut, based on the number of the token
Parameters:
getTokenAssocText [line 716]
mixed getTokenAssocText(
int
$iIndex)
|
|
Get the output for the specified token
Parameters:
getTokenFunction [line 745]
mixed getTokenFunction(
mixed
$sTokenType)
|
|
Return the function for a token constant or string.
Parameters:
incIndent [line 1093]
void incIndent(
[int
$iIncr = false])
|
|
Increments the indent in X chars.
If param omitted, used iIndentNumber
Parameters:
isNextTokenConstant [line 1186]
bool isNextTokenConstant(
mixed
$mValue, [
$iPrev = 1])
|
|
Return true if any of the constant defined in param 1 is the next 'x' content
Parameters:
isNextTokenContent [line 1201]
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 1156]
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 1171]
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 1051]
void pop(
[int
$iReps = 1])
|
|
Delete the last added output(s)
Parameters:
process [line 624]
Process the string or file to beautify
removeFilter [line 395]
bool removeFilter(
string
$sFilter)
|
|
Removes a Filter
Parameters:
removeWhitespace [line 1290]
Remove all whitespace from the previous tag
replaceTokenAssoc [line 729]
bool replaceTokenAssoc(
int
$iIndex, string
$sText)
|
|
Replace the output for specified token
Parameters:
save [line 564]
void save(
[string
$sFile = null])
|
|
Save the beautified code to output file
Parameters:
setBeautify [line 957]
void setBeautify(
bool
$sFlag)
|
|
Set the Beautifier on or off
Parameters:
setFileType [line 949]
void setFileType(
string
$sType)
|
|
Set the filetype
Parameters:
setIndentChar [line 504]
void setIndentChar(
string
$sChar)
|
|
Character used for indentation
Parameters:
setIndentNumber [line 512]
void setIndentNumber(
int
$iIndentNumber)
|
|
Number of characters for indentation
Parameters:
setInputFile [line 529]
void setInputFile(
string
$sFile)
|
|
Set the file for beautify
Parameters:
setInputString [line 589]
void setInputString(
string
$sText)
|
|
Set a string for beautify
Parameters:
setMode [line 1013]
void setMode(
string
$sKey)
|
|
Set a mode to true
Parameters:
setNewLine [line 520]
void setNewLine(
string
$sNewLine)
|
|
Character used as a new line
Parameters:
setOutputFile [line 554]
void setOutputFile(
string
$sFile)
|
|
Set the output file for beautify
Parameters:
show [line 964]
unsetMode [line 1021]
void unsetMode(
string
$sKey)
|
|
Set a mode to false
Parameters: