Functions related to the download and interpretation of student results, and interaction with the results page, usually for outside-LTI contexts.
- Source:
Methods
(static) create_and_download_file(file)
Download a file with the given contents, by creating a link and then clicking it.
Parameters:
| Name | Type | Description |
|---|---|---|
file |
string | The contents of the file |
- Source:
(static) escape_cell(cell) → {string}
Escape the contents of a CSV cell.
Parameters:
| Name | Type | Description |
|---|---|---|
cell |
string |
Returns:
| Type | Description |
|---|---|
| string |
- Source:
(static) from_array(rows) → {string}
Escape each cell of a two-dimensional array of strings such that each will not cause issues within a csv.
Parameters:
| Name | Type | Description |
|---|---|---|
rows |
Array.<Array.<string>> |
Returns:
| Type | Description |
|---|---|
| string |
- Source:
(static) make_row(cells) → {string}
Escape each cell of a list of strings such that each will not cause issues within a csv.
Parameters:
| Name | Type | Description |
|---|---|---|
cells |
Array.<string> |
Returns:
| Type | Description |
|---|---|
| string |
- Source: