Class for exporting competency_framework data.
More...
|
stdClass array | $data = null |
| The data of this exporter.
|
|
core persistent | $persistent = null |
| The persistent object we will export.
|
|
array | $related = array() |
| $related List of related objects used to avoid DB queries.
|
|
Class for exporting competency_framework data.
- Copyright
- 2015 Damyon Wiese
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ define_class()
static core_competency\external\competency_framework_exporter::define_class |
( |
| ) |
|
|
staticprotected |
◆ define_other_properties()
static core_competency\external\competency_framework_exporter::define_other_properties |
( |
| ) |
|
|
staticprotected |
Define other properties that do not belong to the basic persisent.
- Return values
-
Reimplemented from core\external\exporter.
◆ define_properties()
static core\external\persistent_exporter::define_properties |
( |
| ) |
|
|
staticfinalprotectedinherited |
Persistent exporters get their standard properties from the persistent class.
- Return values
-
array | Keys are the property names, and value their definition. |
Reimplemented from core\external\exporter.
◆ define_related()
static core\external\exporter::define_related |
( |
| ) |
|
|
staticprotectedinherited |
Returns a list of objects that are related to this persistent.
Only objects listed here can be cached in this object.
The class name can be suffixed:
- with [] to indicate an array of values.
- with ? to indicate that 'null' is allowed.
- Return values
-
array | of 'propertyname' => array('type' => classname, 'required' => true) |
Reimplemented in core_tag\external\tag_area_exporter, core_question\external\question_summary_exporter, core_question\external\question_icon_exporter, mod_workshop\external\workshop_summary_exporter, mod_workshop\external\submission_exporter, mod_workshop\external\assessment_exporter, mod_lesson\external\lesson_summary_exporter, mod_forum\local\exporters\posts, mod_forum\local\exporters\post, mod_forum\local\exporters\group, mod_forum\local\exporters\forum, mod_forum\local\exporters\discussion_summary, mod_forum\local\exporters\discussion_summaries, mod_forum\local\exporters\discussion, mod_forum\local\exporters\author, mod_feedback\external\feedback_summary_exporter, mod_feedback\external\feedback_item_exporter, mod_data\external\record_exporter, mod_data\external\field_exporter, mod_data\external\database_summary_exporter, mod_data\external\content_exporter, mod_chat\external\chat_message_exporter, core\external\coursecat_summary_exporter, core_files\external\stored_file_exporter, core_course\external\course_summary_exporter, core_course\external\course_module_summary_exporter, core_competency\external\user_evidence_exporter, core_competency\external\user_competency_plan_exporter, core_competency\external\user_competency_exporter, core_competency\external\user_competency_course_exporter, core_competency\external\plan_exporter, core_competency\external\evidence_exporter, core_competency\external\competency_exporter, core_cohort\external\cohort_summary_exporter, core_calendar\external\week_exporter, core_calendar\external\week_day_exporter, core_calendar\external\month_exporter, core_calendar\external\events_grouped_by_course_exporter, core_calendar\external\events_exporter, core_calendar\external\event_icon_exporter, core_calendar\external\event_exporter_base, core_calendar\external\event_action_exporter, core_calendar\external\day_exporter, core_calendar\external\calendar_upcoming_exporter, core_calendar\external\calendar_event_exporter, core_calendar\external\calendar_day_exporter, core_blog\external\post_exporter, core_competency\external\recentlyaccesseditems_item_exporter, core_badges\external\user_badge_exporter, core_badges\external\related_info_exporter, core_badges\external\recipient_exporter, core_badges\external\issuer_exporter, core_badges\external\endorsement_exporter, core_badges\external\collection_exporter, core_badges\external\badgeclass_exporter, core_badges\external\assertion_exporter, core_badges\external\alignment_exporter, tool_policy\policy_version_exporter, tool_policy\policy_exporter, tool_lp\external\user_evidence_competency_summary_exporter, tool_lp\external\user_competency_summary_in_plan_exporter, tool_lp\external\user_competency_summary_in_course_exporter, tool_lp\external\user_competency_summary_exporter, tool_lp\external\path_node_exporter, tool_lp\external\course_competency_statistics_exporter, tool_lp\external\competency_summary_exporter, tool_lp\external\competency_path_exporter, tool_dataprivacy\external\purpose_exporter, tool_dataprivacy\external\name_description_exporter, tool_dataprivacy\external\data_request_exporter, and tool_dataprivacy\external\category_exporter.
◆ export()
Function to export the renderer data in a format that is suitable for a mustache template.
This means raw records are generated as in to_record, but all strings are correctly passed through external_format_text (or external_format_string).
- Parameters
-
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
◆ format_properties()
static core\external\exporter::format_properties |
( |
|
$properties | ) |
|
|
staticfinalinherited |
Recursively formats a given property definition with the default fields required.
- Parameters
-
array | $properties | List of properties to format |
- Return values
-
◆ get_context_structure()
static core\external\exporter::get_context_structure |
( |
| ) |
|
|
staticfinalprotectedinherited |
Get the context structure.
- Return values
-
◆ get_create_structure()
static core\external\exporter::get_create_structure |
( |
| ) |
|
|
staticfinalinherited |
Returns the create structure.
- Return values
-
◆ get_format_field()
static core\external\exporter::get_format_field |
( |
|
$definitions, |
|
|
|
$property |
|
) |
| |
|
staticfinalprotectedinherited |
Get the format field name.
- Parameters
-
array | $definitions | List of properties definitions. |
string | $property | The name of the property that may have a format field. |
- Return values
-
bool|string | False, or the name of the format property. |
◆ get_format_parameters()
core\external\exporter::get_format_parameters |
( |
|
$property | ) |
|
|
finalprotectedinherited |
Get the format parameters.
This method returns the parameters to use with the functions external_format_text(), and external_format_string(). To override the default parameters, you can define a protected method called 'get_format_parameters_for_<propertyName>'. For example, 'get_format_parameters_for_description', if your property is 'description'.
Your method must return an array containing any of the following keys:
- Parameters
-
string | $property | The property to get the parameters for. |
- Return values
-
◆ get_format_structure()
static core\external\exporter::get_format_structure |
( |
|
$property, |
|
|
|
$definition, |
|
|
|
$required = VALUE_REQUIRED |
|
) |
| |
|
staticfinalprotectedinherited |
Get the format structure.
- Parameters
-
string | $property | The name of the property on which the format applies. |
array | $definition | The definition of the format property. |
int | $required | Constant VALUE_*. |
- Return values
-
◆ get_other_values()
core_competency\external\competency_framework_exporter::get_other_values |
( |
renderer_base |
$output | ) |
|
|
protected |
Get other values that do not belong to the basic persisent.
- Parameters
-
- Return values
-
Reimplemented from core\external\exporter.
◆ get_read_structure()
static core\external\exporter::get_read_structure |
( |
| ) |
|
|
staticfinalinherited |
Returns the read structure.
- Return values
-
◆ get_read_structure_from_properties()
static core\external\exporter::get_read_structure_from_properties |
( |
|
$properties, |
|
|
|
$required = VALUE_REQUIRED , |
|
|
|
$default = null |
|
) |
| |
|
staticfinalprotectedinherited |
Returns the read structure from a set of properties (recursive).
- Parameters
-
array | $properties | The properties. |
int | $required | Whether is required. |
mixed | $default | The default value. |
- Return values
-
◆ get_update_structure()
static core\external\exporter::get_update_structure |
( |
| ) |
|
|
staticfinalinherited |
Returns the update structure.
This structure can never be included at the top level for an external function signature because it contains optional parameters.
- Return values
-
◆ properties_definition()
static core\external\exporter::properties_definition |
( |
| ) |
|
|
staticfinalinherited |
Get the properties definition of this exporter used for create, and update structures.
The read structures are returned by: self::read_properties_definition().
- Return values
-
array | Keys are the property names, and value their definition. |
◆ read_properties_definition()
static core\external\exporter::read_properties_definition |
( |
| ) |
|
|
staticfinalinherited |
Get the read properties definition of this exporter.
Read properties combines the default properties from the model (persistent or stdClass) with the properties defined by self::define_other_properties().
- Return values
-
array | Keys are the property names, and value their definition. |
The documentation for this class was generated from the following file: