org.springframework.extensions.webscripts.processor
Class PHPMethodExtension

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by org.springframework.extensions.webscripts.processor.PHPMethodExtension
All Implemented Interfaces:
com.caucho.quercus.module.QuercusModule, ProcessorExtension

public class PHPMethodExtension
extends com.caucho.quercus.module.AbstractQuercusModule
implements ProcessorExtension

Base class representing an extension to the PHP processor that adds new methods.

Author:
Roy Wetherall

Field Summary
protected  String extensionName
          The name of the extension
protected  PHPTemplateProcessor phpProcessor
          The PHP processor
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
PHPMethodExtension()
           
 
Method Summary
 String getExtensionName()
          Returns the name of the extension
 void initialiseModule(com.caucho.quercus.module.QuercusModule module)
          Callback used to copy across state to the Quercus module.
 void register()
          Register the method extension with the PHP processor.
 void setExtensionName(String extensionName)
          Sets the extension name
 void setPhpProcessor(PHPTemplateProcessor phpProcessor)
          Sets the PHP Processor
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
getConstMap, getIniDefinitions, getLoadedExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extensionName

protected String extensionName
The name of the extension


phpProcessor

protected PHPTemplateProcessor phpProcessor
The PHP processor

Constructor Detail

PHPMethodExtension

public PHPMethodExtension()
Method Detail

setExtensionName

public void setExtensionName(String extensionName)
Sets the extension name

Parameters:
extensionName - the extension name

getExtensionName

public String getExtensionName()
Description copied from interface: ProcessorExtension
Returns the name of the extension

Specified by:
getExtensionName in interface ProcessorExtension
Returns:
the name of the extension
See Also:
org.alfresco.service.cmr.repository.ProcessorExtension#getExtensionName()

setPhpProcessor

public void setPhpProcessor(PHPTemplateProcessor phpProcessor)
Sets the PHP Processor

Parameters:
phpProcessor - the PHP processor

register

public void register()
Register the method extension with the PHP processor.


initialiseModule

public void initialiseModule(com.caucho.quercus.module.QuercusModule module)
Callback used to copy across state to the Quercus module. This is needed because the Quercus library creates a new instance of the module once it has been added.

Parameters:
module - the Quercus module


Copyright © 2009 SpringSource, Inc. All Rights Reserved.