19 declare(strict_types=1);
43 if (null === self::$instance) {
44 $lng = $lng ?? $DIC[
'lng'];
46 self::$instance =
new self(
$lng);
49 return self::$instance;
54 self::$instance = null;
63 return self::$validStates ?? (self::$validStates = [
78 if ($state->isInitial()) {
88 $stateClass = get_class($state);
89 $class = $stateClass .
'TableFilterMapper';
91 return new $class($this->
lng, $state);
98 $stateClass = get_class($relation->
getState());
99 $class = $stateClass .
'ButtonRenderer';
101 return new $class($ownerId, $relation);
static getInstance(?ilLanguage $lng=null)
Class ilBuddySystemIgnoredRequestRelationState.
static array $stateOptions
getValidStates()
Get all valid states.
Class ilBuddySystemRelationStateFactory.
Class ilBuddySystemUnlinkedRelationState.
Class ilBuddySystemException.
getStateButtonRendererByOwnerAndRelation(int $ownerId, ilBuddySystemRelation $relation)
static array $validStates
Class ilBuddySystemLinkedState.
getTableFilterStateMapper(ilBuddySystemRelationState $state)
Class ilBuddySystemRequestedRelationState.
__construct(ilLanguage $lng)
Interface ilBuddySystemRelationState.