void AdminAfterMenuInit(
)
|
|
Event handler: Gets invoked in /admin/_header.php for every backoffice page after the menu structure is build. You can use the $AdminUI object to modify it.
This is the hook to register menu entries. See register_menu_entry().
API Tags:
Redefinition of:
- Plugin::AdminAfterMenuInit()
- Event handler: Gets invoked in /admin/_header.php for every backoffice page after the menu structure is build. You could use the $AdminUI object to modify it.
boolean AdminAfterPageFooter(
array
&$params
)
|
|
Event handler: Called right after displaying the admin page footer.
Parameters:
|
array |
&$params: |
Associative array of parameters |
API Tags:
Redefinition of:
- Plugin::AdminAfterPageFooter()
- Event handler: Called right after displaying the admin page footer.
void AdminBeforeItemEditCreate(
&$params
)
|
|
Parameters:
API Tags:
Redefinition of:
- Plugin::AdminBeforeItemEditCreate()
- Event handler: Called before a new item gets created (in the backoffice).
void AdminBeforeItemEditUpdate(
&$params
)
|
|
Parameters:
API Tags:
Redefinition of:
- Plugin::AdminBeforeItemEditUpdate()
- Event handler: Called before an existing item gets updated (in the backoffice).
void AdminBeginPayload(
)
|
|
Event handler: Gets invoked before the main payload in the backoffice.
API Tags:
Redefinition of:
- Plugin::AdminBeginPayload()
- Event handler: Gets invoked before the main payload in the backoffice.
boolean AdminDisplayEditorButton(
array
&$params
)
|
|
Event handler: Called when displaying editor buttons.
Parameters:
|
array |
&$params: |
Associative array of parameters |
API Tags:
Redefinition of:
- Plugin::AdminDisplayEditorButton()
- Event handler: Called when displaying editor buttons.
boolean AdminDisplayToolbar(
array
&$params
)
|
|
Event handler: Called when displaying editor toolbars.
Parameters:
|
array |
&$params: |
Associative array of parameters |
API Tags:
Redefinition of:
- Plugin::AdminDisplayToolbar()
- Event handler: Called when displaying editor toolbars.
boolean AdminEndHtmlHead(
array
&$params
)
|
|
Event handler: Called when ending the admin html head section.
Parameters:
|
array |
&$params: |
Associative array of parameters |
API Tags:
Redefinition of:
- Plugin::AdminEndHtmlHead()
- Event handler: Called when ending the admin html head section.
Event handler: Method that gets invoked when our tab (?tab=plug_ID_X) is selected.
You should catch params (GET/POST) here and do actions (no output!). Use $Messages to add messages for the user.
API Tags:
Redefinition of:
- Plugin::AdminTabAction()
- Event handler: Method that gets invoked when our tab is selected.
Event handler: Gets invoked when our tab is selected and should get displayed.
API Tags:
Redefinition of:
- Plugin::AdminTabPayload()
- Event handler: Gets invoked when our tab is selected and should get displayed.
void AdminToolAction(
$params
)
|
|
Event handler: Called when handling actions for the "Tools" menu.
Use $Messages to add Messages for the user.
Parameters:
API Tags:
Redefinition of:
- Plugin::AdminToolAction()
- Event handler: Called when handling actions for the "Tools" menu.
void AdminToolPayload(
$params
)
|
|
Event handler: Called when displaying the block in the "Tools" menu.
Parameters:
API Tags:
Redefinition of:
- Plugin::AdminToolPayload()
- Event handler: Called when displaying the block in the "Tools" menu.
Event handler: Called when the plugin has been installed.
API Tags:
Redefinition of:
- Plugin::AfterInstall()
- Event handler: Called after the plugin has been installed.
void AfterUserRegistration(
$params
)
|
|
Event handler: called when a new user has registered.
Parameters:
API Tags:
Redefinition of:
- Plugin::AfterUserRegistration()
- Event handler: Called when a new user has registered and got created.
void AlternateAuthentication(
)
|
|
Automagically login every user as "demouser" who is not logged in and does not try to currently.
To enable/test it, change the "if-0" check below to "if( 1 )".
API Tags:
Redefinition of:
- Plugin::AlternateAuthentication()
- Event handler: called at the end of the login process, if the user did not try to login (by sending "login" and "pwd"), the session has no user attached or only "login" is given.
void AppendLoginRegisteredUser(
)
|
|
Deactive the plugin for the current request if the user wants it so.
API Tags:
| See: | Plugin::AppendLoginRegisteredUser() |
Event handler: Called before the plugin is installed.
API Tags:
Redefinition of:
- Plugin::BeforeInstall()
- Event handler: Called before the plugin is going to be installed.
Event handler: Called before the plugin is going to be un-installed.
API Tags:
Redefinition of:
- Plugin::BeforeUninstall()
- Event handler: Called before the plugin is going to be un-installed.
void DisplayItemAsHtml(
&$params
)
|
|
Event handler: Called when displaying item/post contents as HTML.
Note: return value is ignored. You have to change $params['content'].
Parameters:
API Tags:
Redefinition of:
- Plugin::DisplayItemAsHtml()
- Event handler: Called when displaying an item/post's content as HTML.
void DisplayItemAsText(
&$params
)
|
|
Event handler: Called when displaying item/post contents as text.
Note: return value is ignored. You have to change $params['content'].
Parameters:
API Tags:
Redefinition of:
- Plugin::DisplayItemAsText()
- Event handler: Called when displaying an item/post's content as text.
void DisplayItemAsXml(
&$params
)
|
|
Event handler: Called when displaying item/post contents as XML.
Note: return value is ignored. You have to change $params['content'].
Parameters:
API Tags:
Redefinition of:
- Plugin::DisplayItemAsXml()
- Event handler: Called when displaying an item/post's content as XML.
void DisplayLoginFormFieldset(
&$params
)
|
|
Event handler: Called at the end of the "Login" form.
Parameters:
API Tags:
Redefinition of:
- Plugin::DisplayLoginFormFieldset()
- Event handler: Called at the end of the "Login" form.
void DisplayValidateAccountFormFieldset(
&$params
)
|
|
Parameters:
API Tags:
Redefinition of:
- Plugin::DisplayValidateAccountFormFieldset()
- Event handler: Called at the end of the "Validate user account" form, which gets invoked if newusers_mustvalidate is enabled and the user has not been validated yet.
void ExecCronJob(
&$params
)
|
|
Execute/Handle a test/sample cronjob.
Parameters:
Redefinition of:
- Plugin::ExecCronJob()
- Execute/handle a cron job, which has been scheduled by the admin out of the list that the Plugin provides (see GetCronJobs()).
void FilterIpAddress(
&$params
)
|
|
Wrap a to be displayed IP address.
Parameters:
API Tags:
Redefinition of:
- Plugin::FilterIpAddress()
- Event handler: Called when an IP address gets displayed, typically in a protected area or for a privileged user, e.g. in the backoffice statistics menu.
void GetCronJobs(
&$params
)
|
|
Define a test cron job
Parameters:
Redefinition of:
- Plugin::GetCronJobs()
- This method gets asked for a list of cronjobs that the plugin provides.
array GetDefaultSettings(
&$params
)
|
|
Get the settings that the plugin can use.
Those settings are transfered into a Settings member object of the plugin and can be edited in the backoffice (Settings / Plugins).
Parameters:
API Tags:
Redefinition of:
- Plugin::GetDefaultSettings()
- Define here default settings that are then available in the backoffice.
array GetDefaultUserSettings(
)
|
|
User settings.
API Tags:
Redefinition of:
- Plugin::GetDefaultUserSettings()
- Define here default user settings that are then available in the backoffice.
Define some dependencies.
API Tags:
Redefinition of:
- Plugin::GetDependencies()
- Get the list of dependencies that the plugin has.
We trigger an extra event ourself (which we also provide ourselves).
Redefinition of:
- Plugin::GetExtraEvents()
- This method gets asked when plugins get installed and allows you to return a list of extra events, which your plugin triggers itself (e.g. through $Plugins->trigger_event()).
Event handler: Called when a user tries to login.
API Tags:
Redefinition of:
- Plugin::LoginAttempt()
- Event handler: called when a user attemps to login.
void PluginInit(
&$params
)
|
|
Init
This gets called after a plugin has been registered/instantiated.
Parameters:
Redefinition of:
- Plugin::PluginInit()
- Init the Plugin after it has been registered/instantiated.
void PluginUserSettingsUpdateAction(
)
|
|
Gets asked for, if user settings get updated.
We just add a note.
API Tags:
Redefinition of:
- Plugin::PluginUserSettingsUpdateAction()
- Event handler: Called as action just before updating the Plugin::UserSettings.
void RenderItemAsHtml(
&$params
)
|
|
Event handler: Called when rendering item/post contents as HTML.
Note: return value is ignored. You have to change $params['content'].
Parameters:
API Tags:
Redefinition of:
- Plugin::RenderItemAsHtml()
- Event handler: Called when rendering item/post contents as HTML. (CACHED)
void RenderItemAsText(
&$params
)
|
|
Event handler: Called when rendering item/post contents as text.
Note: return value is ignored. You have to change $params['content'].
Parameters:
API Tags:
Redefinition of:
- Plugin::RenderItemAsText()
- Event handler: Called when rendering item/post contents other than XML or HTML.
void RenderItemAsXml(
&$params
)
|
|
Event handler: Called when rendering item/post contents as XML.
Note: return value is ignored. You have to change $params['content'].
Parameters:
API Tags:
Redefinition of:
- Plugin::RenderItemAsXml()
- Event handler: Called when rendering item/post contents as XML.
integer test_plugin_get_random(
array
&$params
)
|
|
Gets provided as plugin event (and gets also used internally for demonstration).
Parameters:
|
array |
&$params: |
Associative array of parameters 'min': mininum number 'max': maxinum number |