ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

Referenced by ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEdited().

85  {
86  return $this->last_edited;
87  }
+ Here is the caller graph for this function:

◆ getLastEditorId()

ilStudyProgrammeAutoMembershipSource::getLastEditorId ( )

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

Referenced by ilStudyProgrammeAutoMembershipsSourceTest\testGetLastEditorId().

79  : int
80  {
81  return $this->last_edited_usr_id;
82  }
+ Here is the caller graph for this function:

◆ getPrgObjId()

ilStudyProgrammeAutoMembershipSource::getPrgObjId ( )

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

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

59  : int
60  {
61  return $this->prg_obj_id;
62  }
+ Here is the caller graph for this function:

◆ getSourceId()

ilStudyProgrammeAutoMembershipSource::getSourceId ( )

◆ getSourceType()

ilStudyProgrammeAutoMembershipSource::getSourceType ( )

◆ isEnabled()

ilStudyProgrammeAutoMembershipSource::isEnabled ( )

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

Referenced by ilStudyProgrammeAutoMembershipsDBRepository\update().

74  : bool
75  {
76  return $this->enabled;
77  }
+ Here is the caller graph for this function:

◆ isSearchRecursive()

ilStudyProgrammeAutoMembershipSource::isSearchRecursive ( )

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

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

89  : bool
90  {
91  return $this->search_recursive;
92  }
+ 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: