ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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

References $id.

Member Function Documentation

◆ __toString()

ilOrgUnitPosition::__toString ( )

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

46 : string
47 {
48 return $this->getTitle();
49 }

References getTitle().

+ Here is the call graph for this function:

◆ getAuthorities()

ilOrgUnitPosition::getAuthorities ( )
Returns
ilOrgUnitAuthority[]

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

107 : array
108 {
109 return $this->authorities;
110 }

References $authorities.

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

+ 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.

92 : int
93 {
95 }

References $core_identifier.

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

+ Here is the caller graph for this function:

◆ getDescription()

ilOrgUnitPosition::getDescription ( )

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

68 : string
69 {
70 return $this->description;
71 }

References $description.

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

+ Here is the caller graph for this function:

◆ getId()

ilOrgUnitPosition::getId ( )

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

51 : int
52 {
53 return $this->id;
54 }

References $id.

Referenced by ilOrgUnitPositionFormGUI\__construct(), ilObjOrgUnitTree\getAssignements(), ilOrgUnitPositionDBRepository\store(), and ilOrgUnitPositionDBRepository\update().

+ Here is the caller graph for this function:

◆ getTitle()

ilOrgUnitPosition::getTitle ( )

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

56 : string
57 {
58 return $this->title;
59 }

References $title.

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

+ Here is the caller graph for this function:

◆ isCorePosition()

ilOrgUnitPosition::isCorePosition ( )

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

80 : bool
81 {
83 }

References $core_position.

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

+ 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.

130 : self
131 {
132 $clone = clone $this;
133 $clone->authorities = $authorities;
134 return $clone;
135 }

References $authorities.

Referenced by ilOrgUnitPositionDBRepository\store().

+ Here is the caller graph for this function:

◆ withCoreIdentifier()

ilOrgUnitPosition::withCoreIdentifier ( int  $core_identifier)

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

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

References $core_identifier.

◆ withCorePosition()

ilOrgUnitPosition::withCorePosition ( bool  $core_position)

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

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

References $core_position.

◆ withDescription()

ilOrgUnitPosition::withDescription ( string  $description)

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

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

References $description.

◆ withTitle()

ilOrgUnitPosition::withTitle ( string  $title)

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

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

References $title.

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: