23 public function __construct($a_parent_obj, $a_parent_cmd, $a_lm)
27 $this->ctrl = $DIC->ctrl();
28 $this->lng = $DIC->language();
29 $this->access = $DIC->access();
31 $lng = $DIC->language();
32 $ilAccess = $DIC->access();
33 $lng = $DIC->language();
38 $this->
setData($this->getBlockedUsers());
42 $this->
addColumn($this->lng->txt(
"user"),
"user");
43 $this->
addColumn($this->lng->txt(
"question"),
"");
44 $this->
addColumn($this->lng->txt(
"page"),
"page_title");
45 $this->
addColumn($this->lng->txt(
"cont_last_try"),
"last_try");
46 $this->
addColumn($this->lng->txt(
"cont_unlocked"));
49 $this->
setRowTemplate(
"tpl.blocked_users.html",
"Modules/LearningModule");
62 protected function getBlockedUsers()
67 return $bl_users = $track->getBlockedUsersInformation();
77 $this->tpl->setVariable(
"USER_QUEST_ID", $a_set[
"qst_id"] .
":" . $a_set[
"user_id"]);
78 $this->tpl->setVariable(
"USER_NAME", $a_set[
"user_name"]);
79 $this->tpl->setVariable(
"QUESTION", $a_set[
"question_text"]);
80 $this->tpl->setVariable(
"PAGE", $a_set[
"page_title"]);
81 $this->tpl->setVariable(
"LAST_TRY", $a_set[
"last_try"]);
82 $this->tpl->setVariable(
"IGNORE_FAIL", ($a_set[
"unlocked"] ?
$lng->txt(
"yes") :
$lng->txt(
"no")));
__construct($a_parent_obj, $a_parent_cmd, $a_lm)
Constructor.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
fillRow($a_set)
Fill table row.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static getInstance($a_ref_id, $a_user_id=0)
Get instance.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct(Container $dic, ilPlugin $plugin)
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.