ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSkillManagementSettings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
29{
30 public function __construct()
31 {
32 parent::__construct("skmg");
33 }
34
35 public function activate(bool $a_active): void
36 {
37 $value = $a_active ? "1" : "0";
38 $this->set("enable_skmg", $value);
39 }
40
41 public function isActivated(): bool
42 {
43 return (bool) $this->get("enable_skmg", "0");
44 }
45
46 public function setHideProfileBeforeSelfEval(bool $a_val): void
47 {
48 $value = $a_val ? "1" : "0";
49 $this->set("hide_profile_self_eval", $value);
50 }
51
52 public function getHideProfileBeforeSelfEval(): bool
53 {
54 return (bool) $this->get("hide_profile_self_eval", "0");
55 }
56
57 public function setLocalAssignmentOfProfiles(bool $a_val): void
58 {
59 $value = $a_val ? "1" : "0";
60 $this->set("local_assignment_profiles", $value);
61 }
62
63 public function getLocalAssignmentOfProfiles(): bool
64 {
65 return (bool) $this->get("local_assignment_profiles", "0");
66 }
67
68 public function setAllowLocalProfiles(bool $a_val): void
69 {
70 $value = $a_val ? "1" : "0";
71 $this->set("allow_local_profiles", $value);
72 }
73
74 public function getAllowLocalProfiles(): bool
75 {
76 return (bool) $this->get("allow_local_profiles", "0");
77 }
78}
ILIAS Setting Class.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc