ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilOrgUnitPosition Class Reference

Class ilOrgUnitPosition. More...

+ Collaboration diagram for ilOrgUnitPosition:

Public Member Functions

 __construct ($id=0)
 
 __toString ()
 
 getId ()
 
 getTitle ()
 
 withTitle (string $title)
 
 getDescription ()
 
 withDescription (string $description)
 
 isCorePosition ()
 
 withCorePosition (bool $core_position)
 
 getCoreIdentifier ()
 
 withCoreIdentifier (int $core_identifier)
 
 getAuthorities ()
 
 getAuthoritiesAsArray ()
 
 withAuthorities (array $authorities)
 

Data Fields

const CORE_POSITION_EMPLOYEE = 1
 
const CORE_POSITION_SUPERIOR = 2
 

Protected Attributes

int $id
 
string $title = ""
 
string $description = ""
 
bool $core_position = false
 
int $core_identifier = 0
 
array $authorities = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitPosition::__construct (   $id = 0)

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

References $id.

43  {
44  $this->id = $id;
45  }

Member Function Documentation

◆ __toString()

ilOrgUnitPosition::__toString ( )

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

References getTitle().

47  : string
48  {
49  return $this->getTitle();
50  }
+ Here is the call graph for this function:

◆ getAuthorities()

ilOrgUnitPosition::getAuthorities ( )
Returns
ilOrgUnitAuthority[]

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

References $authorities.

Referenced by ilOrgUnitPositionDBRepository\insert(), and ilOrgUnitPositionDBRepository\store().

108  : array
109  {
110  return $this->authorities;
111  }
+ Here is the caller graph for this function:

◆ getAuthoritiesAsArray()

ilOrgUnitPosition::getAuthoritiesAsArray ( )

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

113  : array
114  {
115  $return = [];
116  foreach ($this->authorities as $authority) {
117  $return[] = [
118  'id' => $authority->getId(),
119  'over' => $authority->getOver(),
120  'scope' => $authority->getScope(),
121  'position_id' => $authority->getPositionId()
122  ];
123  }
124 
125  return $return;
126  }

◆ getCoreIdentifier()

ilOrgUnitPosition::getCoreIdentifier ( )

Definition at line 93 of file class.ilOrgUnitPosition.php.

References $core_identifier.

Referenced by ilOrgUnitPositionDBRepository\insert(), and ilOrgUnitPositionDBRepository\update().

93  : int
94  {
96  }
+ Here is the caller graph for this function:

◆ getDescription()

ilOrgUnitPosition::getDescription ( )

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

References $description.

Referenced by ilOrgUnitPositionDBRepository\insert(), and ilOrgUnitPositionDBRepository\update().

69  : string
70  {
71  return $this->description;
72  }
+ Here is the caller graph for this function:

◆ getId()

ilOrgUnitPosition::getId ( )

◆ getTitle()

ilOrgUnitPosition::getTitle ( )

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

References $title.

Referenced by __toString(), ilOrgUnitUserAssignmentGUI\getStaffTable(), ilOrgUnitPositionDBRepository\insert(), and ilOrgUnitPositionDBRepository\update().

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

◆ isCorePosition()

ilOrgUnitPosition::isCorePosition ( )

Definition at line 81 of file class.ilOrgUnitPosition.php.

References $core_position.

Referenced by ilOrgUnitPositionDBRepository\insert(), and ilOrgUnitPositionDBRepository\update().

81  : bool
82  {
83  return $this->core_position;
84  }
+ Here is the caller graph for this function:

◆ withAuthorities()

ilOrgUnitPosition::withAuthorities ( array  $authorities)
Parameters
ilOrgUnitAuthority[]$authorities

Definition at line 131 of file class.ilOrgUnitPosition.php.

References $authorities.

Referenced by ilOrgUnitPositionDBRepository\store().

131  : self
132  {
133  $clone = clone $this;
134  $clone->authorities = $authorities;
135  return $clone;
136  }
+ Here is the caller graph for this function:

◆ withCoreIdentifier()

ilOrgUnitPosition::withCoreIdentifier ( int  $core_identifier)

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

References $core_identifier.

98  : self
99  {
100  $clone = clone $this;
101  $clone->core_identifier = $core_identifier;
102  return $clone;
103  }

◆ withCorePosition()

ilOrgUnitPosition::withCorePosition ( bool  $core_position)

Definition at line 86 of file class.ilOrgUnitPosition.php.

References $core_position.

86  : self
87  {
88  $clone = clone $this;
89  $clone->core_position = $core_position;
90  return $clone;
91  }

◆ withDescription()

ilOrgUnitPosition::withDescription ( string  $description)

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

References $description.

74  : self
75  {
76  $clone = clone $this;
77  $clone->description = $description;
78  return $clone;
79  }

◆ withTitle()

ilOrgUnitPosition::withTitle ( string  $title)

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

References $title.

62  : self
63  {
64  $clone = clone $this;
65  $clone->title = $title;
66  return $clone;
67  }

Field Documentation

◆ $authorities

array ilOrgUnitPosition::$authorities = []
protected

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

Referenced by getAuthorities(), and withAuthorities().

◆ $core_identifier

int ilOrgUnitPosition::$core_identifier = 0
protected

Definition at line 35 of file class.ilOrgUnitPosition.php.

Referenced by getCoreIdentifier(), and withCoreIdentifier().

◆ $core_position

bool ilOrgUnitPosition::$core_position = false
protected

Definition at line 34 of file class.ilOrgUnitPosition.php.

Referenced by isCorePosition(), and withCorePosition().

◆ $description

string ilOrgUnitPosition::$description = ""
protected

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

Referenced by getDescription(), and withDescription().

◆ $id

int ilOrgUnitPosition::$id
protected

Definition at line 31 of file class.ilOrgUnitPosition.php.

Referenced by __construct(), and getId().

◆ $title

string ilOrgUnitPosition::$title = ""
protected

Definition at line 32 of file class.ilOrgUnitPosition.php.

Referenced by getTitle(), and withTitle().

◆ CORE_POSITION_EMPLOYEE

◆ CORE_POSITION_SUPERIOR


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