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 168]
[line 99]
[line 100]
[line 91]
[line 108]
[line 86]
[line 81]
[line 163]
[line 128]
[line 113]
[line 118]
[line 123]
[line 133]
[line 138]
[line 158]
[line 143]
[line 153]
[line 148]
PHP_Beautifier __construct( )
Assing values to $aControlStructures,$aControlStructuresEnd, $aTokenFunctions
void add( string $token)
bool addFilter( string $mFilter, [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])
void getPreviousWhitespace( )
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( )
bool 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)