Download the PHP package oat-sa/extension-tao-sync without Composer
On this page you can find all versions of the php package oat-sa/extension-tao-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oat-sa/extension-tao-sync
More information about oat-sa/extension-tao-sync
Files in oat-sa/extension-tao-sync
Package extension-tao-sync
Short Description TAO synchronisation for offline client data.
License GPL-2.0-only
Homepage http://www.taotesting.com
Informations about the package extension-tao-sync
TAO Sync Extension
The purpose of this extension is to synchronize a local and a remote server.
All types of data and results can be synchronized. All HTTP requests are required to be signed following the OAuth 2 standard, also are all data encrypted.
Important note: While this article uses American spelling, some of the command line instructions are in British spelling for historical reasons, e. g. synchronisation
instead of synchronization
!
Installation instructions
These instructions assume that you already have a TAO installation on your system. If you don't, go to package/tao and follow the installation instructions.
Add the extension to your TAO composer and to the autoloader:
Install the extension on the CLI from the project root:
Linux:
Windows:
As a system administrator you can also install it through the TAO Extension Manager:
- Settings (the gears on the right-hand side of the menu) -> Extension manager
- Select taoSync on the right-hand side, check the box and hit install
Synchronization
Data synchronization
In preparation of a delivery execution, the synchronization process needs to fetch data objects of the following types from the central server:
test-center
administrator
proctor
test-taker
eligibility
delivery
Set the chunkSize
parameter in the taoSync/syncService
configuration to define the amount of data per request, $type
refers to the list above, e. g. test-center
When a delivery is published it exports a sanpshot of a QTI test package. This snapshot will be used during synchronization.
Result synchronization
Once the Client Server has the delivery result, a script sends it to the Central Server. Only completed delivery executions will be sent, results will be submitted only once. When a delivery execution is sent, the synchronization history will be updated to log the action. You can set the deleteAfterSend
parameter to true
to delete results after the synchronization.
To configure the amount of data per request, use the chunkSize
parameter in the taoSync/resultService
configuration.
Execute the following command to synchronize the result:
Synchronizing all data and results
To synchronize data and results at the same time, use the following command:
OAuth credentials
Generating credentials to allow a user to connect to the platform
This command creates a consumer with OAuth credentials.
The output of this command will contain the following data:
key
secret
tokenUrl
Note: Add the -cmd
flag to this command to execute it on the Client Server.
Importing OAuth credentials to Client Server
The following command will import the consumer you have created above into the Client Server. The arguments are the output from the previous command, $rootUrl
is the domain name of the host server.
Scoping synchronization to a test center identifier
To be able to bind a synchronization to the organzition ID of a test center, the platform needs to register a test-center
property. The SyncService has also to register new synchronizers to process by organisation id.
Note The test center organization id is http://www.taotesting.com/ontologies/synchro.rdf#organisationId_
All versions of extension-tao-sync with dependencies
oat-sa/generis Version >=14.0.0
oat-sa/tao-core Version >=47.0.0
oat-sa/extension-tao-delivery Version >=15.0.0
oat-sa/extension-tao-delivery-rdf Version >=14.0.0
oat-sa/extension-tao-item Version >=11.0.0
oat-sa/extension-tao-oauth Version >=6.0.0
oat-sa/extension-tao-testcenter Version >=10.0.0
oat-sa/extension-tao-task-queue Version >=6.0.0
oat-sa/extension-tao-publishing Version >=6.0.0
oat-sa/extension-tao-clientdiag Version >=8.0.0
oat-sa/lib-generis-search Version 2.1.2
oat-sa/extension-tao-outcome Version >=13.0.0
oat-sa/extension-tao-itemqti Version >=27.0.0
oat-sa/extension-tao-testqti Version >=41.0.0