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.
		require_once LLMS_PLUGIN_DIR . 'includes/class-llms-generator-courses.php';
		$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
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.