ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilSkillManagementSettings.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
30 {
31  public function __construct()
32  {
33  parent::__construct("skmg");
34  }
35 
36  public function activate(bool $a_active): void
37  {
38  $value = $a_active ? "1" : "0";
39  $this->set("enable_skmg", $value);
40  }
41 
42  public function isActivated(): bool
43  {
44  return (bool) $this->get("enable_skmg", "0");
45  }
46 
47  public function setHideProfileBeforeSelfEval(bool $a_val): void
48  {
49  $value = $a_val ? "1" : "0";
50  $this->set("hide_profile_self_eval", $value);
51  }
52 
53  public function getHideProfileBeforeSelfEval(): bool
54  {
55  return (bool) $this->get("hide_profile_self_eval", "0");
56  }
57 
58  public function setLocalAssignmentOfProfiles(bool $a_val): void
59  {
60  $value = $a_val ? "1" : "0";
61  $this->set("local_assignment_profiles", $value);
62  }
63 
64  public function getLocalAssignmentOfProfiles(): bool
65  {
66  return (bool) $this->get("local_assignment_profiles", "0");
67  }
68 
69  public function setAllowLocalProfiles(bool $a_val): void
70  {
71  $value = $a_val ? "1" : "0";
72  $this->set("allow_local_profiles", $value);
73  }
74 
75  public function getAllowLocalProfiles(): bool
76  {
77  return (bool) $this->get("allow_local_profiles", "0");
78  }
79 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)