fetch_certs: Fetch certificate information

Description Usage Arguments Details Value See Also

Description

Returns information about whether users earned and viewed a course certificate, in addition to what datetime those events occurred.

Usage

1
fetch_certs(cert_cm_id, user_ids, ..., con = get_session_con())

Arguments

cert_cm_id

A single integer corresponding to a certificate course module id (see list_certs or list_cms).

user_ids

A vector of integers corresponding to userids.

...

Potential future args.

con

A database connection object, using the session connection by default.

Details

Only certificate views are neatly tracked in database tables. Whether or not a certificate is earned has to be determined at the time this function is run by comparing the certificate's availability conditions to trace data. Thus, completion results may differ between runs of this function if a course editor changes the availability conditions of the certificate or a student meets a requirement they had not previously met.

Value

A tibble with certificate information for each input userid.

See Also

list_certs


TheFridayInstitute/fimoodler documentation built on May 28, 2019, 9:37 a.m.