ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\LearningSequence\Content\Adaptive\LSOItemVisits Class Reference

Removes entries of the visit log of the learners (lso_item_visits). More...

+ Collaboration diagram for ILIAS\LearningSequence\Content\Adaptive\LSOItemVisits:

Public Member Functions

 __construct (protected ilDBInterface $db)
 
 reset (int $usr_id, int $lso_obj_id)
 Removes all visits of a learner in a learning sequence. More...
 
 deleteForItemRefId (int $lso_obj_id, int $ref_id)
 Removes all visits of an object of a learning sequence. More...
 

Detailed Description

Removes entries of the visit log of the learners (lso_item_visits).

The entries are written by LSOLearningMapPosition.

Definition at line 30 of file LSOItemVisits.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LearningSequence\Content\Adaptive\LSOItemVisits::__construct ( protected ilDBInterface  $db)

Definition at line 32 of file LSOItemVisits.php.

34 {
35 }

Member Function Documentation

◆ deleteForItemRefId()

ILIAS\LearningSequence\Content\Adaptive\LSOItemVisits::deleteForItemRefId ( int  $lso_obj_id,
int  $ref_id 
)

Removes all visits of an object of a learning sequence.

Definition at line 52 of file LSOItemVisits.php.

52 : void
53 {
54 $this->db->manipulateF(
55 'DELETE FROM ' . LSOLearningMapPosition::VISITS_TABLE . ' WHERE lso_obj_id = %s AND ref_id = %s',
56 ['integer', 'integer'],
57 [$lso_obj_id, $ref_id]
58 );
59 }

References ILIAS\LearningSequence\LearningMap\LSOLearningMapPosition\VISITS_TABLE.

◆ reset()

ILIAS\LearningSequence\Content\Adaptive\LSOItemVisits::reset ( int  $usr_id,
int  $lso_obj_id 
)

Removes all visits of a learner in a learning sequence.

Definition at line 40 of file LSOItemVisits.php.

40 : void
41 {
42 $this->db->manipulateF(
43 'DELETE FROM ' . LSOLearningMapPosition::VISITS_TABLE . ' WHERE usr_id = %s AND lso_obj_id = %s',
44 ['integer', 'integer'],
45 [$usr_id, $lso_obj_id]
46 );
47 }

References ILIAS\LearningSequence\LearningMap\LSOLearningMapPosition\VISITS_TABLE.


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