LLMS_Section
LLMS_Section model class
Description Description
Source Source
File: includes/models/model.llms.section.php
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Remove deprecated class methods. |
1.0.0 | Introduced. |
Methods Methods
- count_elements — Retrieve the total number of elements in the section
- get_course — Retrieve an instance of LLMS_Course for the sections's parent course
- get_creation_args — An array of default arguments to pass to $this->create() when creating a new section
- get_lessons — Get all lessons in the section
- get_next — Retrieve the previous section
- get_next_available_lesson_order — Get the next lesson order for assigning a lesson to a section — deprecated
- get_order — Retrieve the order of the section within the course — deprecated
- get_parent_course — Retrieve the post ID of the section's parent course — deprecated
- get_percent_complete — Retrieve section completion percentage
- get_previous — Retrieve the previous section
- get_siblings — Get sibling sections
- set_parent_course — Set parent course — deprecated
- toArrayAfter — Add data to the course model when converted to array