LDLMS_Factory_Post::exam( int|object $exam = null, array $atts = array(), bool $reload = false )
Get a Exam.
Description #
Parameters #
- $exam
-
(int|object) (Optional) Either exam_id integer or WP_Post instance.
Default value: null
- $atts
-
(array) (Optional) Array of attributes (course_id, user_id).
Default value: array()
- $reload
-
(bool) (Optional) To force reload of instance.
Default value: false
Return #
(object|null) Instance of LDLMS_Model_Exam
or null
Source #
Changelog #
Version | Description |
---|---|
4.0.0 | Introduced. |