[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
A class for performing code analysis for php scripts It is designed to be the heart of a code limiting script to use with Savant {@link http://phpsavant.com} This code should be php4 compatiable but i've only run it in php5 and some of the Tokenizer constants have changed
Author: | Joshua Eichorn <josh@bluga.net> |
Copyright: | Joshua Eichorn 2004 |
License: | http://www.gnu.org/copyleft/lesser.html LGPL |
Poids: | 471 lignes (10 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
PHPCodeAnalyzer:: (18 méthodes):
analyze()
handleSimpleToken()
handleInclude()
handleString()
handleVariable()
handleDoubleColon()
handleNew()
handleFunction()
handleClass()
handleObjectOperator()
handleWhitespace()
handleAs()
handleConstruct()
classInstantiated()
fileIncluded()
functionCalled()
useMemberVar()
useVariable()
Classe: PHPCodeAnalyzer - X-Ref
Code Analysis classanalyze() X-Ref |
parse source filling informational arrays |
handleSimpleToken($token) X-Ref |
Handle a 1 char token |
handleInclude($id,$text) X-Ref |
handle includes and requires |
handleString($id,$text) X-Ref |
handle String tokens |
handleVariable($id,$text) X-Ref |
handle variables |
handleDoubleColon($id,$text) X-Ref |
handle Double Colon tokens |
handleNew($id,$text) X-Ref |
handle new keyword |
handleFunction($id,$text) X-Ref |
handle function |
handleClass($id,$text) X-Ref |
handle class |
handleObjectOperator($id,$text) X-Ref |
Handle -> |
handleWhitespace($id,$text) X-Ref |
handle whitespace to figure out line counts |
handleAs($id,$text) X-Ref |
as has been used we must have a var before it |
handleConstruct($id,$construct) X-Ref |
a language construct has been called record it |
classInstantiated() X-Ref |
a class was Instantiated record it |
fileIncluded() X-Ref |
a file was included record it |
functionCalled($id = false) X-Ref |
a function was called record it |
useMemberVar() X-Ref |
we used a member variable record it |
useVariable() X-Ref |
we used a variable record it |
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |