Controller Export
| Controller | Extends | Path |
|---|---|---|
| Export | Plain_Controller | /application/controllers/export.php |
Request Types
| Type | Accessible |
|---|---|
| XMLHttpRequest | Logged in only |
| API | No |
| Web View | Logged in only |
This controller handles exporting of current user's data into JSON encoded file that can be further used to move data to another Nilai install or as user's backup.
Methods
__construct - Public
Called automatically which in turn calls the parent constructor. It also does the following:
- Redirects the user if no user id is found
- Sets default success to false
index - Public
Saves all user marks with tags/labels and additional information into JSON encoded file returned as attachment.