No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
raphael 239c3a1e6c @fixed nom des clés 2 years ago
ClientAPI Retrait de l'utilisation du container dans le code 2 years ago
Controller Corrections Controller non service dans bundle 2 years ago
Crypto crypto getSecretKey 3 years ago
DependencyInjection Retrait de l'utilisation du container dans le code 2 years ago
Entity BGC-26 amelioration protection des données SCORM 2 years ago
EntityListener Corrections mappingObjective 3 years ago
LearningModels TLD-577 Correction suite au test 2 years ago
Package TLD-577 Correction suite au test 2 years ago
Player/SCORM2004 TLD-558 Item de Selection 2 years ago
Repository/Scorm2004 Corrections 3 years ago
Resources @fixed nom des clés 2 years ago
Services TLD-698 ajout du quizId dans la récup des interactions 2 years ago
Tests testGetFlatTree : test de l'ordre 2 years ago
Tools Gestion de champs null sur les interactoins 2 years ago
.gitignore content folder variable de bundle 3 years ago
LICENSE first commit 3 years ago
LogiproSCORMBundle.php BGC-26 amelioration protection des données SCORM 2 years ago
README.md BGC-178 correction readme 2 years ago
composer.json version 3 years ago
phpunit.xml.dist correction namespace 3 years ago

README.md

SCORMBundle

Installation

Applications that use Symfony Flex

Assume you have acces to SCORMBundle authorized packagist by adding following lines in your composer:

  "repositories": [{
    "type": "composer",
    "url": "https://satis.logipro.com"
  }]

Open a command console, enter your project directory and execute:

$ composer require Logipro/SCORMBundle:dev-master

Doctrine will be installed if it was not.

So, if Doctrine has just been installed make sure to configure .env for database connexion. Particulary, set values for:

DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name

then create database and update schema

php bin/console doctrine:database:create
php bin/console doctrine:schema:update --force

Security

Package resources access has cookie authentification. It allows application access only to user owning resources. For instance none would be able to access directly by url. (example : http://yourdomaine/content/SeqPostSCORM20044th/imsmanifest.xml will return a 403)

Create the file logipro_scorm.yaml into the /config/packages folder and configure (copy/paste) the following variables :

logipro_scorm:
  package_folder: '%kernel.project_dir%/private/packages'
  content_folder: '%kernel.project_dir%/public/content'
  content_url_prefix: '/content'

A special .htacces file will be autogenerated in content_folder and url_prefix will be used to create url access to resources, like this : https://yourdomain/content_url_prefix/CODE/ressourceofapackage

In order to allow a complete SCORM experience, if potential users have restricted access, be sure to had the access right to the ‘logipro_scorm_2004_commit’ route.

Tests

To add phpunit tests of the SCORMBundle just add following lines inside the /phpunit.xml.dis file:

<testsuites>
    <testsuite name="LMS et SCORMBundle Tests">
        <directory>tests</directory>
        <directory>vendor/logipro/SCORMBundle/Tests</directory>
    </testsuite>
</testsuites>

Resources