17 public function __construct(?
object $a_parent_obj,
string $a_parent_cmd)
19 $this->
setId(
"lpobjstattbl");
27 $this->
setTitle($this->
lng->txt(
"trac_object_stat_admin"));
32 $this->
lng->txt(
"trac_delete_data")
36 $this->
ctrl->getFormAction($a_parent_obj, $a_parent_cmd)
39 "tpl.lp_object_statistics_admin_row.html",
56 foreach (
$data as $idx => $item) {
57 $data[$idx][
"id"] = $item[
"month"];
59 $data[$idx][
"month"] = substr($item[
"month"], 0, 4) .
60 "-" . str_pad(substr($item[
"month"], 5), 2,
"0", STR_PAD_LEFT);
69 protected function fillRow(array $a_set): void
75 $caption = $this->
lng->txt(
76 "month_" . substr($a_set[
"month"], 5, 2) .
"_long" 78 " " . substr($a_set[
"month"], 0, 4);
80 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
81 $this->tpl->setVariable(
"MONTH", $caption);
82 $this->tpl->setVariable(
"COUNT", $a_set[
"count"]);
setFormAction(string $a_form_action, bool $a_multipart=false)
setEnableTitle(bool $a_enabletitle)
static getObjectStatisticsMonthlySummary()
TableGUI class for learning progress.
__construct(?object $a_parent_obj, string $a_parent_cmd)
Constructor.
TableGUI class for learning progress.
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setEnableNumInfo(bool $a_val)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
fillRow(array $a_set)
Fill table row.
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)