* update report details * * @param int $reportId * @param $name * @param $subheader * @param int $parent * @param $options * @param $visualization * @param $chart * @param $chartoptions * @param $dataoptions * @param $dimension1 * @param $dimension2 * @param $value * @return bool * @throws Exception */
( int $reportId, $name, $subheader, int $parent, $options, $visualization, $chart, $chartoptions, $dataoptions, $dimension1 = null, $dimension2 = null, $value = null
| 300 | * @throws Exception |
| 301 | */ |
| 302 | public function update( |
| 303 | int $reportId, |
| 304 | $name, |
| 305 | $subheader, |
| 306 | int $parent, |
| 307 | $options, |
| 308 | $visualization, |
| 309 | $chart, |
| 310 | $chartoptions, |
| 311 | $dataoptions, |
| 312 | $dimension1 = null, |
| 313 | $dimension2 = null, |
| 314 | $value = null |
| 315 | ) { |
| 316 | $array = json_decode($options, true); |
| 317 | foreach ($array as $key => $tmpValue) { |
| 318 | $array[$key] = htmlspecialchars($tmpValue, ENT_NOQUOTES, 'UTF-8'); |
| 319 | } |
| 320 | $options = json_encode($array); |
| 321 | |
| 322 | return $this->ReportMapper->update($reportId, $name, $subheader, $parent, $options, $visualization, $chart, $chartoptions, $dataoptions, $dimension1, $dimension2, $value); |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * Delete Dataset and all depending objects |