LLMS_Generator::__construct( array|string $raw )
Construct a new generator instance with data
Parameters Parameters
- $raw
-
(array|string) (Required) Array or a JSON string of raw content.
Return Return
(void)
Source Source
File: includes/class.llms.generator.php
public function __construct( $raw ) { // Load generator class. $this->courses_generator = new LLMS_Generator_Courses(); // Parse raw data. $this->raw = $this->parse_raw( $raw ); // Instantiate an empty error object. $this->error = new WP_Error(); // Add hooks. $this->add_hooks(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Removed loading of class files that don't instantiate their class in favor of autoloading. |
4.7.0 | Move most logic into helper functions. |
3.3.0 | Introduced. |