|
NAMEWWWdb::Plugin - Plugins for WWWdbSYNOPSISuse WWWdb::Plugin; $oPlugin = Plugin->new($cName, ["HasPrePost" => $bHasPrePost,] ["HasMy" => $bHasMy]); $cResult = $oPlugin->Call(@lParams); $bResult = $oPlugin->IsDefined($cType); $cName = $oPlugin->getName(); DESCRIPTIONThe Plugin classPlugins are one of the base-technology, which makes WWWdb so flexible. It allows the user, to plug in his own modules before, after and/or instead of the system-routine.An example demonstrates, how this works. Lets assume we have a subroutine named Plugin. If we want to add functionality, before this routine is called we need a own plugin called PrePlugin. For additional functionality after the call of the Routine we have to define a routine called PostPlugin. But what, if we want to replace the default plugin completely? Ok, then we must define the subroutine MyPlugin. If it is defined, this subroutine instead of the original Plugin is called. NoteCurrently the plugins are expected in the main::
name-space.
Class Methods
Class Attributes
Visit the GSP FreeBSD Man Page Interface. |