ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilUnitTestPageManager Class Reference
+ Inheritance diagram for ilUnitTestPageManager:
+ Collaboration diagram for ilUnitTestPageManager:

Public Member Functions

 __construct ()
 
 mockGet (ilPageObject $page_object)
 
 get (string $parent_type, int $id=0, int $old_nr=0, string $lang="-")
 
 lookupParentId (int $a_id, string $a_type)
 
 writeParentId (string $a_parent_type, int $a_pg_id, int $a_par_id)
 
 writeActive (int $page_id, string $parent_type, bool $active)
 
 lookupContainsDeactivatedElements (int $page_id, string $parent_type, string $lang="-")
 
 preloadActivationDataByParentId (int $parent_id)
 
 lookupActive (int $page_id, string $parent_type, bool $check_scheduled_activation=false, string $lang="-")
 
 isScheduledActivation (int $page_id, string $parent_type, string $lang="-")
 
 lookupActivationData (int $page_id, string $parent_type, string $lang="-")
 
 getParentObjectContributors (string $parent_type, int $parent_id, string $lang="-")
 
 getPageContributors (string $parent_type, int $page_id, string $lang="-")
 
 get (string $parent_type, int $id=0, int $old_nr=0, string $lang="-")
 
 lookupParentId (int $a_id, string $a_type)
 
 writeParentId (string $a_parent_type, int $a_pg_id, int $a_par_id)
 
 writeActive (int $page_id, string $parent_type, bool $active)
 
 lookupContainsDeactivatedElements (int $page_id, string $parent_type, string $lang="-")
 
 preloadActivationDataByParentId (int $parent_id)
 
 lookupActive (int $page_id, string $parent_type, bool $check_scheduled_activation=false, string $lang="-")
 
 isScheduledActivation (int $page_id, string $parent_type, string $lang="-")
 
 lookupActivationData (int $page_id, string $parent_type, string $lang="-")
 
 getParentObjectContributors (string $parent_type, int $parent_id, string $lang="-")
 
 getPageContributors (string $parent_type, int $page_id, string $lang="-")
 

Protected Attributes

ilPageObject $test_get
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilUnitTestPageManager::__construct ( )

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

29 {
30 }

Member Function Documentation

◆ get()

ilUnitTestPageManager::get ( string  $parent_type,
int  $id = 0,
int  $old_nr = 0,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 38 of file class.ilUnitTestPageManager.php.

43 : ilPageObject {
44 return $this->test_get;
45 }
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)

◆ getPageContributors()

ilUnitTestPageManager::getPageContributors ( string  $parent_type,
int  $page_id,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 99 of file class.ilUnitTestPageManager.php.

103 : array {
104 return [];
105 }

◆ getParentObjectContributors()

ilUnitTestPageManager::getParentObjectContributors ( string  $parent_type,
int  $parent_id,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 91 of file class.ilUnitTestPageManager.php.

95 : array {
96 return [];
97 }

◆ isScheduledActivation()

ilUnitTestPageManager::isScheduledActivation ( int  $page_id,
string  $parent_type,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 81 of file class.ilUnitTestPageManager.php.

81 : bool
82 {
83 return false;
84 }

◆ lookupActivationData()

ilUnitTestPageManager::lookupActivationData ( int  $page_id,
string  $parent_type,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 86 of file class.ilUnitTestPageManager.php.

86 : array
87 {
88 return [];
89 }

◆ lookupActive()

ilUnitTestPageManager::lookupActive ( int  $page_id,
string  $parent_type,
bool  $check_scheduled_activation = false,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 72 of file class.ilUnitTestPageManager.php.

77 : bool {
78 return true;
79 }

◆ lookupContainsDeactivatedElements()

ilUnitTestPageManager::lookupContainsDeactivatedElements ( int  $page_id,
string  $parent_type,
string  $lang = "-" 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 60 of file class.ilUnitTestPageManager.php.

64 : bool {
65 return false;
66 }

◆ lookupParentId()

ilUnitTestPageManager::lookupParentId ( int  $a_id,
string  $a_type 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 47 of file class.ilUnitTestPageManager.php.

47 : int
48 {
49 return 0;
50 }

◆ mockGet()

ilUnitTestPageManager::mockGet ( ilPageObject  $page_object)

Definition at line 32 of file class.ilUnitTestPageManager.php.

34 : void {
35 $this->test_get = $page_object;
36 }

◆ preloadActivationDataByParentId()

ilUnitTestPageManager::preloadActivationDataByParentId ( int  $parent_id)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 68 of file class.ilUnitTestPageManager.php.

68 : void
69 {
70 }

◆ writeActive()

ilUnitTestPageManager::writeActive ( int  $page_id,
string  $parent_type,
bool  $active 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 56 of file class.ilUnitTestPageManager.php.

56 : void
57 {
58 }

◆ writeParentId()

ilUnitTestPageManager::writeParentId ( string  $a_parent_type,
int  $a_pg_id,
int  $a_par_id 
)

Implements ILIAS\COPage\Page\PageManagerInterface.

Definition at line 52 of file class.ilUnitTestPageManager.php.

52 : void
53 {
54 }

Field Documentation

◆ $test_get

ilPageObject ilUnitTestPageManager::$test_get
protected

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


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