Base plugin for the Meeting Tool.
More...
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.
|
Additional Inherited Members |
| | $paths = array() |
| | 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
- sd_mt_admin_menu - Menu has been created, allow modules to create submenus.
- Filters fired
- sd_mt_overview_tabs - Allow modules to create their own overview tabs.
- 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 |
( |
| ) |
|
| SD_Meeting_Tool::admin_overview |
( |
| ) |
|
An overview of the situation.
| SD_Meeting_Tool::admin_settings |
( |
| ) |
|
| static SD_Meeting_Tool::array_intval |
( |
|
$array | ) |
|
|
static |
Converts array values into ints.
Can and will recurse subarrays.
- Parameters
-
| array | $array | Array 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 | $action | Nonce action name |
| string | $key | Key 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_data | Tab 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 | $text | Text to show on link. |
| string | $url | URL |
- 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 | $response | An 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 | $array | Array to sort |
| mixed | $key | Which 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: