Phpfox_Plugin

Description

Plugins

Our product is built around a plug-in system that allows 3rd party code to easily hook onto our core library and other modules without the need to modify its code. This class takes care of creating the hook enviroment.

  • author: Raymond Benc
  • version: $Id: plugin.class.php 1687 2010-07-22 03:13:27Z Raymond_Benc $
  • copyright: [PHPFOX_COPYRIGHT]

Located in /include/library/phpfox/plugin/plugin.class.php (line 20)


	
			
Variable Summary
 static array $_aAllHooks
 static array $_aAvailablePlugins
 static array $_aPlugins
 static array $_sCacheName
Method Summary
 static mixed get (string $sCallName)
 static void set ()
 static string _cleanPhp (string $sHookContent)
Variables
static array $_aAllHooks = array() (line 34)

List of all the hooks stored in the system.

  • access: private
static array $_aAvailablePlugins = array() (line 49)

List of all the plug-in names.

  • access: private
static array $_aPlugins = array() (line 27)

ARRAY of plug-ins to be used.

  • access: public
static array $_sCacheName = array() (line 42)

Variable is deprecated.

  • deprecated: 2.0.6
  • access: private
Methods
static get (line 184)

Get a specific plug-in.

  • return: FALSE if we cannot find a plug-in, PHP code if we can which will then later be evaled.
  • access: public
mixed get (string $sCallName)
  • string $sCallName: Name of the plug-in.
static set (line 55)

Build and cache all the plug-ins for future use.

  • access: public
void set ()
static _cleanPhp (line 211)

Clean out any PHP that is causing problems when we eval the code.

  • return: Fixed PHP code.
  • access: private
string _cleanPhp (string $sHookContent)
  • string $sHookContent: PHP code to parse.

Documentation generated on Tue, 28 Sep 2010 10:36:43 +0200 by phpDocumentor 1.4.0a2