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

Base plugin for the Meeting Tool. More...

Inheritance diagram for SD_Meeting_Tool:
SD_Meeting_Tool_0 SD_Meeting_Tool_Base

Public Member Functions

 __construct ()
 activate ()
 admin_menu ()
 Shows the admin menu.
 admin ()
 admin_overview ()
 An overview of the situation.
 admin_settings ()
 General settings.
 filter_overview_tabs ($tab_data)
 Add tabs to admin overview.
 optimize_response (&$response, $hash)
 Check that the response hash has changed.

Static Public Member Functions

static reload_message ()
 Shows a message that links to a reload of this page.
static make_back_link ($text, $url)
 Makes a standard back link using a text string and a link.
static random_uuid ()
 Returns a random uuid.
static sort_data_array ($array, $key)
static array_intval ($array)
 Converts array values into ints.
static check_admin_referrer ($action, $key= 'ajaxnonce')
 Does the same thing as Wordpress' check_admin_referrer, but with even more checks.

Protected Attributes

 $local_options
- Protected Attributes inherited from SD_Meeting_Tool_0
 $language_domain = 'SD_Meeting_Tool'
- Protected Attributes inherited from SD_Meeting_Tool_Base
 $is_network
 $site_options = array()
 $local_options = array()
 $options = array()
 $language_domain = ''
 $wpdb
 $roles

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.

Detailed Description

Base plugin for the Meeting Tool.

SD Meeting Tool base.

Actions fired
Filters fired
Changelog
1.1
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::__construct ( )

Member Function Documentation

SD_Meeting_Tool::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::admin ( )
SD_Meeting_Tool::admin_menu ( )

Shows the admin menu.

SD_Meeting_Tool::admin_overview ( )

An overview of the situation.

SD_Meeting_Tool::admin_settings ( )

General settings.

static SD_Meeting_Tool::array_intval (   $array)
static

Converts array values into ints.

Can and will recurse subarrays.

Parameters
array$arrayArray of values to convert to ints.
Returns
The integerized array.
static SD_Meeting_Tool::check_admin_referrer (   $action,
  $key = 'ajaxnonce' 
)
static

Does the same thing as Wordpress' check_admin_referrer, but with even more checks.

Parameters
string$actionNonce action name
string$keyKey in POST where nonce is stored.
Returns
True if the nonce checks out.
SD_Meeting_Tool::filter_overview_tabs (   $tab_data)

Add tabs to admin overview.

Parameters
array$tab_dataTab data to add to.
static SD_Meeting_Tool::make_back_link (   $text,
  $url 
)
static

Makes a standard back link using a text string and a link.

Parameters
string$textText to show on link.
string$urlURL
Returns
HTML string.
SD_Meeting_Tool::optimize_response ( $response,
  $hash 
)

Check that the response hash has changed.

If not, the data key is emptied.

Parameters
array$responseAn array containing the keys hash and html.
string$hash"Old" hash to check. If it's different the data is kept.
static SD_Meeting_Tool::random_uuid ( )
static

Returns a random uuid.

Returns
A SHA512 of a random number.
static SD_Meeting_Tool::reload_message ( )
static

Shows a message that links to a reload of this page.

static SD_Meeting_Tool::sort_data_array (   $array,
  $key 
)
static

Sorts an array of objects with the key stored in the array item's ->data field.

Parameters
array$arrayArray to sort
mixed$keyWhich key in the array to sort by.
Returns
The sorted array.

Member Data Documentation

SD_Meeting_Tool::$local_options
protected
Initial value:
array(
'role_use' => 'administrator',
)

Local options.

  • role_use Minimum role needed to access MT at all.

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