ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.SkillProfileFactory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 namespace ILIAS\Skill\Profile;
23 
29 {
30  public function profile(
31  int $id,
32  string $title,
33  string $description,
34  int $skill_tree_id,
35  string $image_id = "",
36  int $ref_id = 0
37  ): SkillProfile {
38  return new SkillProfile(
39  $id,
40  $title,
41  $description,
42  $skill_tree_id,
43  $image_id,
44  $ref_id
45  );
46  }
47 
48  public function roleProfile(
49  int $role_id,
50  int $profile_id,
51  string $title,
52  string $description,
53  int $skill_tree_id,
54  string $image_id,
55  int $ref_id
56  ): SkillRoleProfile {
57  return new SkillRoleProfile(
58  $role_id,
59  $profile_id,
60  $title,
61  $description,
62  $skill_tree_id,
63  $image_id,
64  $ref_id
65  );
66  }
67 
68  public function profileLevel(
69  int $profile_id,
70  int $base_skill_id,
71  int $tref_id,
72  int $level_id,
73  int $order_nr
75  return new SkillProfileLevel(
76  $profile_id,
77  $base_skill_id,
78  $tref_id,
79  $level_id,
80  $order_nr
81  );
82  }
83 
84  public function profileCompletion(
85  int $profile_id,
86  int $user_id,
87  string $date,
88  bool $fulfilled
90  return new SkillProfileCompletion(
91  $profile_id,
92  $user_id,
93  $date,
94  $fulfilled
95  );
96  }
97 
98  public function profileUserAssignment(
99  string $name,
100  int $id
102  return new SkillProfileUserAssignment(
103  $name,
104  $id
105  );
106  }
107 
108  public function profileRoleAssignment(
109  string $name,
110  int $id,
111  string $obj_title,
112  string $obj_type,
113  int $obj_id
115  return new SkillProfileRoleAssignment(
116  $name,
117  $id,
118  $obj_title,
119  $obj_type,
120  $obj_id
121  );
122  }
123 }
profileCompletion(int $profile_id, int $user_id, string $date, bool $fulfilled)
profile(int $id, string $title, string $description, int $skill_tree_id, string $image_id="", int $ref_id=0)
profileRoleAssignment(string $name, int $id, string $obj_title, string $obj_type, int $obj_id)
$ref_id
Definition: ltiauth.php:66
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
roleProfile(int $role_id, int $profile_id, string $title, string $description, int $skill_tree_id, string $image_id, int $ref_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:24
profileLevel(int $profile_id, int $base_skill_id, int $tref_id, int $level_id, int $order_nr)