27 protected \ilDBInterface
$db;
32 $this->db = $DIC->database();
41 "prtf_role_assignment",
43 "role_id" => [
"integer", $role_id],
44 "template_ref_id" => [
"integer", $template_ref_id]
50 public function delete(
56 "DELETE FROM prtf_role_assignment WHERE " .
57 " role_id = %s AND template_ref_id = %s",
58 [
"integer",
"integer"],
59 [$role_id, $template_ref_id]
68 "SELECT * FROM prtf_role_assignment " .
69 " WHERE " . $db->in(
"role_id", $role_ids,
false,
"integer"),
73 $template_ref_ids = [];
74 while ($rec = $db->fetchAssoc($set)) {
75 $template_ref_ids[$rec[
"template_ref_id"]] = $rec[
"template_ref_id"];
77 return $template_ref_ids;
84 "SELECT * FROM prtf_role_assignment ",
89 while ($rec = $db->fetchAssoc($set)) {
95 "role_id" => $rec[
"role_id"],
96 "template_ref_id" => $rec[
"template_ref_id"],
97 "role_title" => $role_title,
98 "template_title" => $template_title
manipulateF(string $query, array $types, array $values)
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
getTemplatesForRoles(array $role_ids)
add(int $template_ref_id, int $role_id)
queryF(string $query, array $types, array $values)
replace(string $table, array $primary_keys, array $other_columns)
Replace into method.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...