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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilOrgUnitOperationContext:

Public Member Functions

 __construct (?int $id=0)
 
 getId ()
 
 getContext ()
 
 withContext (string $context)
 
 getParentContextId ()
 
 withParentContextId (int $parent_context_id)
 
 getPathNames ()
 
 withPathNames (array $path_names)
 
 getPathIds ()
 
 withPathIds (array $path_ids)
 
 getPopulatedContextNames ()
 
 getPopulatedContextIds ()
 

Data Fields

const CONTEXT_OBJECT = "object"
 
const CONTEXT_CRS = "crs"
 
const CONTEXT_GRP = "grp"
 
const CONTEXT_IASS = "iass"
 
const CONTEXT_TST = "tst"
 
const CONTEXT_EXC = "exc"
 
const CONTEXT_SVY = "svy"
 
const CONTEXT_USRF = "usrf"
 
const CONTEXT_PRG = "prg"
 
const CONTEXT_ETAL = "etal"
 

Static Public Attributes

static array $available_contexts
 

Protected Attributes

int $id = 0
 
string $context = self::CONTEXT_OBJECT
 
int $parent_context_id = 0
 
array $path_names = [self::CONTEXT_OBJECT]
 
array $path_ids = [0]
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitOperationContext

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 24 of file class.ilOrgUnitOperationContext.php.

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitOperationContext::__construct ( ?int  $id = 0)

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

References $id.

60  {
61  $this->id = $id;
62  $this->path_ids = [$id];
63  }

Member Function Documentation

◆ getContext()

ilOrgUnitOperationContext::getContext ( )

Definition at line 70 of file class.ilOrgUnitOperationContext.php.

References $context.

Referenced by ilOrgUnitOperationContextDBRepository\insert(), ilOrgUnitOperationContextDBRepository\store(), and ilOrgUnitOperationContextDBRepository\update().

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

◆ getId()

ilOrgUnitOperationContext::getId ( )

◆ getParentContextId()

ilOrgUnitOperationContext::getParentContextId ( )

◆ getPathIds()

ilOrgUnitOperationContext::getPathIds ( )

Definition at line 106 of file class.ilOrgUnitOperationContext.php.

References $path_ids.

Referenced by ilOrgUnitOperationContextDBRepository\appendPath(), and getPopulatedContextIds().

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

◆ getPathNames()

ilOrgUnitOperationContext::getPathNames ( )

Definition at line 94 of file class.ilOrgUnitOperationContext.php.

References $path_names.

Referenced by ilOrgUnitOperationContextDBRepository\appendPath(), and getPopulatedContextNames().

94  : array
95  {
96  return $this->path_names;
97  }
+ Here is the caller graph for this function:

◆ getPopulatedContextIds()

ilOrgUnitOperationContext::getPopulatedContextIds ( )
Deprecated:
Please use getPathIds()
Returns
int[]

Definition at line 133 of file class.ilOrgUnitOperationContext.php.

References getPathIds().

133  : array
134  {
135  return $this->getPathIds();
136  }
+ Here is the call graph for this function:

◆ getPopulatedContextNames()

ilOrgUnitOperationContext::getPopulatedContextNames ( )
Deprecated:
Please use getPathNames()
Returns
string[]

Definition at line 122 of file class.ilOrgUnitOperationContext.php.

References getPathNames().

122  : array
123  {
124  return $this->getPathNames();
125  }
+ Here is the call graph for this function:

◆ withContext()

ilOrgUnitOperationContext::withContext ( string  $context)

Definition at line 75 of file class.ilOrgUnitOperationContext.php.

References $context.

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

◆ withParentContextId()

ilOrgUnitOperationContext::withParentContextId ( int  $parent_context_id)

Definition at line 87 of file class.ilOrgUnitOperationContext.php.

References $parent_context_id.

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

◆ withPathIds()

ilOrgUnitOperationContext::withPathIds ( array  $path_ids)

Definition at line 111 of file class.ilOrgUnitOperationContext.php.

References $path_ids.

111  : self
112  {
113  $clone = clone $this;
114  $clone->path_ids = $path_ids;
115  return $clone;
116  }

◆ withPathNames()

ilOrgUnitOperationContext::withPathNames ( array  $path_names)

Definition at line 99 of file class.ilOrgUnitOperationContext.php.

References $path_names.

Referenced by ilOrgUnitOperationContextDBRepository\appendPath(), and ilOrgUnitOperationContextDBRepository\store().

99  : self
100  {
101  $clone = clone $this;
102  $clone->path_names = $path_names;
103  return $clone;
104  }
+ Here is the caller graph for this function:

Field Documentation

◆ $available_contexts

array ilOrgUnitOperationContext::$available_contexts
static
Initial value:
= [
self::CONTEXT_OBJECT,
self::CONTEXT_CRS,
self::CONTEXT_GRP,
self::CONTEXT_IASS,
self::CONTEXT_TST,
self::CONTEXT_EXC,
self::CONTEXT_SVY,
self::CONTEXT_USRF,
self::CONTEXT_PRG,
self::CONTEXT_ETAL,
]

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

Referenced by ILIAS\MyStaff\ilMyStaffAccess\getIdsForPositionAndOperation().

◆ $context

string ilOrgUnitOperationContext::$context = self::CONTEXT_OBJECT
protected

Definition at line 54 of file class.ilOrgUnitOperationContext.php.

Referenced by getContext(), and withContext().

◆ $id

int ilOrgUnitOperationContext::$id = 0
protected

Definition at line 53 of file class.ilOrgUnitOperationContext.php.

Referenced by __construct(), and getId().

◆ $parent_context_id

int ilOrgUnitOperationContext::$parent_context_id = 0
protected

Definition at line 55 of file class.ilOrgUnitOperationContext.php.

Referenced by getParentContextId(), and withParentContextId().

◆ $path_ids

array ilOrgUnitOperationContext::$path_ids = [0]
protected

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

Referenced by getPathIds(), and withPathIds().

◆ $path_names

array ilOrgUnitOperationContext::$path_names = [self::CONTEXT_OBJECT]
protected

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

Referenced by getPathNames(), and withPathNames().

◆ CONTEXT_CRS

const ilOrgUnitOperationContext::CONTEXT_CRS = "crs"

◆ CONTEXT_ETAL

const ilOrgUnitOperationContext::CONTEXT_ETAL = "etal"

◆ CONTEXT_EXC

const ilOrgUnitOperationContext::CONTEXT_EXC = "exc"

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

◆ CONTEXT_GRP

const ilOrgUnitOperationContext::CONTEXT_GRP = "grp"

Definition at line 28 of file class.ilOrgUnitOperationContext.php.

◆ CONTEXT_IASS

const ilOrgUnitOperationContext::CONTEXT_IASS = "iass"

Definition at line 29 of file class.ilOrgUnitOperationContext.php.

◆ CONTEXT_OBJECT

◆ CONTEXT_PRG

const ilOrgUnitOperationContext::CONTEXT_PRG = "prg"

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

◆ CONTEXT_SVY

const ilOrgUnitOperationContext::CONTEXT_SVY = "svy"

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

◆ CONTEXT_TST

const ilOrgUnitOperationContext::CONTEXT_TST = "tst"

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

◆ CONTEXT_USRF

const ilOrgUnitOperationContext::CONTEXT_USRF = "usrf"

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


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