Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

External interface library for customfields component

Copyright: 2018 David Matamoros <davidmc@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 296 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_customfield_external  - X-Ref

Class core_customfield_external

delete_field_parameters()   X-Ref
Parameters for delete_field

return: external_function_parameters

delete_field($id)   X-Ref
Delete custom field function

param: int $id

delete_field_returns()   X-Ref
Return for delete_field


reload_template_parameters()   X-Ref
Parameters for reload template function

return: external_function_parameters

reload_template($component, $area, $itemid)   X-Ref
Reload template function

param: string $component
param: string $area
param: int $itemid
return: array|object|stdClass

reload_template_returns()   X-Ref
Ajax returns on reload template.

return: external_single_structure

delete_category_parameters()   X-Ref
Parameters for delete category

return: external_function_parameters

delete_category($id)   X-Ref
Delete category function

param: int $id

delete_category_returns()   X-Ref
Return for delete category


create_category_parameters()   X-Ref
Parameters for create category

return: external_function_parameters

create_category($component, $area, $itemid)   X-Ref
Create category function

param: string $component
param: string $area
param: int    $itemid
return: mixed

create_category_returns()   X-Ref
Return for create category


move_field_parameters()   X-Ref
Parameters for move field.

return: external_function_parameters

move_field($id, $categoryid, $beforeid)   X-Ref
Move/reorder field. Move a field to another category and/or change sortorder of fields

param: int $id field id
param: int $categoryid
param: int $beforeid

move_field_returns()   X-Ref
Return for move field


move_category_parameters()   X-Ref
Return for move category

return: external_function_parameters

move_category(int $id, int $beforeid)   X-Ref
Reorder categories. Move category to the new position

param: int $id category id
param: int $beforeid

move_category_returns()   X-Ref
Return for move category