41 $this->
ctrl = $DIC->ctrl();
42 $this->
lng = $DIC->language();
43 $this->
user = $DIC->user();
86 $cmd = $ilCtrl->
getCmd(
"getHTML");
94 public function getListRowData(): void
99 foreach ($this->tasks as $task) {
101 "title" => $task->getTitle(),
102 "url" => $task->getUrl(),
103 "ref_id" => $task->getRefId(),
104 "wsp_id" => $task->getWspId(),
105 "deadline" => $task->getDeadline(),
106 "starting_time" => $task->getStartingTime()
120 return '<div class="small">' . (count($this->tasks)) .
" " .
$lng->
txt(
"task_derived_tasks") .
"</div>";
129 $collector =
$DIC->task()->derived()->factory()->collector();
131 $this->tasks = $collector->getEntries($this->
user->getId());
133 $this->getListRowData();
135 return parent::getHTML();
149 if (
$data[
"ref_id"] > 0) {
158 if (
$data[
"wsp_id"] > 0) {
160 $obj_id = $wst->lookupObjectId(
$data[
"wsp_id"]);
168 if (
$data[
"starting_time"] > 0) {
175 ->withProperties($props);
177 if (
$data[
"deadline"] > 0) {
193 return $this->
lng->txt(
"task_no_task_items");
This class represents a block method of a block.
setTitle(string $a_title)
setPresentation(int $type)
getCmd(?string $fallback_command=null)
@inheritDoc
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
@classDescription Date and time handling
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
BlockGUI class for Tasks on PD.
isRepositoryObject()
Returns whether block has a corresponding repository object.
executeCommand()
execute command
static getScreenMode()
Get Screen Mode for current command.
__construct()
Constructor.
getNoItemFoundContent()
No item entry.
getOverview()
Get overview.
static string $block_type
getListItemForData(array $data)
Get list item for data array.null|\ILIAS\UI\Component\Item\Item
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Common interface to all items.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc