__construct (Constructor) [line 184]
PHP_Beautifier __construct(
)
|
|
Constructor.
Assing values to $aControlStructures,$aControlStructuresEnd, $aTokenFunctions
add [line 972]
Add a string to the output
Parameters:
addFilter [line 341]
bool addFilter(
string
$sFilter, [array
$aSettings = array()])
|
|
Add a Filter to the Beautifier The first argument is the name of the file of the Filter.
Parameters:
addFilterDirectory [line 302]
void addFilterDirectory(
string
$sDir)
|
|
Add a filter directory
Parameters:
addIndent [line 1001]
addNewLine [line 991]
Add a new line to the output
get [line 904]
Returns the beutified code
getControlParenthesis [line 932]
mixed getControlParenthesis(
[int
$iRet = 0])
|
|
Get the token constant for the current Parenthesis
Parameters:
getControlSeq [line 922]
void getControlSeq(
[int
$iRet = 0])
|
|
Get the token constant for the current control construct
Parameters:
getFilesByPattern [line 449]
array getFilesByPattern(
string
$sDir, string
$sFilePattern, [bool
$bRecursive = false])
|
|
Search, inside a dir, for a file pattern, using regular expresion Example:
Search recursively for all the files with php extensions in the current dir
Parameters:
getFilterDescription [line 364]
mixed getFilterDescription(
string
$sFilter)
|
|
Return the Filter Description
Parameters:
getFilterDirectories [line 315]
array getFilterDirectories(
)
|
|
Return an array with all the Filter Dirs
getFilterList [line 404]
Get the names of the loaded filters
getFilterListTotal [line 415]
array getFilterListTotal(
)
|
|
Get the list of all available Filters in all the include Dirs
getIndentChar [line 470]
getIndentNumber [line 474]
getMode [line 961]
bool getMode(
string
$sKey)
|
|
Get the state of a mode
Parameters:
getNewLine [line 478]
getNextTokenConstant [line 1132]
int getNextTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) next token constant
Parameters:
getNextTokenContent [line 1142]
int getNextTokenContent(
[int
$iNext = 1])
|
|
Get the 'x' significant (non whiteline) next token text
Parameters:
getPreviousTokenConstant [line 1112]
int getPreviousTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) previous token constant
Parameters:
getPreviousTokenContent [line 1122]
string getPreviousTokenContent(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) previous token text
Parameters:
getSetting [line 913]
mixed getSetting(
string
$sKey)
|
|
Returns the value of a settings
Parameters:
getToken [line 1166]
array &getToken(
int
$iIndex)
|
|
Get a token by number
Parameters:
getTokenAssoc [line 659]
mixed getTokenAssoc(
int
$iIndex)
|
|
Get the reference to $aOut, based on the number of the token
Parameters:
getTokenAssocText [line 668]
mixed getTokenAssocText(
int
$iIndex)
|
|
Get the output for specified token
Parameters:
getTokenFunction [line 697]
mixed getTokenFunction(
mixed
$sTokenType)
|
|
Return the function for a token constant or string.
Parameters:
isNextTokenConstant [line 1082]
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 1097]
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 1052]
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 1067]
bool isPreviousTokenContent(
mixed
$mValue, [
$iPrev = 1])
|
|
Return true if any of the content defined is param 1 is the previous 'x' content
Parameters:
normalizeDir [line 324]
string normalizeDir(
string
$sDir)
|
|
Normalize reference to directories
Parameters:
pop [line 981]
void pop(
[int
$iReps = 1])
|
|
Delete the last added outputs
Parameters:
process [line 598]
Process the string or file to beautify
removeWhitespace [line 1150]
Remove all whitespace from the previous tag
replaceTokenAssoc [line 681]
bool replaceTokenAssoc(
int
$iIndex, string
$sText)
|
|
Replace the output for specified token
Parameters:
save [line 541]
void save(
[string
$sFile = null])
|
|
Save the beautified code to output file
Parameters:
setBeautify [line 889]
void setBeautify(
bool
$sFlag)
|
|
Set the Beautifier on or off
Parameters:
setIndentChar [line 486]
void setIndentChar(
string
$sChar)
|
|
Character used for indentation
Parameters:
setIndentNumber [line 494]
void setIndentNumber(
int
$iIndentNumber)
|
|
Number of characters for indentation
Parameters:
setInputFile [line 511]
void setInputFile(
string
$sFile)
|
|
Set the file for beautify
Parameters:
setInputString [line 566]
void setInputString(
string
$sText)
|
|
Set a string for beautify
Parameters:
setMode [line 944]
void setMode(
string
$sKey)
|
|
Set a mode to true
Parameters:
setNewLine [line 502]
void setNewLine(
string
$sNewLine)
|
|
Character used as a new line
Parameters:
setOutputFile [line 531]
void setOutputFile(
string
$sFile)
|
|
Set the output file for beautify
Parameters:
show [line 896]
unsetMode [line 952]
void unsetMode(
string
$sKey)
|
|
Set a mode to false
Parameters: