LLMS_REST_Enrollments_Controller

LLMS_REST_Enrollments_Controller class.


Description Description


Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-enrollments-controller.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.7 prepare_objects_query() renamed to prepare_collection_query_args(). prepare_object_query() renamed to prepare_object_query_args(). Added: get_objects_from_query(), prepare_objects_query(), get_pagination_data_from_query(), prepare_collection_items_for_response() methods overrides. get_items() method removed, now abstracted in LLMS_REST_Controller. Fixed description of the post_id path parameter.
1.0.0-beta.4 Everybody who can view the enrollment's student can list the enrollments although the single enrollment permission will be checked in LLMS_REST_Enrollments_Controller::get_objects(). The single enrollment can be read only by who can view the enrollment's student. Enrollment's post_id and student_id casted to integer, and fix calling to some undefined functions.
1.0.0-beta.3 Don't output "Last" page link header on the last page.
1.0.0-beta.14 Update prepare_links() to accept a second parameter, WP_REST_Request.
1.0.0-beta.12 Updated $this->prepare_collection_query_args() to reflect changes in the parent class.
1.0.0-beta.10 Added trigger property and as param for creation/update/and deletion requests. Added get_endpoint_args_for_item_schema() method override. Use backticks in args and item schema properties descriptions where convenient. Filter prepared enrollment for response in order to include only fields available for response. Added llms_rest_enrollments_item_schema, llms_rest_prepare_enrollment_object_response, llms_rest_enrollment_links filter hooks. Also fix return when the enrollment to be deleted doesn't exist. Fixed 'context' query parameter schema.
1.0.0-beta.1 Introduced.


Top ↑

Methods Methods


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.