34 protected \ILIAS\Awareness\StandardGUIRequest
$request;
51 ??
$DIC->awareness()->internal()->data();
52 $domain_service = $domain_service
53 ??
$DIC->awareness()->internal()->domain();
54 $gui_service = $gui_service
55 ??
$DIC->awareness()->internal()->gui();
56 $this->
user = $domain_service->user();
57 $this->
lng = $domain_service->lng();
58 $this->
ui = $gui_service->ui();
59 $this->
ctrl = $gui_service->ctrl();
61 $this->
lng->loadLanguageModule(
"awrn");
62 $this->request = $gui_service->standardRequest();
63 $this->main_tpl = $gui_service->mainTemplate();
65 $this->ref_id = $this->request->getRefId();
66 $this->manager = $domain_service->widget(
70 $this->gui =
$DIC->awareness()->internal()->gui();
76 $this->ui->renderer(),
85 $cmd = $this->
ctrl->getCmd();
87 if (in_array($cmd, array(
"getAwarenessList"))) {
96 $this->main_tpl->addJavaScript(
"../components/ILIAS/Awareness/resources/Awareness.js");
98 $this->main_tpl->addJavaScript(
"./assets/js/Awareness.js");
100 $this->
ctrl->setParameter($this,
"ref_id", $this->ref_id);
101 $this->main_tpl->addOnLoadCode(
"il.Awareness.setBaseUrl('" . $this->
ctrl->getLinkTarget(
108 $this->main_tpl->addOnLoadCode(
"il.Awareness.setLoaderSrc('" .
ilUtil::getImagePath(
"media/loader.svg") .
"');");
110 $this->user_action_gui->init();
120 $filter = $this->request->getFilter();
122 $tpl =
new ilTemplate(
"tpl.awareness_list.html",
true,
true,
"components/ILIAS/Awareness");
124 $ad = $this->manager->getListData($filter);
126 $users = $ad[
"data"];
130 foreach ($users as $u) {
131 if ($u->collector != $last_uc_title) {
132 if ($u->highlighted) {
141 $last_uc_title = $u->collector;
146 foreach ($u->actions as $act) {
153 if (is_array($act->data) && count($act->data) > 0) {
154 foreach ($act->data as $k => $v) {
175 if ($u->public_profile) {
190 $tpl->
setVariable(
"GL_FILTER", $this->gui->symbol()->glyph(
"filter")->render());
195 $result = [
"html" =>
$tpl->
get(),
197 "cnt" => $ad[
"cnt"]];
204 echo json_encode($result, JSON_THROW_ON_ERROR);
Provides fluid interface to RBAC services.
InternalDataService $data_service
ILIAS Awareness StandardGUIRequest $request
__construct(?InternalDataService $data_service=null, ?InternalDomainService $domain_service=null, ?InternalGUIService $gui_service=null)
ilUserActionGUI $user_action_gui
getAwarenessList(bool $return=false)
Get awareness list (ajax)
ilGlobalTemplateInterface $main_tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilCtrl provides processing control methods.
special template class to simplify handling of ITX/PEAR
A class that provides a collection of actions on users.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
touchBlock(string $block)
overwrites ITX::touchBlock.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
readonly ilGlobalTemplateInterface $tpl
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...