Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]
(no description)
File Size: | 941 lines (38 kb) |
Included or required: | 0 times |
Referenced: | 10 times |
Includes or requires: | 0 files |
core_cohort_external:: (26 methods):
create_cohorts_parameters()
create_cohorts()
create_cohorts_returns()
delete_cohorts_parameters()
delete_cohorts()
delete_cohorts_returns()
get_cohorts_parameters()
get_cohorts()
get_cohorts_returns()
search_cohorts_parameters()
search_cohorts()
search_cohorts_returns()
update_cohorts_parameters()
update_cohorts()
update_cohorts_returns()
add_cohort_members_parameters()
add_cohort_members()
add_cohort_members_returns()
delete_cohort_members_parameters()
delete_cohort_members()
delete_cohort_members_returns()
get_cohort_members_parameters()
get_cohort_members()
get_cohort_members_returns()
build_custom_fields_parameters_structure()
build_custom_fields_returns_structure()
in:: (2 methods):
get_custom_fields_data()
build_custom_field_name()
Class: core_cohort_external - X-Ref
External cohort APIcreate_cohorts_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
create_cohorts($cohorts) X-Ref |
Create one or more cohorts param: array $cohorts An array of cohorts to create. return: array An array of arrays |
create_cohorts_returns() X-Ref |
Returns description of method result value return: \core_external\external_description |
delete_cohorts_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
delete_cohorts($cohortids) X-Ref |
Delete cohorts param: array $cohortids return: null |
delete_cohorts_returns() X-Ref |
Returns description of method result value return: null |
get_cohorts_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
get_cohorts($cohortids = array() X-Ref |
Get cohorts definition specified by ids param: array $cohortids array of cohort ids return: array of cohort objects (id, courseid, name) |
get_cohorts_returns() X-Ref |
Returns description of method result value return: \core_external\external_description |
search_cohorts_parameters() X-Ref |
Returns the description of external function parameters. return: external_function_parameters |
search_cohorts($query, $context, $includes = 'parents', $limitfrom = 0, $limitnum = 25) X-Ref |
Search cohorts. param: string $query param: array $context param: string $includes param: int $limitfrom param: int $limitnum return: array |
search_cohorts_returns() X-Ref |
Returns description of external function result value. return: \core_external\external_description |
update_cohorts_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
update_cohorts($cohorts) X-Ref |
Update cohorts param: array $cohorts return: null |
update_cohorts_returns() X-Ref |
Returns description of method result value return: null |
add_cohort_members_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
add_cohort_members($members) X-Ref |
Add cohort members param: array $members of arrays with keys userid, cohortid |
add_cohort_members_returns() X-Ref |
Returns description of method result value return: null |
delete_cohort_members_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
delete_cohort_members($members) X-Ref |
Delete cohort members param: array $members of arrays with keys userid, cohortid |
delete_cohort_members_returns() X-Ref |
Returns description of method result value return: null |
get_cohort_members_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
get_cohort_members($cohortids) X-Ref |
Return all members for a cohort param: array $cohortids array of cohort ids return: array with cohort id keys containing arrays of user ids |
get_cohort_members_returns() X-Ref |
Returns description of method result value return: \core_external\external_description |
build_custom_fields_parameters_structure() X-Ref |
Builds a structure for custom fields parameters. return: \core_external\external_multiple_structure |
build_custom_fields_returns_structure() X-Ref |
Builds a structure for custom fields returns. return: \core_external\external_multiple_structure |
get_custom_fields_data(array $cohortids) X-Ref |
Returns custom fields data for provided cohorts. param: array $cohortids a list of cohort IDs to provide data for. return: array |
build_custom_field_name(string $shortname) X-Ref |
Builds a suitable name of a custom field for a custom field handler based on provided shortname. param: string $shortname shortname to use. return: string |