LLMS_Instructor
LLMS_Instructor model class
Description Description
Manages data and interactions with a LifterLMS Instructor or Instructor’s Assistant.
Source Source
File: includes/models/model.llms.instructor.php
Changelog Changelog
Version | Description |
---|---|
3.34.0 | Fix issue causing get_assistants() to return assistants to the currently logged in user instead of using the user id of the current object. Add has_student() method. |
3.32.0 | Add validation to data passed into the get_students() method. |
3.30.3 | Fixed typo in "description" key of the the toArray() method. |
3.13.0 | Introduced. |
Methods Methods
- add_parent — Add a parent instructor to an assistant instructor
- get_assistants — Retrieve an array of user ids for assistant instructors attached to the instructor
- get_courses — Retrieve instructor's courses
- get_memberships — Retrieve instructor's memberships
- get_posts — Retrieve instructor's posts (courses and memberships, mixed)
- get_students — Retrieve instructor's students
- has_student — Determines if the instructor is an instructor to a specific student.
- is_instructor — Determine if the user is an instructor on a post
- toArray — Used by exporter / cloner to get instructor data