LLMS_REST_Sections_Controller::__construct( string $content_controller_class = 'LLMS_REST_Lessons_Controller' )

Constructor.


Parameters Parameters

$content_controller_class

(string) (Optional) The class name of the content controller. Default 'LLMS_REST_Lessons_Controller'.

Default value: 'LLMS_REST_Lessons_Controller'


Top ↑

Source Source

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

	 * @return void
	 */
	public function __construct( $content_controller_class = 'LLMS_REST_Lessons_Controller' ) {

		parent::__construct();

		$this->collection_params        = $this->build_collection_params();
		$this->content_controller_class = $content_controller_class;

		if ( $this->content_controller_class && class_exists( $this->content_controller_class ) ) {
			$this->content_controller = new $this->content_controller_class();


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.