ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilCmiXapiAbstractReportLinkBuilder.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
16{
20 protected $objId;
21
26
30 protected $filter;
31
32 protected $obj;
33
41 public function __construct(
42 $obj,
45 ) {
46 $this->obj = $obj;
47 $this->objId = $obj->getID();
48 $this->aggregateEndPoint = $aggregateEndPoint;
49 $this->filter = $filter;
50 }
51
55 public function getUrl()
56 {
59 return $url;
60 }
61
66 protected function appendRequestParameters($url)
67 {
69
70 return $url;
71 }
72
76 protected function buildPipelineParameter()
77 {
78 $pipeline = urlencode(json_encode($this->buildPipeline()));
79 return "pipeline={$pipeline}";
80 }
81
85 abstract protected function buildPipeline() : array;
86
90 public function getObjId()
91 {
92 return $this->objId;
93 }
94
98 public function getAggregateEndPoint()
99 {
101 }
102
106 public function getObj()
107 {
108 return $this->obj;
109 }
110}
An exception for terminatinating execution or to throw for unit testing.
__construct( $obj, $aggregateEndPoint, ilCmiXapiStatementsReportFilter $filter)
ilCmiXapiAbstractReportLinkBuilder constructor.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
$url