__construct (Constructor) [line 178]
PHP_Beautifier __construct(
)
|
|
Constructor.
Assing values to $aControlStructures,$aControlStructuresEnd, $aTokenFunctions
add [line 942]
Add a string to the output
Parameters:
addFilter [line 330]
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 291]
void addFilterDirectory(
string
$sDir)
|
|
Add a filter directory
Parameters:
addIndent [line 971]
addNewLine [line 961]
Add a new line to the output
get [line 874]
Returns the beutified code
getControlParenthesis [line 902]
mixed getControlParenthesis(
[int
$iRet = 0])
|
|
Get the token constant for the current Parenthesis
Parameters:
getControlSeq [line 892]
void getControlSeq(
[int
$iRet = 0])
|
|
Get the token constant for the current control construct
Parameters:
getFilesByPattern [line 438]
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 353]
mixed getFilterDescription(
string
$sFilter)
|
|
Return the Filter Description
Parameters:
getFilterDirectories [line 304]
array getFilterDirectories(
)
|
|
Return an array with all the Filter Dirs
getFilterList [line 393]
Get the names of the loaded filters
getFilterListTotal [line 404]
array getFilterListTotal(
)
|
|
Get the list of all available Filters in all the include Dirs
getIndentChar [line 459]
getIndentNumber [line 463]
getMode [line 931]
bool getMode(
string
$sKey)
|
|
Get the state of a mode
Parameters:
getNewLine [line 467]
getNextTokenConstant [line 1102]
int getNextTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) next token constant
Parameters:
getNextTokenContent [line 1112]
int getNextTokenContent(
[int
$iNext = 1])
|
|
Get the 'x' significant (non whiteline) next token text
Parameters:
getPreviousTokenConstant [line 1082]
int getPreviousTokenConstant(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) previous token constant
Parameters:
getPreviousTokenContent [line 1092]
string getPreviousTokenContent(
[int
$iPrev = 1])
|
|
Get the 'x' significant (non whiteline) previous token text
Parameters:
getSetting [line 883]
mixed getSetting(
string
$sKey)
|
|
Returns the value of a settings
Parameters:
getToken [line 1136]
array &getToken(
int
$iIndex)
|
|
Get a token by number
Parameters:
getTokenAssoc [line 643]
mixed getTokenAssoc(
int
$iIndex)
|
|
Get the reference to $aOut, based on the number of the token
Parameters:
getTokenAssocText [line 652]
mixed getTokenAssocText(
int
$iIndex)
|
|
Get the output for specified token
Parameters:
getTokenFunction [line 681]
mixed getTokenFunction(
mixed
$sTokenType)
|
|
Return the function for a token constant or string.
Parameters:
isNextTokenConstant [line 1052]
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 1067]
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 1022]
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 1037]
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 313]
string normalizeDir(
string
$sDir)
|
|
Normalize reference to directories
Parameters:
pop [line 951]
void pop(
[int
$iReps = 1])
|
|
Delete the last added outputs
Parameters:
process [line 585]
Process the string or file to beautify
removeWhitespace [line 1120]
Remove all whitespace from the previous tag
replaceTokenAssoc [line 665]
bool replaceTokenAssoc(
int
$iIndex, string
$sText)
|
|
Replace the output for specified token
Parameters:
save [line 530]
void save(
[string
$sFile = null])
|
|
Save the beautified code to output file
Parameters:
setBeautify [line 859]
void setBeautify(
bool
$sFlag)
|
|
Set the Beautifier on or off
Parameters:
setIndentChar [line 475]
void setIndentChar(
string
$sChar)
|
|
Character used for indentation
Parameters:
setIndentNumber [line 483]
void setIndentNumber(
int
$iIndentNumber)
|
|
Number of characters for indentation
Parameters:
setInputFile [line 500]
void setInputFile(
string
$sFile)
|
|
Set the file for beautify
Parameters:
setMode [line 914]
void setMode(
string
$sKey)
|
|
Set a mode to true
Parameters:
setNewLine [line 491]
void setNewLine(
string
$sNewLine)
|
|
Character used as a new line
Parameters:
setOutputFile [line 520]
void setOutputFile(
string
$sFile)
|
|
Set the output file for beautify
Parameters:
setString [line 553]
void setString(
string
$sText)
|
|
Set a string for beautify
Parameters:
show [line 866]
unsetMode [line 922]
void unsetMode(
string
$sKey)
|
|
Set a mode to false
Parameters: