LLMS_REST_Sections_Controller
Description Description
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-sections-controller.php
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.9 | Removed create_llms_post() and get_object() methods, now abstracted in LLMS_REST_Posts_Controller class. |
1.0.0-beta.7 | prepare_objects_query() renamed to prepare_collection_query_args() . Fix the way we get the section's parent course object when building the resource links. |
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.1 | Introduced. |
Methods Methods
- __construct — Constructor.
- build_collection_params — Retrieves the query params for the objects collection.
- check_read_permission — Checks if a Section can be read
- get_collection_params — Retrieves the query params for the objects collection.
- get_content_collection_params — Retrieves the query params for the lessons objects collection.
- get_content_controller — Retrieves the content controller.
- get_content_items — Get a collection of content items (lessons).
- get_delete_item_args — Retrieves an array of arguments for the delete endpoint.
- get_item_schema — Get the Section's schema, conforming to JSON Schema.
- get_parent_id — Get parent id.
- is_delete_forced — Whether the delete should be forced.
- is_trash_supported — Whether the trash is supported.
- prepare_collection_query_args — Format query arguments to retrieve a collection of objects.
- prepare_item_for_database — Prepares a single post for create or update.
- prepare_links — Prepare links for the request.
- prepare_object_for_response — Prepare a single object output for response.
- register_routes — Register routes.
- set_collection_params — Retrieves the query params for the objects collection.
- set_parent_id — Set parent id.