ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\COPage\Page\PageManager Class Reference
+ Inheritance diagram for ILIAS\COPage\Page\PageManager:
+ Collaboration diagram for ILIAS\COPage\Page\PageManager:

Public Member Functions

 __construct ()
 
 get (string $parent_type, int $id=0, int $old_nr=0, string $lang="-")
 
 content (\DOMDocument $dom)
 
 contentFromXml ($xml)
 
 get (string $parent_type, int $id=0, int $old_nr=0, string $lang="-")
 

Protected Attributes

ILIAS COPage Dom DomUtil $dom_util
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.PageManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\COPage\Page\PageManager::__construct ( )

Definition at line 30 of file class.PageManager.php.

31 {
32 global $DIC;
33 $this->dom_util = $DIC->copage()->internal()->domain()->domUtil();
34 }
global $DIC
Definition: shib_login.php:26

References $DIC.

Member Function Documentation

◆ content()

ILIAS\COPage\Page\PageManager::content ( \DOMDocument  $dom)

Definition at line 50 of file class.PageManager.php.

50 : PageContentManager
51 {
52 return new PageContentManager($dom);
53 }

◆ contentFromXml()

ILIAS\COPage\Page\PageManager::contentFromXml (   $xml)

Definition at line 55 of file class.PageManager.php.

55 : PageContentManager
56 {
57 $error = "";
58 $dom = $this->dom_util->docFromString($xml, $error);
59 return new PageContentManager($dom);
60 }
ilErrorHandling $error
Definition: class.ilias.php:69

References ILIAS\$error.

◆ get()

ILIAS\COPage\Page\PageManager::get ( string  $parent_type,
int  $id = 0,
int  $old_nr = 0,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 36 of file class.PageManager.php.

42 return \ilPageObjectFactory::getInstance(
43 $parent_type,
44 $id,
45 $old_nr,
46 $lang
47 );
48 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
$lang
Definition: xapiexit.php:25

References $id, and $lang.

Field Documentation

◆ $dom_util

ILIAS COPage Dom DomUtil ILIAS\COPage\Page\PageManager::$dom_util
protected

Definition at line 28 of file class.PageManager.php.


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