Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
134 lines
5.3 KiB
PHP
134 lines
5.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the xAPI package.
|
|
*
|
|
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Xabbuh\XApi\DataFixtures;
|
|
|
|
use Xabbuh\XApi\Model\SubStatement;
|
|
|
|
/**
|
|
* xAPI sub statement fixtures.
|
|
*
|
|
* These fixtures are borrowed from the
|
|
* {@link https://github.com/adlnet/xAPI_LRS_Test Experience API Learning Record Store Conformance Test} package.
|
|
*/
|
|
class SubStatementFixtures
|
|
{
|
|
public static function getTypicalSubStatement()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxAgent()
|
|
{
|
|
return new SubStatement(ActorFixtures::getMboxAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxSha1SumAgent()
|
|
{
|
|
return new SubStatement(ActorFixtures::getMboxSha1SumAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithOpenIdAgent()
|
|
{
|
|
return new SubStatement(ActorFixtures::getOpenIdAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithAccountAgent()
|
|
{
|
|
return new SubStatement(ActorFixtures::getAccountAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxGroup()
|
|
{
|
|
return new SubStatement(ActorFixtures::getMboxGroup(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxSha1SumGroup()
|
|
{
|
|
return new SubStatement(ActorFixtures::getMboxSha1SumGroup(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithOpenIdGroup()
|
|
{
|
|
return new SubStatement(ActorFixtures::getOpenIdGroup(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithAccountGroup()
|
|
{
|
|
return new SubStatement(ActorFixtures::getAccountGroup(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithIdOnlyVerb()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getIdVerb(), ActivityFixtures::getTypicalActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxAgentObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getMboxAgent());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxSha1SumAgentObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getMboxSha1SumAgent());
|
|
}
|
|
|
|
public static function getSubStatementWithOpenIdAgentObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getOpenIdAgent());
|
|
}
|
|
|
|
public static function getSubStatementWithAccountAgentObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getAccountAgent());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxGroupObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getMboxGroup());
|
|
}
|
|
|
|
public static function getSubStatementWithMboxSha1SumGroupObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getMboxSha1SumGroup());
|
|
}
|
|
|
|
public static function getSubStatementWithOpenIdGroupObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getOpenIdGroup());
|
|
}
|
|
|
|
public static function getSubStatementWithAccountGroupObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getAccountGroup());
|
|
}
|
|
|
|
public static function getSubStatementWithAllPropertiesAndTypicalAgentMemberGroupObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActorFixtures::getAllPropertiesAndTypicalAgentMemberGroup());
|
|
}
|
|
|
|
public static function getSubStatementWithAllPropertiesActivityObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getAllPropertiesActivity());
|
|
}
|
|
|
|
public static function getSubStatementWithTypicalStatementReferenceObject()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), StatementReferenceFixtures::getTypicalStatementReference());
|
|
}
|
|
|
|
public static function getAllPropertiesSubStatement()
|
|
{
|
|
return new SubStatement(ActorFixtures::getTypicalAgent(), VerbFixtures::getTypicalVerb(), ActivityFixtures::getTypicalActivity(), ResultFixtures::getTypicalResult(), ContextFixtures::getTypicalContext());
|
|
}
|
|
}
|