22 self::SCOPE_SAME_ORGU,
23 self::SCOPE_SUBSEQUENT_ORGUS,
42 return "il_orgu_authority";
64 protected $over = self::OVER_EVERYONE;
72 protected $scope = self::SCOPE_SAME_ORGU;
95 parent::__construct($primary_key, $connector);
96 if (!self::$name_render) {
97 self::$name_render =
function (
$id) {
109 self::$name_render = $closure;
118 $renderer = self::$name_render;
120 return $renderer($this->
getId());
130 'id' => $this->
getId(),
195 if (!in_array(
$scope, self::$scopes)) {
196 throw new ilException(
'Selected Scop in ' . self::class .
' not allowed');
static returnDbTableName()
__construct($primary_key=0, \arConnector $connector=null)
ilOrgUnitAuthority constructor.
setScope($scope)
This is either ilOrgUnitAuthority::SCOPE_SAME_ORGU, ilOrgUnitAuthority::SCOPE_ALL_ORGUS or ilOrgUnitA...
static replaceNameRenderer(Closure $closure)
setPositionId($position_id)
Create styles array
The data for the language used.
setOver($over)
This is either an ID of a position or ilOrgUnitAuthority::OVER_EVERYONE.
const SCOPE_SUBSEQUENT_ORGUS