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.


Top ↑

Return Return

(void)


Top ↑

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();

	}


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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