LLMS_Quiz_Legacy::__construct( $quiz )
Constructor
Description Description
initializes the quiz object based on post data
Source Source
File: includes/class.llms.quiz.legacy.php
public function __construct( $quiz ) { if ( is_numeric( $quiz ) ) { $this->id = absint( $quiz ); $this->post = get_post( $this->id ); } elseif ( $quiz instanceof LLMS_Quiz ) { $this->id = absint( $quiz->id ); $this->post = $quiz; } elseif ( isset( $quiz->ID ) ) { $this->id = absint( $quiz->ID ); $this->post = $quiz; } }
Expand full source code Collapse full source code View on GitHub
User Contributed Notes User Contributed Notes
Permalink: