ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDashboardPage.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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}
static _getObjectsByType(string $obj_type="", ?int $owner=null)
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)