Show list of tasks.
109 $this->
help->setScreenId(
'derived_tasks');
112 $renderer =
$ui->renderer();
114 $collector = $this->task->derived()->factory()->collector();
116 $entries = $collector->getEntries($this->
user->getId());
118 $list_items_with_deadline = [];
119 $list_items_without_deadline = [];
123 foreach ($entries as
$i) {
126 $title = $i->getTitle();
129 if ($i->getRefId() > 0) {
137 if ($i->getWspId() > 0) {
139 $obj_id = $wst->lookupObjectId($i->getWspId());
144 if (strlen($i->getUrl()) > 0) {
145 $link = $i->getUrl();
148 if (strlen($link) > 0) {
149 $title =
$f->button()->shy($title, $link);
152 if ($i->getStartingTime() > 0) {
156 if ($i->getDeadline() > 0) {
160 $item =
$f->item()->standard($title)->withProperties($props);
161 if ($i->getDeadline() > 0) {
162 $list_items_with_deadline[] = $item;
164 $list_items_without_deadline[] = $item;
169 if (count($list_items_with_deadline) > 0 || count($list_items_without_deadline) > 0) {
172 if (count($list_items_with_deadline) > 0) {
173 $panels[] =
$f->panel()->listing()->standard(
174 $lng->txt(
"task_tasks_with_deadline"),
175 [
$f->item()->group(
"", $list_items_with_deadline)]
178 if (count($list_items_without_deadline) > 0) {
179 $panels[] =
$f->panel()->listing()->standard(
180 $lng->txt(
"task_tasks_without_deadline"),
181 [
$f->item()->group(
"", $list_items_without_deadline)]
186 $main_tpl->setContent($renderer->render($panels));
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static _lookupTitle($a_id)
lookup object title
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
Tree handler for personal workspace.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type