ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDashboardContentBlockGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public static string $block_type = 'dashcontent';
24 protected int $currentitemnumber;
25 protected string $content;
26
27 public function __construct()
28 {
29 global $DIC;
30
31 $this->ctrl = $DIC->ctrl();
32 $this->lng = $DIC->language();
33 $this->user = $DIC->user();
34
36
37 $this->setEnableNumInfo(false);
38 $this->setLimit(99999);
39 $this->setPresentation(self::PRES_MAIN_LEG);
40 $this->allow_moving = false;
41 }
42
43 public function getBlockType(): string
44 {
45 return self::$block_type;
46 }
47
48 public function setCurrentItemNumber(int $a_currentitemnumber): void
49 {
50 $this->currentitemnumber = $a_currentitemnumber;
51 }
52
53 public function getCurrentItemNumber(): int
54 {
56 }
57
58 protected function isRepositoryObject(): bool
59 {
60 return false;
61 }
62
63 public function getContent(): string
64 {
65 return $this->content;
66 }
67
68 protected function getLegacyContent(): string
69 {
70 return $this->content;
71 }
72
73 public function setContent(string $a_content): void
74 {
75 $this->content = $a_content;
76 }
77}
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