ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPCSectionModelProvider Class Reference
+ Inheritance diagram for ilPCSectionModelProvider:
+ Collaboration diagram for ilPCSectionModelProvider:

Public Member Functions

 getModels (DomUtil $dom_util, \ilPageObject $page)
 

Detailed Description

Definition at line 22 of file class.ilPCSectionModelProvider.php.

Member Function Documentation

◆ getModels()

ilPCSectionModelProvider::getModels ( DomUtil  $dom_util,
\ilPageObject  $page 
)

Implements ILIAS\COPage\Editor\Components\PageComponentModelProvider.

Definition at line 24 of file class.ilPCSectionModelProvider.php.

References ilPageObject\getDomDoc(), and ILIAS\COPage\Dom\DomUtil\path().

27  : array {
28  $models = [];
29 
30  foreach ($dom_util->path($page->getDomDoc(), "//Section") as $node) {
31  $par = $node->parentNode;
32  $pc_id = $par->getAttribute("PCID");
33 
34  $model = new stdClass();
35  $model->protected = ($node->getAttribute("Protected") === "1");
36 
37  $models[$pc_id] = $model;
38  }
39 
40  return $models;
41  }
path(\DOMDocument $doc, string $path)
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: