LLMS_REST_Courses_Controller::__construct()

Constructor.


Source Source

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

	public function __construct() {

		$this->enrollments_controller = new LLMS_REST_Enrollments_Controller();
		$this->enrollments_controller->set_collection_params( $this->get_enrollments_collection_params() );

		$this->sections_controller = new LLMS_REST_Sections_Controller( '' );
		$this->sections_controller->set_collection_params( $this->get_course_content_collection_params() );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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