ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilNewsServiceDependencies.php
Go to the documentation of this file.
1 <?php
2 
24 {
25  protected ilLanguage $lng;
26  protected ilSetting $settings;
28  protected ilObjUser $user;
29 
30  public function __construct(
31  ilLanguage $lng,
32  ilSetting $settings,
33  ilObjUser $user,
34  ilNewsObjectAdapterInterface $obj_adapter
35  ) {
36  $this->lng = $lng;
37  $this->settings = $settings;
38  $this->user = $user;
39  $this->obj_adapter = $obj_adapter;
40  }
41 
45  public function obj(): ilNewsObjectAdapterInterface
46  {
47  return $this->obj_adapter;
48  }
49 
50  public function language(): ilLanguage
51  {
52  return $this->lng;
53  }
54 
55  public function settings(): ilSetting
56  {
57  return $this->settings;
58  }
59 
60  // Get current user
61  public function user(): ilObjUser
62  {
63  return $this->user;
64  }
65 }
ilNewsObjectAdapterInterface $obj_adapter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilLanguage $lng, ilSetting $settings, ilObjUser $user, ilNewsObjectAdapterInterface $obj_adapter)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...