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

Plugin providing participant storage and manipulation filters for SD Meeting Tool. More...

Inheritance diagram for SD_Meeting_Tool_Participants:
SD_Meeting_Tool_0 interface_SD_Meeting_Tool_Participants SD_Meeting_Tool_Base

Public Member Functions

 __construct ()
 activate ()
 uninstall ()
 sd_mt_admin_menu ($menus)
 admin ()
 admin_overview ()
 admin_clear ()
 admin_edit ()
 admin_import ()
 sd_mt_clear_participants ()
 Completely clears the participants.
 sd_mt_delete_participant ($SD_Meeting_Tool_Participant)
 Deletes a participant.
 sd_mt_get_all_participants ()
 Return a list of all the participants.
 sd_mt_get_participant ($participant_id)
 Return a specific participant.
 sd_mt_get_participant_field ($field_name)
 Return a specific participant field.
 sd_mt_get_participant_fields ()
 Returns an array of SD_Meeting_Tool_Participant_Field that describe which fields exist in the participant database.
 sd_mt_update_participant ($SD_Meeting_Tool_Participant)
 Creates or updates a participant.

Public Attributes

 $local_options

Private Member Functions

 participant_sql_to_object ($sql)
 import_users ($POST)

Additional Inherited Members

- 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

Plugin providing participant storage and manipulation filters for SD Meeting Tool.

Participant plugin for SD Meeting Tool.

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

Constructor & Destructor Documentation

SD_Meeting_Tool_Participants::__construct ( )

Member Function Documentation

SD_Meeting_Tool_Participants::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_Participants::admin ( )
SD_Meeting_Tool_Participants::admin_clear ( )
SD_Meeting_Tool_Participants::admin_edit ( )
SD_Meeting_Tool_Participants::admin_import ( )
SD_Meeting_Tool_Participants::admin_overview ( )
SD_Meeting_Tool_Participants::import_users (   $POST)
private

Imports users.

Parameters
$POSTThe $_POST data.
SD_Meeting_Tool_Participants::participant_sql_to_object (   $sql)
private

Convert a list row from SQL to an SD_Meeting_Tool_Participant.

Parameters
$sqlRow from the database as an array.
Returns
A complete SD_Meeting_Tool_Participant object.
SD_Meeting_Tool_Participants::sd_mt_admin_menu (   $menus)
SD_Meeting_Tool_Participants::sd_mt_clear_participants ( )

Completely clears the participants.

Deletes all participants and resets the fields.

Wordpress
Filter

Implements interface_SD_Meeting_Tool_Participants.

SD_Meeting_Tool_Participants::sd_mt_delete_participant (   $participant)

Deletes a participant.

Wordpress
Filter
Parameters
SD_Meeting_Tool_Participant$participantParticipant to delete.

Implements interface_SD_Meeting_Tool_Participants.

SD_Meeting_Tool_Participants::sd_mt_get_all_participants ( )

Return a list of all the participants.

Returns
Array of SD_Meeting_Tool_Participant.

Implements interface_SD_Meeting_Tool_Participants.

SD_Meeting_Tool_Participants::sd_mt_get_participant (   $id)

Return a specific participant.

Wordpress
Filter
Parameters
int$idParticipant to get.
Returns
An SD_Meeting_Tool_Participant.

Implements interface_SD_Meeting_Tool_Participants.

SD_Meeting_Tool_Participants::sd_mt_get_participant_field (   $field_name)

Return a specific participant field.

Wordpress
Filter
Parameters
string$field_nameParticipant field name to get.
Returns
An SD_Meeting_Tool_Participant_Field.

Implements interface_SD_Meeting_Tool_Participants.

SD_Meeting_Tool_Participants::sd_mt_get_participant_fields ( )

Returns an array of SD_Meeting_Tool_Participant_Field that describe which fields exist in the participant database.

Wordpress
Filter
Returns
Array of SD_Meeting_Tool_Participant_Field.

Implements interface_SD_Meeting_Tool_Participants.

SD_Meeting_Tool_Participants::sd_mt_update_participant (   $participant)

Creates or updates a participant.

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

Wordpress
Filter
Parameters
SD_Meeting_Tool_Participant$participantParticipant to create or update.

Implements interface_SD_Meeting_Tool_Participants.

SD_Meeting_Tool_Participants::uninstall ( )

Overridable uninstall method.

Reimplemented from SD_Meeting_Tool_Base.

Member Data Documentation

SD_Meeting_Tool_Participants::$local_options
Initial value:
array(
'fields' => array(),
)

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