LLMS_REST_Controller_Stubs
LLMS_REST_Controller_Stubs class.
Description Description
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-controller-stubs.php
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.7 | Added check_read_object_permissions() stub. |
1.0.0-beta.3 | Conditionally throw _doing_it_wrong() on stub method. |
1.0.0-beta.10 | Add text domain to i18n functions. |
1.0.0-beta.1 | Introduced. |
Methods Methods
- check_read_item_permissions — Determine if the current user can view the requested item.
- check_read_object_permissions — Determine if the current user can view the object.
- create_object — Insert the prepared data into the database.
- get_object — Get object.
- get_object_id — Retrieve an ID from the object
- get_objects_from_query — Retrieve an array of objects from the result of $this->get_objects_query().
- get_objects_query — Retrieve a query object based on arguments from a `get_items()` (collection) request.
- get_pagination_data_from_query — Retrieve pagination information from an objects query.
- prepare_object_for_response — Prepare an object for response.
- update_object — Update the object in the database with prepared data.