|
static | base64_img_array () |
| Return array of base64 image formats.
|
|
static | base64_img_detected (string $htmlcode) |
| Detects if htmlcode contains base64 img data, for HTML display, such as errors page.
|
|
static | build_all_accessibilitytools () |
| Return an array with one of each tool instance.
|
|
static | get_check_description (string $check) |
| Return the correct language string for the provided check.
|
|
static | get_instance_name (string $component, string $table, ?int $cmid, ?int $courseid, ?int $categoryid) |
| Get instance name for display.
|
|
static | get_module_label (string $modulename) |
| Get module label for display.
|
|
static | get_tool_names () |
| Get a list of formal tool names for each tool.
|
|
static | toolname () |
| Provide a name for this tool, suitable for display on pages.
|
|
static | toolshortname () |
| Provide a short name for this tool, suitable for menus and selectors.
|
|
static | toplevel_arguments (filter $filter=null) |
| Provide arguments required for the toplevel page, using any provided filter.
|
|
static | truncate_base64 (string $htmlcode) |
| Truncate base64-containing htmlcode for HTML display, such as errors page.
|
|
|
string const | BASE64_BMP = 'data:image/bmp;base64' |
| base64 bitmap image type
|
|
string const | BASE64_GIF = 'data:image/gif;base64' |
| base64 gif image type
|
|
string const | BASE64_ICO = 'data:image/x-icon;base64' |
| base64 ico image type
|
|
string const | BASE64_JPG = 'data:image/jpeg;base64' |
| base64 jpg image type
|
|
string const | BASE64_PNG = 'data:image/png;base64' |
| base64 png image type
|
|
string const | BASE64_SVG = 'data:image/svg+xml;base64' |
| base64 svg image type
|
|
string const | BASE64_WEBP = 'data:image/webp;base64' |
| base64 webp image type
|
|
string[] const | TOOLNAMES = ['errors', 'activityresults', 'checktyperesults', 'printable', 'advanced'] |
| All of the tools provided.
|
|
|
| fetch_data () |
| Fetch the data for renderer / template display.
|
|
◆ base64_img_array()
static tool_brickfield\local\tool\tool::base64_img_array |
( |
| ) |
|
|
static |
Return array of base64 image formats.
- Return values
-
◆ base64_img_detected()
static tool_brickfield\local\tool\tool::base64_img_detected |
( |
string | $htmlcode | ) |
|
|
static |
Detects if htmlcode contains base64 img data, for HTML display, such as errors page.
- Parameters
-
- Return values
-
◆ build_all_accessibilitytools()
static tool_brickfield\local\tool\tool::build_all_accessibilitytools |
( |
| ) |
|
|
static |
Return an array with one of each tool instance.
- Return values
-
◆ can_access()
tool_brickfield\local\tool\tool::can_access |
( |
filter | $filter, |
|
|
context | $context = null ) |
Verify that accessibility tools can be accessed in the provided context.
- Parameters
-
filter | $filter | |
context | $context | |
- Return values
-
- Exceptions
-
◆ data_error()
tool_brickfield\local\tool\tool::data_error |
( |
| ) |
|
Implementing class should set an error string if data is invalidated in 'get_data';.
- Return values
-
◆ data_is_valid()
tool_brickfield\local\tool\tool::data_is_valid |
( |
| ) |
|
Implementing class should set the 'valid' property when get_data is called.
- Return values
-
◆ fetch_data()
tool_brickfield\local\tool\tool::fetch_data |
( |
| ) |
|
|
abstractprotected |
◆ get_check_description()
static tool_brickfield\local\tool\tool::get_check_description |
( |
string | $check | ) |
|
|
static |
Return the correct language string for the provided check.
- Parameters
-
- Return values
-
◆ get_data()
tool_brickfield\local\tool\tool::get_data |
( |
| ) |
|
Return the data needed for the renderer.
- Return values
-
- Exceptions
-
◆ get_error_message()
tool_brickfield\local\tool\tool::get_error_message |
( |
| ) |
|
Return any defined error message.
- Return values
-
◆ get_filter()
tool_brickfield\local\tool\tool::get_filter |
( |
| ) |
|
Getter for filter property.
- Return values
-
◆ get_instance_name()
static tool_brickfield\local\tool\tool::get_instance_name |
( |
string | $component, |
|
|
string | $table, |
|
|
?int | $cmid, |
|
|
?int | $courseid, |
|
|
?int | $categoryid ) |
|
static |
Get instance name for display.
- Parameters
-
string | $component | |
string | $table | |
int | $cmid | |
int | $courseid | |
int | $categoryid | |
- Return values
-
◆ get_module_label()
static tool_brickfield\local\tool\tool::get_module_label |
( |
string | $modulename | ) |
|
|
static |
Get module label for display.
- Parameters
-
- Return values
-
- Exceptions
-
◆ get_output()
tool_brickfield\local\tool\tool::get_output |
( |
| ) |
|
◆ get_output_target()
tool_brickfield\local\tool\tool::get_output_target |
( |
| ) |
|
Returns the output target for this tool's filter.
- Return values
-
- Exceptions
-
◆ get_tool_classnames()
static tool_brickfield\local\tool\tool::get_tool_classnames |
( |
| ) |
|
|
staticprotected |
Get a mapping of tool shortname => class name.
- Return values
-
◆ get_tool_names()
static tool_brickfield\local\tool\tool::get_tool_names |
( |
| ) |
|
|
static |
Get a list of formal tool names for each tool.
- Return values
-
◆ get_toolname()
tool_brickfield\local\tool\tool::get_toolname |
( |
| ) |
|
Return the defined toolname.
- Return values
-
◆ get_toolshortname()
tool_brickfield\local\tool\tool::get_toolshortname |
( |
| ) |
|
Return the defined toolshortname.
- Return values
-
◆ perpage_limits()
tool_brickfield\local\tool\tool::perpage_limits |
( |
int | $perpage | ) |
|
◆ pluginname()
tool_brickfield\local\tool\tool::pluginname |
( |
| ) |
|
|
abstract |
◆ set_filter()
tool_brickfield\local\tool\tool::set_filter |
( |
filter | $filter | ) |
|
Setter for filter property.
- Parameters
-
- Exceptions
-
◆ toolname()
static tool_brickfield\local\tool\tool::toolname |
( |
| ) |
|
|
staticabstract |
◆ toolshortname()
static tool_brickfield\local\tool\tool::toolshortname |
( |
| ) |
|
|
staticabstract |
◆ toplevel_arguments()
static tool_brickfield\local\tool\tool::toplevel_arguments |
( |
filter | $filter = null | ) |
|
|
static |
Provide arguments required for the toplevel page, using any provided filter.
- Parameters
-
- Return values
-
◆ truncate_base64()
static tool_brickfield\local\tool\tool::truncate_base64 |
( |
string | $htmlcode | ) |
|
|
static |
Truncate base64-containing htmlcode for HTML display, such as errors page.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- admin/tool/brickfield/classes/local/tool/tool.php