Standard, basic and complete list handling plugin.
More...
Detailed Description
Standard, basic and complete list handling plugin.
Provides a basic amount of list handling. Lists are the hub of participant exchange amongst SD Meeting Tool plugins.
- 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
- Changelog
- 1.1
- New: sd_mt_add_list_participants function
- New: Particpants are shown in the participant edit textarea
- Fix: Lists are properly cloned
Constructor & Destructor Documentation
| SD_Meeting_Tool_Lists::__construct |
( |
| ) |
|
Member Function Documentation
| SD_Meeting_Tool_Lists::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_Lists::admin |
( |
| ) |
|
| SD_Meeting_Tool_Lists::admin_copy_participants |
( |
| ) |
|
Copy the participants of a list to other lists.
| SD_Meeting_Tool_Lists::admin_edit |
( |
| ) |
|
| SD_Meeting_Tool_Lists::admin_overview |
( |
| ) |
|
| SD_Meeting_Tool_Lists::admin_show_participants |
( |
| ) |
|
Show list collected participants.
| SD_Meeting_Tool_Lists::collect_participants |
( |
|
$SD_Meeting_Tool_List_Collection, |
|
|
|
$SD_Meeting_Tool_List |
|
) |
| |
|
private |
Recurses a list and updates the collection with participants.
Each list include and exclude is calculated separately and then merged into the mainline collection.
Explanation: If the collection has an include, i1, that includes i2 and excludes i3, i2 and i3 will be merge and whatever is left will be included in i1.
Likewise, if the collection has an exclude e1, that includes e2 and excludes i1, first i1 will be calculated and then e2 - i1, and whatever is left is excluded from e1.
Has primitive recursion prevention: will ignore and lists that it has seen previously in that include/exclude tree.
- Parameters
-
| SD_Meeting_Tool_Lists::compare_lists |
( |
|
$list_ids | ) |
|
Compares several lists and shows a comparison table.
- Parameters
-
| $list_ids | Array of list ids. |
- Returns
- HTML table comparing the lists.
| SD_Meeting_Tool_Lists::get_list_participants |
( |
|
$list | ) |
|
|
private |
Returns a list of all the participants of a list.
Note that the list isn't assembled, only the manually entered users are listed.
- Returns
- Array of {SD_Meeting_Tool_List_Participant}s
| SD_Meeting_Tool_Lists::sd_mt_add_list_participant |
( |
|
$list, |
|
|
|
$participant |
|
) |
| |
| SD_Meeting_Tool_Lists::sd_mt_add_list_participants |
( |
|
$SD_Meeting_Tool_List, |
|
|
|
$SD_Meeting_Tool_Participants |
|
) |
| |
| SD_Meeting_Tool_Lists::sd_mt_admin_menu |
( |
|
$menus | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_clone_list |
( |
|
$list | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_configure_action_item |
( |
|
$item | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_delete_list |
( |
|
$list | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_delete_participant |
( |
|
$SD_Meeting_Tool_Participant | ) |
|
Clean up removed participants.
- Parameters
-
| $SD_Meeting_Tool_Participant | Participant being removed. |
| SD_Meeting_Tool_Lists::sd_mt_display_participant_field |
( |
|
$SD_Meeting_Tool_Participant_Field | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_get_action_item_description |
( |
|
$SD_Meeting_Tool_Action_Item | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_get_action_item_types |
( |
|
$action_items | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_get_all_lists |
( |
| ) |
|
| SD_Meeting_Tool_Lists::sd_mt_get_list |
( |
|
$list_id | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_get_participant_fields |
( |
|
$fields | ) |
|
Append "registered" as a field.
- Parameters
-
- Returns
- The array, but with a new field: registered.
| SD_Meeting_Tool_Lists::sd_mt_list_participants |
( |
|
$list | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_remove_list_participant |
( |
|
$list, |
|
|
|
$participant |
|
) |
| |
| SD_Meeting_Tool_Lists::sd_mt_remove_list_participants |
( |
|
$list | ) |
|
| SD_Meeting_Tool_Lists::sd_mt_trigger_action_item |
( |
|
$item_trigger | ) |
|
Triggers an item.
Requires that ->action_item and ->trigger is set.
- Parameters
-
| SD_Meeting_Tool_Lists::sd_mt_update_list |
( |
|
$list | ) |
|
Creates or updates a list.
If the ID is null, a new list will be created in the database.
- Wordpress
- Filter
- Parameters
-
- Returns
- The complete list.
Implements interface_SD_Meeting_Tool_Lists.
| SD_Meeting_Tool_Lists::set_list_participants |
( |
|
$SD_Meeting_Tool_List | ) |
|
|
private |
Sets which participants are in a list.
Only makes changes.
New participants are taken från the ->participants field. The field can be an array of participant IDs or whole participant objects.
- Parameters
-
| $SD_Meeting_Tool_List | List object with new ->participants. |
| SD_Meeting_Tool_Lists::sort_list |
( |
|
$SD_Meeting_Tool_List | ) |
|
|
private |
| SD_Meeting_Tool_Lists::sort_participants |
( |
|
$SD_Meeting_Tool_Participants, |
|
|
|
$SD_Meeting_Tool_List |
|
) |
| |
|
private |
Sort the participants using the list's sort.
- Parameters
-
| $SD_Meeting_Tool_Participants | Array of $SD_Meeting_Tool_Participant. |
| $SD_Meeting_Tool_List | List to fetch sort values from. |
- Returns
- Sorted array of $SD_Meeting_Tool_Participant.
| SD_Meeting_Tool_Lists::sql_to_list |
( |
|
$sql | ) |
|
|
private |
| SD_Meeting_Tool_Lists::strings |
( |
| ) |
|
|
private |
Load the translated strings.
| SD_Meeting_Tool_Lists::uninstall |
( |
| ) |
|
Member Data Documentation
| SD_Meeting_Tool_Lists::$strings |
|
private |
The documentation for this class was generated from the following file: