Sweden Democrats' Meeting Tool
 All Classes Files Functions Variables Pages
Public Member Functions | Private Member Functions | List of all members
SD_Meeting_Tool_Actions Class Reference

Standard, basic and complete action handling plugin. More...

Inheritance diagram for SD_Meeting_Tool_Actions:
SD_Meeting_Tool_0 interface_SD_Meeting_Tool_Actions SD_Meeting_Tool_Base

Public Member Functions

 __construct ()
 activate ()
 uninstall ()
 sd_mt_admin_menu ($menus)
 admin ()
 admin_overview ()
 admin_edit ()
 Edit an action.
 admin_edit_item ()
 Edit an action item.
 sd_mt_trigger_action ($action_trigger)
 Triggers an action.
 ajax_admin ()
 sd_mt_delete_action ($action)
 sd_mt_get_action ($action_id)
 sd_mt_get_all_actions ()
 sd_mt_get_action_item ($item_id)
 sd_mt_update_action ($SD_Meeting_Tool_Action)
 sd_mt_update_action_item ($item)

Private Member Functions

 action_sql_to_object ($sql)
 Convert a row from SQL to an SD_Meeting_Tool_Action.
 action_item_sql_to_object ($sql)
 make_back_link_to_action_editor ()
 Makes a link back to the action editor.

Additional Inherited Members

- Public Attributes inherited from SD_Meeting_Tool_Base
 $paths = array()
- Protected Member Functions inherited from SD_Meeting_Tool_0
 cache_directory ()
 Return the cache directory for the plugin.
 cache_file ($id)
 Returns the name of the cache file for this session.
 cache_url ()
 Returns the complete URL to the cache directory.
 check_cache_directory ()
 Check whether the cache directory is OK.
- Protected Attributes inherited from SD_Meeting_Tool_0
 $language_domain = 'SD_Meeting_Tool'

Detailed Description

Standard, basic and complete action handling plugin.

Provides action handling.

Changelog
1.1
  • Version bump.
Author
Edward Plainview edwar.nosp@m.d.pl.nosp@m.ainvi.nosp@m.ew@s.nosp@m.verig.nosp@m.edem.nosp@m.okrat.nosp@m.erna.nosp@m..se

Constructor & Destructor Documentation

SD_Meeting_Tool_Actions::__construct ( )

Member Function Documentation

SD_Meeting_Tool_Actions::action_item_sql_to_object (   $sql)
private

Convert a row from SQL to an SD_Meeting_Tool_Action_Item.

Parameters
array$sqlRow from the database as an array.
Returns
An SD_Meeting_Tool_Action_Item object.
SD_Meeting_Tool_Actions::action_sql_to_object (   $sql)
private

Convert a row from SQL to an SD_Meeting_Tool_Action.

Parameters
array$sqlRow from the database as an array.
Returns
An SD_Meeting_Tool_Action object.
SD_Meeting_Tool_Actions::activate ( )

Overridable activation function.

It's here in case plugins need a common activation method in the future.

Reimplemented from SD_Meeting_Tool_Base.

SD_Meeting_Tool_Actions::admin ( )
SD_Meeting_Tool_Actions::admin_edit ( )

Edit an action.

SD_Meeting_Tool_Actions::admin_edit_item ( )

Edit an action item.

SD_Meeting_Tool_Actions::admin_overview ( )
SD_Meeting_Tool_Actions::ajax_admin ( )
SD_Meeting_Tool_Actions::make_back_link_to_action_editor ( )
private

Makes a link back to the action editor.

Returns
Back link string.
SD_Meeting_Tool_Actions::sd_mt_admin_menu (   $menus)
SD_Meeting_Tool_Actions::sd_mt_delete_action (   $action)

Delete an action.

Wordpress
Filter
Parameters
SD_Meeting_Tool_Action$actionSD_Meeting_Tool_Action object to delete.

Implements interface_SD_Meeting_Tool_Actions.

SD_Meeting_Tool_Actions::sd_mt_get_action (   $action_id)

Return an action.

Wordpress
Filter
Parameters
int$action_idAction ID to get.
Returns
Returned SD_Meeting_Tool_Action, or false if it doesn't exist.

Implements interface_SD_Meeting_Tool_Actions.

SD_Meeting_Tool_Actions::sd_mt_get_action_item (   $item_id)

Returns an action item.

Wordpress
Filter
Parameters
int$item_idItem ID to get.
Returns
Returned SD_Meeting_Tool_Action_Item item, else false if it doesn't exist.

Implements interface_SD_Meeting_Tool_Actions.

SD_Meeting_Tool_Actions::sd_mt_get_all_actions ( )

Return a list of all available actions.

Wordpress
Filter
Returns
Array of SD_Meeting_Tool_Action.

Implements interface_SD_Meeting_Tool_Actions.

SD_Meeting_Tool_Actions::sd_mt_trigger_action (   $action_trigger)

Triggers an action.

Given an SD_Meeting_Tool_Action_Trigger it will go through the action's items and call each item action.

The Action Trigger must contain the action and the trigger (mostly a SD_Meeting_Tool_Participant).

Triggers an action.

Parameters
SD_Meeting_Tool_Action_Trigger$action_triggerAction trigger to use.

Implements interface_SD_Meeting_Tool_Actions.

SD_Meeting_Tool_Actions::sd_mt_update_action (   $action)

Creates or updates an action.

If the ID is null, a new action will be created in the database.

Wordpress
Filter
Parameters
SD_Meeting_Tool_Action$actionAction to create or update.
Returns
The complete action.

Implements interface_SD_Meeting_Tool_Actions.

SD_Meeting_Tool_Actions::sd_mt_update_action_item (   $item)

Updates an action item.

If the item does not have an ID, a new item will be created and the ID will be returned.

Wordpress
Filter
Parameters
SD_Meeting_Tool_Action_Item$itemThe item to update.
Returns
Updated SD_Meeting_Tool_Action_Item item.

Implements interface_SD_Meeting_Tool_Actions.

SD_Meeting_Tool_Actions::uninstall ( )

Overridable uninstall method.

Reimplemented from SD_Meeting_Tool_Base.


The documentation for this class was generated from the following file: