ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
class.ilDashboardContentBlockGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public const BLOCK_TYPE = 'dashcontent';
24
25 protected int $current_item_number;
26 protected string $content;
27
28 public function __construct()
29 {
30 global $DIC;
31
32 $this->ctrl = $DIC->ctrl();
33 $this->lng = $DIC->language();
34 $this->user = $DIC->user();
35
37
38 $this->setEnableNumInfo(false);
39 $this->setLimit(99999);
40 $this->setPresentation(self::PRES_MAIN_LEG);
41 $this->allow_moving = false;
42 }
43
44 final public function getBlockType(): string
45 {
46 return self::BLOCK_TYPE;
47 }
48
49 final public function setCurrentItemNumber(int $a_currentitemnumber): void
50 {
51 $this->current_item_number = $a_currentitemnumber;
52 }
53
54 final public function getCurrentItemNumber(): int
55 {
57 }
58
59 final protected function isRepositoryObject(): bool
60 {
61 return false;
62 }
63
64 final public function getContent(): string
65 {
66 return $this->content;
67 }
68
69 final protected function getLegacyContent(): string
70 {
71 return $this->content;
72 }
73
74 final public function setContent(string $a_content): void
75 {
76 $this->content = $a_content;
77 }
78}
This class represents a block method of a block.
setPresentation(int $type)
setLimit(int $a_limit)
setEnableNumInfo(bool $a_enablenuminfo)
isRepositoryObject()
Returns whether block has a corresponding repository object.
setCurrentItemNumber(int $a_currentitemnumber)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26