ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilLMEditService.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
12{
16 protected $lm;
17
21 protected $request;
22
26 public function __construct(
27 array $query_params
28 ) {
29 $this->request = new ilLMEditRequest($query_params);
30 $this->ref_id = $this->request->getRequestedRefId();
31 $this->lm = new ilObjLearningModule($this->ref_id);
32 }
33
38 {
39 return $this->lm;
40 }
41
47 public function getRequest() : ilLMEditRequest
48 {
49 return $this->request;
50 }
51}
An exception for terminatinating execution or to throw for unit testing.
Main service init and factory.
getRequest()
Get request.
__construct(array $query_params)
Constructor.
Class ilObjLearningModule.