Todo List
Class to beautify php code How to use:
$oToken = new PHP_Beautifier(); // create a instance $oToken->addFilter('ArraySimple'); $oToken->addFilter('ListClassFunction'); // add one or more filters $oToken->setInputFile(__FILE__); // nice... process the same file $oToken->process(); // required $oToken->show();
[line 156]
[line 91]
[line 83]
[line 96]
[line 78]
[line 73]
[line 151]
[line 116]
[line 101]
[line 106]
[line 111]
[line 121]
[line 126]
[line 146]
[line 131]
[line 141]
[line 136]
PHP_Beautifier __construct( )
Assing values to $aControlStructures,$aControlStructuresEnd, $aTokenFunctions
void add( string $token)
bool addFilter( string $sFilter, [array $aSettings = array()])
void addFilterDirectory( string $sDir)
void addIndent( )
void addNewLine( )
string get( )
mixed getControlParenthesis( [int $iRet = 0])
void getControlSeq( [int $iRet = 0])
mixed getFilterDescription( string $sFilter)
array getFilterDirectories( )
array getFilterList( )
array getFilterListTotal( )
void getIndentChar( )
void getIndentNumber( )
bool getMode( string $sKey)
void getNewLine( )
int getNextTokenConstant( [int $iPrev = 1])
int getNextTokenContent( [int $iNext = 1])
int getPreviousTokenConstant( [int $iPrev = 1])
string getPreviousTokenContent( [int $iPrev = 1])
mixed getSetting( string $sKey)
array &getToken( int $iIndex)
mixed getTokenAssoc( int $iIndex)
mixed getTokenAssocText( int $iIndex)
mixed getTokenFunction( mixed $sTokenType)
bool isNextTokenConstant( mixed $mValue, [ $iPrev = 1])
bool isNextTokenContent( mixed $mValue, [ $iPrev = 1])
bool isPreviousTokenConstant( mixed $mValue, [ $iPrev = 1])
bool isPreviousTokenContent( mixed $mValue, [ $iPrev = 1])
void pop( [int $iReps = 1])
bool process( )
void removeWhitespace( )
bool replaceTokenAssoc( int $iIndex, string $sText)
void save( [string $sFile = null])
void setBeautify( bool $sFlag)
void setIndentChar( string $sChar)
void setIndentNumber( int $iIndentNumber)
void setInputFile( string $sFile)
void setInputString( string $sText)
void setMode( string $sKey)
void setNewLine( string $sNewLine)
void setOutputFile( string $sFile)
void show( )
void unsetMode( string $sKey)