19 declare(strict_types=1);
47 $link = $this->lrsType->getLrsEndpointStatementsLink();
53 if ($this->
filter->getLimit() !== 0) {
61 if ($this->
filter->getVerb()) {
81 $agent = json_encode([
82 'objectType' =>
'Agent',
83 'mbox' =>
'mailto:' . $this->
filter->getActor()->getUsrIdent()
86 return "agent={$agent}";
91 $verb = urlencode($this->
filter->getVerb());
92 return "verb={$verb}";
97 $since = urlencode($this->
filter->getStartDate()->toXapiTimestamp());
98 return "since={$since}";
103 $until = urlencode($this->
filter->getEndDate()->toXapiTimestamp());
104 return "until={$until}";
109 return "activity={$this->object->getActivityId()}";
114 return "related_agents=false";
119 return "related_activities=false";
124 return "limit={$this->filter->getLimit()}";
ilCmiXapiStatementsReportFilter $filter
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
buildParamRelatedActivities()
ilCmiXapiLrsType $lrsType
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
buildParamRelatedAgents()
appendRequestParameters(string $link)
__construct(ilObjCmiXapi $object, ilCmiXapiStatementsReportFilter $filter)
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)