ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilContentPagePageCollector.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function getAllPageIds(int $obj_id): array
24 {
25 $pages = [];
26
27 foreach (ilPageObject::getAllPages(self::OBJ_TYPE, $obj_id) as $page) {
28 $pages[] = [
29 'parent_type' => self::OBJ_TYPE,
30 'id' => $page['id'],
31 'lang' => $page['lang'],
32 ];
33 }
34
35 return $pages;
36 }
37}
getAllPageIds(int $obj_id)
Get all page IDs of an repository object.
static getAllPages(string $a_parent_type, int $a_parent_id, string $a_lang="-")
Get all pages for parent object.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilContentPageObjectConstants.