ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 41 of file class.ilOrgUnitPosition.php.

References $id.

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

Member Function Documentation

◆ __toString()

ilOrgUnitPosition::__toString ( )

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

References getTitle().

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

◆ getAuthorities()

ilOrgUnitPosition::getAuthorities ( )
Returns
ilOrgUnitAuthority[]

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

References $authorities.

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

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

◆ getAuthoritiesAsArray()

ilOrgUnitPosition::getAuthoritiesAsArray ( )

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

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

◆ getCoreIdentifier()

ilOrgUnitPosition::getCoreIdentifier ( )

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

References $core_identifier.

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

92  : int
93  {
95  }
+ Here is the caller graph for this function:

◆ getDescription()

ilOrgUnitPosition::getDescription ( )

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

References $description.

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

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

◆ getId()

ilOrgUnitPosition::getId ( )

◆ getTitle()

ilOrgUnitPosition::getTitle ( )

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

References $title.

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

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

◆ isCorePosition()

ilOrgUnitPosition::isCorePosition ( )

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

References $core_position.

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

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

◆ withAuthorities()

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

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

References $authorities.

Referenced by ilOrgUnitPositionDBRepository\store().

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

◆ withCoreIdentifier()

ilOrgUnitPosition::withCoreIdentifier ( int  $core_identifier)

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

References $core_identifier.

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

◆ withCorePosition()

ilOrgUnitPosition::withCorePosition ( bool  $core_position)

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

References $core_position.

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

◆ withDescription()

ilOrgUnitPosition::withDescription ( string  $description)

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

References $description.

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

◆ withTitle()

ilOrgUnitPosition::withTitle ( string  $title)

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

References $title.

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

Field Documentation

◆ $authorities

array ilOrgUnitPosition::$authorities = []
protected

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

Referenced by getAuthorities(), and withAuthorities().

◆ $core_identifier

int ilOrgUnitPosition::$core_identifier = 0
protected

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

Referenced by getCoreIdentifier(), and withCoreIdentifier().

◆ $core_position

bool ilOrgUnitPosition::$core_position = false
protected

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

Referenced by isCorePosition(), and withCorePosition().

◆ $description

string ilOrgUnitPosition::$description = ""
protected

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

Referenced by getDescription(), and withDescription().

◆ $id

int ilOrgUnitPosition::$id
protected

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

Referenced by __construct(), and getId().

◆ $title

string ilOrgUnitPosition::$title = ""
protected

Definition at line 31 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: