ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilUserStartingPoint Class Reference
+ Collaboration diagram for ilUserStartingPoint:

Public Member Functions

 __construct (private ?int $id, private ?int $starting_point_type=null, private int $starting_object=0, private ?int $starting_position=null, private ?int $rule_type=null, private ?string $rule_options=null, private int $calendar_view=0, private int $calendar_period=0)
 
 getId ()
 
 setStartingPointType (int $starting_point_type)
 
 getStartingPointType ()
 
 setStartingObject (int $a_starting_object)
 
 getStartingObject ()
 
 setPosition (int $a_starting_position)
 
 getPosition ()
 
 getRuleType ()
 
 isRoleBasedStartingPoint ()
 
 setRuleTypeRoleBased ()
 
 getCalendarView ()
 Gets calendar view. More...
 
 setCalendarView (int $calendar_view)
 Sets calendar view. More...
 
 getCalendarPeriod ()
 
 setCalendarPeriod (int $calendar_period)
 
 getRuleOptions ()
 
 setRuleOptions (string $a_rule_options)
 

Private Attributes

const ROLE_BASED = 2
 

Detailed Description

Definition at line 21 of file class.ilUserStartingPoint.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserStartingPoint::__construct ( private ?int  $id,
private ?int  $starting_point_type = null,
private int  $starting_object = 0,
private ?int  $starting_position = null,
private ?int  $rule_type = null,
private ?string  $rule_options = null,
private int  $calendar_view = 0,
private int  $calendar_period = 0 
)

Definition at line 25 of file class.ilUserStartingPoint.php.

34  {
35  }

Member Function Documentation

◆ getCalendarPeriod()

ilUserStartingPoint::getCalendarPeriod ( )

Definition at line 103 of file class.ilUserStartingPoint.php.

Referenced by ilUserStartingPointGUI\getCalenderSubInputs(), ilUserStartingPointRepository\save(), ilUserStartingPointRepository\setSystemDefaultStartingPoint(), and ilUserStartingPointRepository\update().

103  : int
104  {
105  return $this->calendar_period;
106  }
+ Here is the caller graph for this function:

◆ getCalendarView()

ilUserStartingPoint::getCalendarView ( )

Gets calendar view.

Definition at line 90 of file class.ilUserStartingPoint.php.

Referenced by ilUserStartingPointGUI\getCalenderSubInputs(), ilUserStartingPointRepository\save(), ilUserStartingPointRepository\setSystemDefaultStartingPoint(), and ilUserStartingPointRepository\update().

90  : int
91  {
92  return $this->calendar_view;
93  }
+ Here is the caller graph for this function:

◆ getId()

ilUserStartingPoint::getId ( )

Definition at line 37 of file class.ilUserStartingPoint.php.

References $id.

Referenced by ilUserStartingPointRepository\save(), and ilUserStartingPointRepository\update().

37  : ?int
38  {
39  return $this->id;
40  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the caller graph for this function:

◆ getPosition()

ilUserStartingPoint::getPosition ( )

Definition at line 67 of file class.ilUserStartingPoint.php.

Referenced by ilUserStartingPointRepository\update().

67  : int
68  {
69  return $this->starting_position;
70  }
+ Here is the caller graph for this function:

◆ getRuleOptions()

ilUserStartingPoint::getRuleOptions ( )

Definition at line 113 of file class.ilUserStartingPoint.php.

Referenced by ilUserStartingPointRepository\save(), and ilUserStartingPointRepository\update().

113  : ?string
114  {
115  return $this->rule_options;
116  }
+ Here is the caller graph for this function:

◆ getRuleType()

ilUserStartingPoint::getRuleType ( )

Definition at line 72 of file class.ilUserStartingPoint.php.

Referenced by ilUserStartingPointRepository\save(), and ilUserStartingPointRepository\update().

72  : ?int
73  {
74  return $this->rule_type;
75  }
+ Here is the caller graph for this function:

◆ getStartingObject()

ilUserStartingPoint::getStartingObject ( )

Definition at line 57 of file class.ilUserStartingPoint.php.

Referenced by ilUserStartingPointGUI\getRepositoryObjectInput(), ilUserStartingPointRepository\save(), ilUserStartingPointRepository\setSystemDefaultStartingPoint(), and ilUserStartingPointRepository\update().

57  : int
58  {
59  return $this->starting_object;
60  }
+ Here is the caller graph for this function:

◆ getStartingPointType()

ilUserStartingPoint::getStartingPointType ( )

Definition at line 47 of file class.ilUserStartingPoint.php.

Referenced by ilUserStartingPointGUI\getCurrentTypeForStartingPointForm(), ilUserStartingPointRepository\save(), ilUserStartingPointRepository\setSystemDefaultStartingPoint(), and ilUserStartingPointRepository\update().

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

◆ isRoleBasedStartingPoint()

ilUserStartingPoint::isRoleBasedStartingPoint ( )

Definition at line 77 of file class.ilUserStartingPoint.php.

77  : bool
78  {
79  return $this->rule_type === self::ROLE_BASED;
80  }

◆ setCalendarPeriod()

ilUserStartingPoint::setCalendarPeriod ( int  $calendar_period)

Definition at line 108 of file class.ilUserStartingPoint.php.

108  : void
109  {
110  $this->calendar_period = $calendar_period;
111  }

◆ setCalendarView()

ilUserStartingPoint::setCalendarView ( int  $calendar_view)

Sets calendar view.

Definition at line 98 of file class.ilUserStartingPoint.php.

98  : void
99  {
100  $this->calendar_view = $calendar_view;
101  }

◆ setPosition()

ilUserStartingPoint::setPosition ( int  $a_starting_position)

Definition at line 62 of file class.ilUserStartingPoint.php.

62  : void
63  {
64  $this->starting_position = $a_starting_position;
65  }

◆ setRuleOptions()

ilUserStartingPoint::setRuleOptions ( string  $a_rule_options)

Definition at line 118 of file class.ilUserStartingPoint.php.

118  : void
119  {
120  $this->rule_options = $a_rule_options;
121  }

◆ setRuleTypeRoleBased()

ilUserStartingPoint::setRuleTypeRoleBased ( )

Definition at line 82 of file class.ilUserStartingPoint.php.

82  : void
83  {
84  $this->rule_type = self::ROLE_BASED;
85  }

◆ setStartingObject()

ilUserStartingPoint::setStartingObject ( int  $a_starting_object)

Definition at line 52 of file class.ilUserStartingPoint.php.

52  : void
53  {
54  $this->starting_object = $a_starting_object;
55  }

◆ setStartingPointType()

ilUserStartingPoint::setStartingPointType ( int  $starting_point_type)

Definition at line 42 of file class.ilUserStartingPoint.php.

42  : void
43  {
44  $this->starting_point_type = $starting_point_type;
45  }

Field Documentation

◆ ROLE_BASED

const ilUserStartingPoint::ROLE_BASED = 2
private

Definition at line 23 of file class.ilUserStartingPoint.php.


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