ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilStudyProgrammeAutoMembershipSource Class Reference

Class ilStudyProgrammeAutoMembershipSource. More...

+ Collaboration diagram for ilStudyProgrammeAutoMembershipSource:

Public Member Functions

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

Data Fields

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

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

48 {
49 if (!in_array($source_type, [
50 self::TYPE_ROLE,
51 self::TYPE_GROUP,
52 self::TYPE_COURSE,
53 self::TYPE_ORGU
54 ])) {
55 throw new InvalidArgumentException("Invalid source-type: " . $source_type, 1);
56 }
57 }

Member Function Documentation

◆ getLastEdited()

ilStudyProgrammeAutoMembershipSource::getLastEdited ( )

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

84 : DateTimeImmutable
85 {
86 return $this->last_edited;
87 }

Referenced by ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEdited().

+ Here is the caller graph for this function:

◆ getLastEditorId()

ilStudyProgrammeAutoMembershipSource::getLastEditorId ( )

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

79 : int
80 {
81 return $this->last_edited_usr_id;
82 }

Referenced by ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEditorId().

+ Here is the caller graph for this function:

◆ getPrgObjId()

ilStudyProgrammeAutoMembershipSource::getPrgObjId ( )

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

59 : int
60 {
61 return $this->prg_obj_id;
62 }

Referenced by ilStudyProgrammeAutoMembershipsSourceTest\testGetPrgObjId(), and ilStudyProgrammeAutoMembershipsDBRepository\update().

+ Here is the caller graph for this function:

◆ getSourceId()

ilStudyProgrammeAutoMembershipSource::getSourceId ( )

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

69 : int
70 {
71 return $this->source_id;
72 }

Referenced by ilStudyProgrammeMembershipSourceReaderFactory\getReaderFor(), ilStudyProgrammeAutoMembershipsSourceTest\testGetSourceId(), and ilStudyProgrammeAutoMembershipsDBRepository\update().

+ Here is the caller graph for this function:

◆ getSourceType()

ilStudyProgrammeAutoMembershipSource::getSourceType ( )

◆ isEnabled()

ilStudyProgrammeAutoMembershipSource::isEnabled ( )

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

74 : bool
75 {
76 return $this->enabled;
77 }

Referenced by ilStudyProgrammeAutoMembershipsDBRepository\update().

+ Here is the caller graph for this function:

◆ isSearchRecursive()

ilStudyProgrammeAutoMembershipSource::isSearchRecursive ( )

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

89 : bool
90 {
91 return $this->search_recursive;
92 }

Referenced by ilStudyProgrammeMembershipSourceReaderFactory\getReaderFor(), and ilStudyProgrammeAutoMembershipsDBRepository\update().

+ Here is the caller graph for this function:

Field Documentation

◆ SOURCE_MAPPING

◆ TYPE_COURSE

◆ TYPE_GROUP

◆ TYPE_ORGU

◆ TYPE_ROLE


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