3 declare(strict_types=1);
47 $id =
'$statement.actor.mbox';
50 $id =
'$statement.actor.account.name';
52 $pipeline[] = [
'$group' => [
54 'mbox' => [
'$last' =>
'$statement.actor.mbox' ],
55 'account' => [
'$last' =>
'$statement.actor.account.name'],
56 'username' => [
'$last' =>
'$statement.actor.name' ],
57 'timestamp' => [
'$last' =>
'$statement.timestamp' ],
58 'duration' => [
'$push' =>
'$statement.result.duration' ],
59 'score' => [
'$last' =>
'$statement.result.score' ]
71 $stage[
'statement.object.objectType'] =
'Activity';
72 $stage[
'statement.actor.objectType'] =
'Agent';
74 $stage[
'statement.object.id'] = $this->
filter->getActivityId();
76 $stage[
'statement.result.score.scaled'] = [
96 'statement.timestamp' => 1
108 if ($obj->isMixedContentType()) {
110 $users[] = [
'statement.actor.mbox' =>
"mailto:{$cmixUser->getUsrIdent()}"];
111 $users[] = [
'statement.actor.account.name' =>
"{$cmixUser->getUsrIdent()}"];
116 'statement.actor.mbox' =>
"mailto:{$cmixUser->getUsrIdent()}" 125 return '<pre>' . json_encode($this->
buildPipeline(), JSON_PRETTY_PRINT) .
'</pre>';
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static _lookupType(int $id, bool $reference=false)
static getUsersForObject(int $objId, bool $asUsrId=false)