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'
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-sections-controller.php
82 83 84 85 86 87 88 89 90 91 92 | * @ 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(); |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |