org.owasp.orizon.mirage.php
Class PhpCollector

java.lang.Object
  extended by org.owasp.orizon.core.Trackable
      extended by org.owasp.orizon.mirage.Collector
          extended by org.owasp.orizon.mirage.php.PhpCollector

public class PhpCollector
extends Collector

This class will ask the auto-generated parser to do his job and it will collect information to be used from the Modeler to create an application model.

Since:
1.1
Author:
thesp0nge, Stephen Craig Evans

Field Summary
protected  java.util.Vector<FileInclusion> includedFiles
           
protected  Node root
           
protected  java.util.Vector<Var> variables
           
 
Fields inherited from class org.owasp.orizon.mirage.Collector
calls, cCI, error, filename, lastKeyWordFound, lastKeyWordFoundFlag, stats, status
 
Fields inherited from class org.owasp.orizon.core.Trackable
trace, traceName
 
Constructor Summary
PhpCollector(java.io.File f)
           
PhpCollector(java.lang.String filename)
           
 
Method Summary
 boolean crawl(java.util.Vector<java.lang.String> s)
           
 boolean dump(java.lang.String what)
           
 java.util.Vector<java.lang.String> getFileIncluded()
           
 int getFileIncludedCount()
           
 int getIdentifiersCount()
           
 java.lang.String getLastKeyWordFound()
           
 Node getRootNode()
           
 int getVariablesCount()
           
 boolean inspect()
           
 boolean parse()
           
 boolean show(java.lang.String name)
           
 boolean spider()
           
 
Methods inherited from class org.owasp.orizon.mirage.Collector
canDump, canOutput, canParse, find, getCalls, getCyclomaticComplexityIndex, getError, getName, getStats, getVariables, isError, setAfterInspectStatus, setError
 
Methods inherited from class org.owasp.orizon.core.Trackable
getTraceName, isTrace, setTrace, setTraceName, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

includedFiles

protected java.util.Vector<FileInclusion> includedFiles

variables

protected java.util.Vector<Var> variables

root

protected Node root
Constructor Detail

PhpCollector

public PhpCollector(java.lang.String filename)

PhpCollector

public PhpCollector(java.io.File f)
Method Detail

parse

public boolean parse()
Specified by:
parse in class Collector

getRootNode

public Node getRootNode()

inspect

public boolean inspect()
Specified by:
inspect in class Collector

getVariablesCount

public int getVariablesCount()
Specified by:
getVariablesCount in class Collector

getIdentifiersCount

public int getIdentifiersCount()
Specified by:
getIdentifiersCount in class Collector

spider

public boolean spider()
Specified by:
spider in class Collector

getFileIncludedCount

public int getFileIncludedCount()
Specified by:
getFileIncludedCount in class Collector

getFileIncluded

public java.util.Vector<java.lang.String> getFileIncluded()
Specified by:
getFileIncluded in class Collector

crawl

public boolean crawl(java.util.Vector<java.lang.String> s)
Specified by:
crawl in class Collector

getLastKeyWordFound

public java.lang.String getLastKeyWordFound()

show

public boolean show(java.lang.String name)
Specified by:
show in class Collector

dump

public boolean dump(java.lang.String what)
Specified by:
dump in class Collector