ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestLP Class Reference
+ Inheritance diagram for ilTestLP:
+ Collaboration diagram for ilTestLP:

Public Member Functions

 getDefaultMode ()
 
 getValidModes ()
 
 isAnonymized ()
 
- Public Member Functions inherited from ilObjectLP
 resetCaches ()
 
 isAnonymized ()
 
 getDefaultMode ()
 
 getValidModes ()
 
 getCurrentMode ()
 
 isActive ()
 
 getModeText ($a_mode)
 
 getModeInfoText ($a_mode)
 
 getCollectionInstance ()
 
 getMembers ($a_search=true)
 
 resetLPDataForCompleteObject ($a_recursive=true)
 
 resetLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
 handleToTrash ()
 
 handleDelete ()
 

Protected Member Functions

 resetCustomLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
- Protected Member Functions inherited from ilObjectLP
 __construct ($a_obj_id)
 
 resetCustomLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
 gatherLPUsers ()
 
 updateParentCollections ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectLP
static getInstance ($a_obj_id)
 
static handleMove ($a_source_ref_id)
 
- Protected Attributes inherited from ilObjectLP
 $obj_id
 
 $collection_instance
 
 $mode
 

Detailed Description

Definition at line 13 of file class.ilTestLP.php.

Member Function Documentation

◆ getDefaultMode()

ilTestLP::getDefaultMode ( )

Definition at line 15 of file class.ilTestLP.php.

References ilLPObjSettings\LP_MODE_TEST_PASSED.

16  {
18  }

◆ getValidModes()

◆ isAnonymized()

ilTestLP::isAnonymized ( )

Definition at line 29 of file class.ilTestLP.php.

References ilObjTest\_lookupAnonymity().

30  {
31  include_once './Modules/Test/classes/class.ilObjTest.php';
32  return (bool)ilObjTest::_lookupAnonymity($this->obj_id);
33  }
_lookupAnonymity($a_obj_id)
Returns the anonymity status of a test with a given object id.
+ Here is the call graph for this function:

◆ resetCustomLPDataForUserIds()

ilTestLP::resetCustomLPDataForUserIds ( array  $a_user_ids,
  $a_recursive = true 
)
protected

Definition at line 35 of file class.ilTestLP.php.

References ilObjectFactory\getInstanceByObjId().

36  {
37  require_once 'Services/Object/classes/class.ilObjectFactory.php';
38  $testOBJ = ilObjectFactory::getInstanceByObjId($this->obj_id);
39 
40  $testOBJ->removeTestResultsByUserIds($a_user_ids);
41  }
getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
+ Here is the call graph for this function:

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