Xajax_core xajaxPluginManager. inc.php |
xajaxPluginManager. inc.phpContains the xajax plugin manager. Summary
xajax plugin managerPlease see copyright.inc.php for a detailed description, copyright and license information. xajaxPluginManagerSummary
_insertIntoArray
Inserts an entry into an array given the specified priority number. If a plugin already exists with the given priority, the priority is automatically incremented until a free spot is found. The plugin is then inserted into the empty spot in the array.
registerPlugin
Registers a plugin.
Below is a table for priorities and their description0 thru 999: Plugins that are part of or extensions to the xajax core 1000 thru 8999: User created plugins, typically, these plugins don’t care about order 9000 thru 9999: Plugins that generally need to be last or near the end of the plugin list canProcessRequest
Calls each of the request plugins and determines if the current request can be processed by one of them. If no processor identifies the current request, then the request must be for the initial page load. See xajax->canProcessRequest for more information. |
var $aRequestPlugins
var $aResponsePlugins
var $aConfigurable
var $aRegistrars
var $aProcessors
var $aClientScriptGenerators
Construct and initialize the one and only xajax plugin manager.
function xajaxPluginManager()
Implementation of the singleton pattern: returns the one and only instance of the xajax plugin manager.
function &getInstance()
Loads plugins from the folders specified.
function loadPlugins( $aFolders )
Inserts an entry into an array given the specified priority number.
function _insertIntoArray( & $aPlugins, & $objPlugin, $nPriority )
Registers a plugin.
function registerPlugin( & $objPlugin, $nPriority = 1000 )
Calls each of the request plugins and determines if the current request can be processed by one of them.
function canProcessRequest()
Calls each of the request plugins to request that they process the current request.
function processRequest()
Call each of the request plugins passing along the configuration setting specified.
function configure( $sName, $mValue )
Call each of the request plugins and give them the opportunity to handle the registration of the specified function, event or callable object.
function register( $aArgs )
Call each of the request and response plugins giving them the opportunity to output some javascript to the page being generated.
function generateClientScript()
Locate the specified response plugin by name and return a reference to it if one exists.
function &getPlugin( $sName )
Determines if a call is a xajax request or a page load request.
function canProcessRequest()