Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
krampstudio committed Mar 11, 2016
2 parents 86dd6bb + 78f4189 commit fd5c4bd
Show file tree
Hide file tree
Showing 90 changed files with 1,770 additions and 926 deletions.
32 changes: 32 additions & 0 deletions install/scripts/addValidationSettings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

namespace oat\taoQtiItem\install\scripts;

use oat\oatbox\service\ServiceManager;
use oat\taoQtiItem\model\ValidationService;

class addValidationSettings extends \common_ext_action_InstallAction
{
public function __invoke($params)
{

$this->setServiceLocator(ServiceManager::getServiceManager());
$serviceManager = $this->getServiceManager();

$ext = \common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiItem');
if($ext->hasConfig('contentValidation')){
$ext->unsetConfig('contentValidation');
}

if($ext->hasConfig('manifestValidation')){
$ext->unsetConfig('manifestValidation');
}

//Set Validation service
$validationService = new ValidationService();
$validationService->setServiceManager($serviceManager);
$serviceManager->register(ValidationService::SERVICE_ID, $validationService);

return new \common_report_Report(\common_report_Report::TYPE_SUCCESS, 'Validation service has been successfully set up');
}
}
491 changes: 491 additions & 0 deletions locales/it-IT/messages.lang.php

Large diffs are not rendered by default.

Loading

0 comments on commit fd5c4bd

Please sign in to comment.