ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
PRGProgressId Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for PRGProgressId:

Public Member Functions

 __construct (int $ass_id, int $usr_id, int $node_obj_id)
 
 getAssignmentId ()
 
 getUsrId ()
 
 getNodeId ()
 
 __toString ()
 

Static Public Member Functions

static createFromString (string $id)
 

Data Fields

const DELIMITER = '_'
 

Protected Attributes

int $ass_id
 
int $usr_id
 
int $node_obj_id
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 21 of file PRGProgressId.php.

Constructor & Destructor Documentation

◆ __construct()

PRGProgressId::__construct ( int  $ass_id,
int  $usr_id,
int  $node_obj_id 
)

Definition at line 29 of file PRGProgressId.php.

References $ass_id, $node_obj_id, and $usr_id.

30  {
31  $this->ass_id = $ass_id;
32  $this->usr_id = $usr_id;
33  $this->node_obj_id = $node_obj_id;
34  }

Member Function Documentation

◆ __toString()

PRGProgressId::__toString ( )

Definition at line 57 of file PRGProgressId.php.

57  : string
58  {
59  return implode(self::DELIMITER, [$this->ass_id, $this->usr_id, $this->node_obj_id]);
60  }

◆ createFromString()

static PRGProgressId::createFromString ( string  $id)
static

Definition at line 36 of file PRGProgressId.php.

Referenced by ilObjStudyProgrammeMembersGUI\getGetPrgsIds(), ilObjStudyProgrammeMembersGUI\getPostPrgsIds(), ilObjStudyProgrammeMembersGUI\getPrgrsId(), and ilStudyProgrammeProgressIdTest\testPRGProgressIdFromString().

36  : self
37  {
38  $id = array_map('intval', explode(self::DELIMITER, $id));
39  return new self(...$id);
40  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the caller graph for this function:

◆ getAssignmentId()

PRGProgressId::getAssignmentId ( )

Definition at line 42 of file PRGProgressId.php.

References $ass_id.

Referenced by ilObjStudyProgrammeMembersGUI\markAccreditedByProgressId(), ilObjStudyProgrammeMembersGUI\removeAssignment(), and ilObjStudyProgrammeMembersGUI\unmarkAccreditedByProgressId().

42  : int
43  {
44  return $this->ass_id;
45  }
+ Here is the caller graph for this function:

◆ getNodeId()

PRGProgressId::getNodeId ( )

Definition at line 52 of file PRGProgressId.php.

References $node_obj_id.

52  : int
53  {
54  return $this->node_obj_id;
55  }

◆ getUsrId()

PRGProgressId::getUsrId ( )

Definition at line 47 of file PRGProgressId.php.

References $usr_id.

Referenced by ilObjStudyProgrammeMembersGUI\markAccreditedByProgressId(), ilObjStudyProgrammeMembersGUI\removeAssignment(), and ilObjStudyProgrammeMembersGUI\unmarkAccreditedByProgressId().

47  : int
48  {
49  return $this->usr_id;
50  }
+ Here is the caller graph for this function:

Field Documentation

◆ $ass_id

int PRGProgressId::$ass_id
protected

Definition at line 25 of file PRGProgressId.php.

Referenced by __construct(), and getAssignmentId().

◆ $node_obj_id

int PRGProgressId::$node_obj_id
protected

Definition at line 27 of file PRGProgressId.php.

Referenced by __construct(), and getNodeId().

◆ $usr_id

int PRGProgressId::$usr_id
protected

Definition at line 26 of file PRGProgressId.php.

Referenced by __construct(), and getUsrId().

◆ DELIMITER

const PRGProgressId::DELIMITER = '_'

Definition at line 23 of file PRGProgressId.php.


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