oat-sa/extension-tao-ltideliveryprovider
Composer 安装命令:
composer require oat-sa/extension-tao-ltideliveryprovider
包简介
extension to manage LTI delivery provider for TAO
README 文档
README
The LTI Delivery extension allows test-takers to take a delivery (delivered test) via LTI
The endpoint for this service to proctor a specific delivery is:
https://YOUR_DOMAIN/ltiDeliveryProvider/DeliveryTool/launch?delivery=YOUR_DELIVERY_URI
or
https://YOUR_DOMAIN/ltiDeliveryProvider/DeliveryTool/{"delivery":"YOUR_URI"}(base64 encoded)
This link can retrieved using the LTI button in the deliveries section in the TAO admin user interface.
Alternatively a configurable link can be used by omitting the delivery parameter
https://YOUR_DOMAIN/ltiDeliveryProvider/DeliveryTool/launch
In this scenario the instructor would need to call the LTI service first, and will be presented with a list of deliveries. Once he has chosen one of these deliveries it can no longer be changed. Test-takers subsequently clicking on the same link (as identified by Resource ID) will start the delivery chosen by the instructor.
The expected roles are:
Learnerfor people taking a testInstructorfor people configuring a link
Custom parameters:
max_attemptsOverrides the number of executions allowed on the delivery. Expects a positive integer value or 0 for unlimited attempts. Attempts on LTI calls are calculated perresource_link_idinstead of per delivery.
Return Values:
log messagewill contain the status of the delivery execution- 100 for an active delivery
- 101 for a paused delivery
- 200 for a finished delivery
- 201 for a terminated delivery
Installation instructions
These instructions assume that you have already a TAO installation on your system. If you don't, go to package/tao and follow the installation instructions.
If you installed your TAO instance through package/tao,
oat-sa/extension-tao-ltideliveryprovider is very likely already installed. You can verify this under Settings -> Extension
manager, where it would appear on the left hand side as ltiDeliveryProvider. Alternatively you would find it in
the code at /config/generis/installation.conf.php.
Note, that you have to be logged in as System Administrator to do this.
Add the extension to your TAO composer and to the autoloader:
composer require oat-sa/extension-tao-ltideliveryprovider
Install the extension on the CLI from the project root:
Linux:
sudo php tao/scripts/installExtension oat-sa/extension-tao-ltideliveryprovider
Windows:
php tao\scripts\installExtension oat-sa/extension-tao-ltideliveryprovider
As a system administrator you also install it through the TAO Extension Manager:
- Settings (the gears on the right hand side of the menu) -> Extension manager
- Select ltiDeliveryProvider on the right hand side, check the box and hit install
REST API
Configuration options
Feature flags
FEATURE_FLAG_AGS_SCORE_SENDING_RETRY
A bool-typed environment variable, controlling whether AGS score should be resent if it fails to be sent.
"false"– the application won't try to resend another request when it fails. Default behavior."true"– the application will try to resend requests until the number of max retries is reached.
LaunchQueue.conf.php
Configuration option relaunchInterval
Description: specifies time (in seconds) for a test taker to wait before the page is reloaded when waiting in LTI queue
Possible values:
- Any numerical value (> 0)
Configuration option relaunchIntervalDeviation
Description: specifies time (in seconds) to pick a random amount of seconds between 0 and relaunchIntervalDeviation, then the random result is randomly added to or subtracted from relaunchInterval for each time the queue page is being reloaded.
The goal of this option is to prevent knocking the backend simultaneously by multiple clients.
Possible values:
- Any numerical value between 0 and
relaunchInterval
LtiDeliveryExecution.conf.php
Configuration option queue_persistence
Description: a persistence that LTI delivery execution service should work based on. Should be a persistence name that's registered in generis/persistences.conf.php
Value example:
defaultcache
LtiNavigation.conf.php
Configuration option thankyouScreen
Description: whether the 'thank you' screen should be shown once a test is passed through LTI.
It only takes effect if the custom_skip_thankyou LTI parameter is omitted. Otherwise, it's only depends on the LTI parameter.
Possible values:
truefalse
Configuration option delivery_return_status
Description: if enabled, the deliveryExecutionStatus return parameter will be included in a consumer return URL.
This parameter will always be set to a delivery execution state label.
Possible values:
true: include the parameter in consumer return URLsfalse: omit the parameter
Configuration option message
Description: a factory for producing LTI messages
Possible values:
- an instance of any class that has the
getLtiMessagemethod
Value example:
new oat\ltiDeliveryProvider\model\navigation\DefaultMessageFactory()
LtiResultIdStorage.conf.php
Configuration option persistence
Description: a persistence that LTI result aliases should be stored in. Should be a persistence name that's registered in generis/persistences.conf.php
Value example:
defaultcache
Extension Wiki
You can find the extension wiki here.
oat-sa/extension-tao-ltideliveryprovider 适用场景与选型建议
oat-sa/extension-tao-ltideliveryprovider 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 83.74k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2014 年 07 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「QTI」 「OAT」 「TAO」 「computer-based-assessment」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 oat-sa/extension-tao-ltideliveryprovider 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 oat-sa/extension-tao-ltideliveryprovider 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 oat-sa/extension-tao-ltideliveryprovider 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
extension to manage key-value outcomes in TAO
extension to manage HTML items in TAO
flysystem cache Adapter
Extension that gathers development tools for TAO
An extension providing the necessary tools to create DataURIs.
统计信息
- 总下载量: 83.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 33
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2014-07-24
