ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilStudyProgrammeAutoMembershipSource Class Reference

Class ilStudyProgrammeAutoMembershipSource. More...

+ Collaboration diagram for ilStudyProgrammeAutoMembershipSource:

Public Member Functions

 __construct (int $prg_obj_id, string $source_type, int $source_id, bool $enabled, int $last_edited_usr_id, \DateTimeImmutable $last_edited)
 
 getPrgObjId ()
 
 getSourceType ()
 
 getSourceId ()
 
 isEnabled ()
 
 getLastEditorId ()
 
 getLastEdited ()
 

Data Fields

const TYPE_ROLE = 'role'
 
const TYPE_GROUP = 'grp'
 
const TYPE_COURSE = 'crs'
 
const TYPE_ORGU = 'orgu'
 
const SOURCE_MAPPING
 

Protected Attributes

 $prg_obj_id
 
 $source_type
 
 $source_id
 
 $enabled
 
 $last_edited_usr_id
 
 $last_edited
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilStudyProgrammeAutoMembershipSource::__construct ( int  $prg_obj_id,
string  $source_type,
int  $source_id,
bool  $enabled,
int  $last_edited_usr_id,
\DateTimeImmutable  $last_edited 
)

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

References $enabled, $last_edited, $last_edited_usr_id, $prg_obj_id, $source_id, and $source_type.

62  {
63  if (!in_array($source_type, [
64  self::TYPE_ROLE,
65  self::TYPE_GROUP,
66  self::TYPE_COURSE,
67  self::TYPE_ORGU
68  ])) {
69  throw new \InvalidArgumentException("Invalid source-type: " . $source_type, 1);
70  }
71 
72  $this->prg_obj_id = $prg_obj_id;
73  $this->source_type = $source_type;
74  $this->source_id = $source_id;
75  $this->enabled = $enabled;
76  $this->last_edited_usr_id = $last_edited_usr_id;
77  $this->last_edited = $last_edited;
78  }

Member Function Documentation

◆ getLastEdited()

ilStudyProgrammeAutoMembershipSource::getLastEdited ( )

Definition at line 105 of file class.ilStudyProgrammeAutoMembershipSource.php.

References $last_edited.

105  : \DateTimeImmutable
106  {
107  return $this->last_edited;
108  }

◆ getLastEditorId()

ilStudyProgrammeAutoMembershipSource::getLastEditorId ( )

◆ getPrgObjId()

ilStudyProgrammeAutoMembershipSource::getPrgObjId ( )

Definition at line 80 of file class.ilStudyProgrammeAutoMembershipSource.php.

References $prg_obj_id.

Referenced by ilStudyProgrammeAutoMembershipsDBRepository\update().

+ Here is the caller graph for this function:

◆ getSourceId()

ilStudyProgrammeAutoMembershipSource::getSourceId ( )

◆ getSourceType()

ilStudyProgrammeAutoMembershipSource::getSourceType ( )

◆ isEnabled()

ilStudyProgrammeAutoMembershipSource::isEnabled ( )

Definition at line 95 of file class.ilStudyProgrammeAutoMembershipSource.php.

References $enabled.

Referenced by ilStudyProgrammeAutoMembershipsDBRepository\update().

+ Here is the caller graph for this function:

Field Documentation

◆ $enabled

ilStudyProgrammeAutoMembershipSource::$enabled
protected

Definition at line 43 of file class.ilStudyProgrammeAutoMembershipSource.php.

Referenced by __construct(), and isEnabled().

◆ $last_edited

ilStudyProgrammeAutoMembershipSource::$last_edited
protected

Definition at line 53 of file class.ilStudyProgrammeAutoMembershipSource.php.

Referenced by __construct(), and getLastEdited().

◆ $last_edited_usr_id

ilStudyProgrammeAutoMembershipSource::$last_edited_usr_id
protected

Definition at line 48 of file class.ilStudyProgrammeAutoMembershipSource.php.

Referenced by __construct(), and getLastEditorId().

◆ $prg_obj_id

ilStudyProgrammeAutoMembershipSource::$prg_obj_id
protected

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

Referenced by __construct(), and getPrgObjId().

◆ $source_id

ilStudyProgrammeAutoMembershipSource::$source_id
protected

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

Referenced by __construct(), and getSourceId().

◆ $source_type

ilStudyProgrammeAutoMembershipSource::$source_type
protected

Definition at line 33 of file class.ilStudyProgrammeAutoMembershipSource.php.

Referenced by __construct(), and getSourceType().

◆ SOURCE_MAPPING

◆ TYPE_COURSE

◆ TYPE_GROUP

◆ TYPE_ORGU

◆ TYPE_ROLE


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