19 declare(strict_types=1);
39 if (
null === self::$instance) {
42 self::$instance =
new self(
$lng);
45 return self::$instance;
50 self::$instance =
null;
59 return self::$validStates ?? (self::$validStates = [
73 if ($state->isInitial()) {
83 $stateClass = $state::class;
84 $class = $stateClass .
'TableFilterMapper';
86 return new $class($this->
lng, $state);
93 $stateClass = $relation->
getState()::class;
94 $class = $stateClass .
'ButtonRenderer';
96 return new $class($ownerId, $relation);
static getInstance(?ilLanguage $lng=null)
Class ilBuddySystemIgnoredRequestRelationState.
__construct(protected ilLanguage $lng)
getValidStates()
Get all valid states.
Class ilBuddySystemRelationStateFactory.
Class ilBuddySystemUnlinkedRelationState.
Class ilBuddySystemException.
getStateButtonRendererByOwnerAndRelation(int $ownerId, ilBuddySystemRelation $relation)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static array $validStates
Class ilBuddySystemLinkedState.
getTableFilterStateMapper(ilBuddySystemRelationState $state)
Class ilBuddySystemRequestedRelationState.
Interface ilBuddySystemRelationState.