com.dotmarketing.scripting.engine
Class PHPEngine

java.lang.Object
  extended by org.apache.bsf.util.BSFEngineImpl
      extended by com.dotmarketing.scripting.engine.PHPEngine
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, org.apache.bsf.BSFEngine

public class PHPEngine
extends org.apache.bsf.util.BSFEngineImpl

This class was written originally written for the Scripting Plugin of dotCMS. It returns a wrapper object which attempts to wrap the Out and the Value which Quercus provides.

Author:
Jason Tesser

Field Summary
 
Fields inherited from class org.apache.bsf.util.BSFEngineImpl
classLoader, classPath, declaredBeans, lang, mgr, tempDir
 
Constructor Summary
PHPEngine()
           
 
Method Summary
 java.lang.Object call(java.lang.Object object, java.lang.String method, java.lang.Object[] args)
          Return an object from an extension.
 void declareBean(org.apache.bsf.BSFDeclaredBean bean)
           
 java.lang.Object eval(java.lang.String source, int lineNo, int columnNo, java.lang.Object oscript)
           
 void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
           
 
Methods inherited from class org.apache.bsf.util.BSFEngineImpl
apply, compileApply, compileExpr, compileScript, exec, iexec, initialize, propertyChange, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PHPEngine

public PHPEngine()
Method Detail

declareBean

public void declareBean(org.apache.bsf.BSFDeclaredBean bean)
                 throws org.apache.bsf.BSFException
Specified by:
declareBean in interface org.apache.bsf.BSFEngine
Overrides:
declareBean in class org.apache.bsf.util.BSFEngineImpl
Throws:
org.apache.bsf.BSFException

undeclareBean

public void undeclareBean(org.apache.bsf.BSFDeclaredBean bean)
                   throws org.apache.bsf.BSFException
Specified by:
undeclareBean in interface org.apache.bsf.BSFEngine
Overrides:
undeclareBean in class org.apache.bsf.util.BSFEngineImpl
Throws:
org.apache.bsf.BSFException

call

public java.lang.Object call(java.lang.Object object,
                             java.lang.String method,
                             java.lang.Object[] args)
                      throws org.apache.bsf.BSFException
Return an object from an extension.

Parameters:
File - to call functions on
method - The name of the method to call.
args - an array of arguments to be passed to the extension, which may be either Vectors of Nodes, or Strings.
Throws:
org.apache.bsf.BSFException

eval

public java.lang.Object eval(java.lang.String source,
                             int lineNo,
                             int columnNo,
                             java.lang.Object oscript)
                      throws org.apache.bsf.BSFException
Throws:
org.apache.bsf.BSFException


Copyright © 2013 dotCMS Inc. All Rights Reserved.