ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilDashboardPage.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilDashboardPage
extends
ilPageObject
22
{
23
public
function
afterConstructor
(): void
24
{
25
$this->parent_type = (
new
ilObjDashboardSettings
())->getType();
26
$nodes =
ilObject::_getObjectsByType
($this->parent_type);
27
$this->parent_id = current($nodes)[
'obj_id'
];
28
}
29
30
public
function
getParentType
(): string
31
{
32
if
($this->parent_type ===
''
) {
33
$this->
afterConstructor
();
34
}
35
return
$this->parent_type
;
36
}
37
}
ilObject\_getObjectsByType
static _getObjectsByType(string $obj_type="", ?int $owner=null)
Definition:
class.ilObject.php:1481
ilDashboardPage
Definition:
class.ilDashboardPage.php:21
ilDashboardPage\getParentType
getParentType()
Definition:
class.ilDashboardPage.php:30
ilPageObject\$parent_type
string $parent_type
Definition:
class.ilPageObject.php:80
ilDashboardPage\afterConstructor
afterConstructor()
Definition:
class.ilDashboardPage.php:23
ilPageObject
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
Definition:
class.ilPageObject.php:52
ilObjDashboardSettings
Definition:
class.ilObjDashboardSettings.php:21
components
ILIAS
Dashboard
classes
class.ilDashboardPage.php
Generated on Sun Aug 31 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)