19 declare(strict_types=1);
36 protected int $cont_member_role_id
45 array $parameters = []
49 if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
50 foreach ($this->profile_service->getGlobalProfilesOfRole($this->cont_member_role_id) as $gp) {
54 if ($this->skmg_settings->getAllowLocalProfiles()) {
55 foreach ($this->profile_service->getLocalProfilesOfRole($this->cont_member_role_id) as $lp) {
62 foreach ($profiles as $profile) {
63 $profiles_array[$profile->getId()] = [
64 "id" => $profile->getId(),
65 "profile_id" => $profile->getId(),
66 "title" => $profile->getTitle(),
67 "profile_ref_id" => $profile->getRefId()
70 ksort($profiles_array);
72 $profiles_array = $this->applyOrder($profiles_array, $order);
73 $profiles_array = $this->applyRange($profiles_array,
$range);
75 foreach ($profiles_array as $profile) {
86 if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
87 $count +=
count($this->profile_service->getGlobalProfilesOfRole($this->cont_member_role_id));
89 if ($this->skmg_settings->getAllowLocalProfiles()) {
90 $count +=
count($this->profile_service->getLocalProfilesOfRole($this->cont_member_role_id));
98 return in_array($field, [
"profile_id",
"id"]);
Skill management settings.
count(array $filter, array $parameters)
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
isFieldNumeric(string $field)
Both the subject and the direction need to be specified when expressing an order. ...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(protected SkillProfileService $profile_service, protected \ilSkillManagementSettings $skmg_settings, protected int $cont_member_role_id)
A simple class to express a naive range of whole positive numbers.