ILIAS
release_8 Revision v8.19
|
Class ilBuddySystemRelation. More...
Public Member Functions | |
__construct (ilBuddySystemRelationState $state, int $usrId, int $buddyUsrId, bool $isOwnedByActor, int $timestamp) | |
setState (ilBuddySystemRelationState $state, bool $rememberPriorState=true) | |
getState () | |
getPriorState () | |
isOwnedByActor () | |
withIsOwnedByActor (bool $isOwnedByActor) | |
getBuddyUsrId () | |
withBuddyUsrId (int $buddyUsrId) | |
getUsrId () | |
withUsrId (int $usrId) | |
getTimestamp () | |
withTimestamp (int $timestamp) | |
getCurrentPossibleTargetStates () | |
link () | |
unlink () | |
request () | |
ignore () | |
isLinked () | |
isUnlinked () | |
isRequested () | |
isIgnored () | |
wasLinked () | |
wasUnlinked () | |
wasRequested () | |
wasIgnored () | |
Protected Attributes | |
ilBuddySystemRelationState | $state |
int | $usrId |
int | $buddyUsrId |
bool | $isOwnedByActor |
int | $timestamp |
ilBuddySystemRelationState | $priorState = null |
Private Member Functions | |
setPriorState (ilBuddySystemRelationState $prior_state) | |
Class ilBuddySystemRelation.
Definition at line 25 of file class.ilBuddySystemRelation.php.
ilBuddySystemRelation::__construct | ( | ilBuddySystemRelationState | $state, |
int | $usrId, | ||
int | $buddyUsrId, | ||
bool | $isOwnedByActor, | ||
int | $timestamp | ||
) |
Definition at line 34 of file class.ilBuddySystemRelation.php.
References $buddyUsrId, $isOwnedByActor, $timestamp, $usrId, isOwnedByActor(), and setState().
ilBuddySystemRelation::getBuddyUsrId | ( | ) |
Definition at line 86 of file class.ilBuddySystemRelation.php.
References $buddyUsrId.
Referenced by ilBuddySystemRelationRepository\addToApprovedBuddies(), ilBuddySystemRelationRepository\addToRequestedBuddies(), ilBuddyList\getIgnoredRelationsForOwner(), ilBuddyList\getRelationTargetUserId(), ilBuddyList\getRequestRelationsForOwner(), ignore(), link(), ilBuddySystemRelationRepository\removeFromApprovedBuddies(), ilBuddySystemRelationRepository\removeFromRequestedBuddies(), request(), ilBuddySystemGUI\requestCommand(), ilMailingListsGUI\showMembersList(), and unlink().
ilBuddySystemRelation::getCurrentPossibleTargetStates | ( | ) |
Definition at line 125 of file class.ilBuddySystemRelation.php.
References ilBuddySystemRelationStateFilterRuleFactory\getInstance().
ilBuddySystemRelation::getPriorState | ( | ) |
Definition at line 68 of file class.ilBuddySystemRelation.php.
References $priorState.
Referenced by wasIgnored(), wasLinked(), wasRequested(), and wasUnlinked().
ilBuddySystemRelation::getState | ( | ) |
Definition at line 63 of file class.ilBuddySystemRelation.php.
References $state.
Referenced by ilBuddySystemRelationStateFactory\getStateButtonRendererByOwnerAndRelation(), ignore(), isIgnored(), isLinked(), isRequested(), isUnlinked(), link(), ilBuddySystemRelationsTableGUI\populate(), request(), setState(), and unlink().
ilBuddySystemRelation::getTimestamp | ( | ) |
Definition at line 112 of file class.ilBuddySystemRelation.php.
References $timestamp.
Referenced by ilBuddySystemRelationRepository\addToApprovedBuddies(), ilBuddySystemRelationRepository\addToRequestedBuddies(), and ILIAS\Contact\Provider\ContactNotificationProvider\getNotifications().
ilBuddySystemRelation::getUsrId | ( | ) |
Definition at line 99 of file class.ilBuddySystemRelation.php.
References $usrId.
Referenced by ilBuddySystemRelationRepository\addToApprovedBuddies(), ilBuddySystemRelationRepository\addToRequestedBuddies(), ilBuddyList\getIgnoredRelationsByOwner(), ilBuddyList\getRelationTargetUserId(), ilBuddyList\getRequestRelationsByOwner(), ignore(), ilBuddyList\ignore(), link(), ilBuddyList\link(), ilBuddySystemRelationRepository\removeFromApprovedBuddies(), ilBuddySystemRelationRepository\removeFromRequestedBuddies(), request(), and unlink().
ilBuddySystemRelation::ignore | ( | ) |
ilBuddySystemRelationStateException |
Definition at line 176 of file class.ilBuddySystemRelation.php.
References getBuddyUsrId(), getState(), and getUsrId().
Referenced by ilBuddyList\ignore().
ilBuddySystemRelation::isIgnored | ( | ) |
Definition at line 201 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddyList\getIgnoredRelations(), ilBuddyList\ignore(), and ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::isLinked | ( | ) |
Definition at line 186 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddyList\getLinkedRelations(), ilBuddyList\ignore(), ilBuddyList\link(), and ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::isOwnedByActor | ( | ) |
Definition at line 73 of file class.ilBuddySystemRelation.php.
References $isOwnedByActor.
Referenced by __construct(), ilBuddySystemIgnoredRequestRelationStateTableFilterMapper\filterMatchesRelation(), and ilBuddySystemRequestedRelationStateTableFilterMapper\filterMatchesRelation().
ilBuddySystemRelation::isRequested | ( | ) |
Definition at line 196 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddyList\getRequestedRelations(), ilBuddyList\request(), and ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::isUnlinked | ( | ) |
Definition at line 191 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddySystemGUI\requestCommand(), and ilBuddyList\unlink().
ilBuddySystemRelation::link | ( | ) |
ilBuddySystemRelationStateException |
Definition at line 134 of file class.ilBuddySystemRelation.php.
References getBuddyUsrId(), getState(), and getUsrId().
Referenced by ilBuddyList\link().
ilBuddySystemRelation::request | ( | ) |
ilBuddySystemRelationStateException |
Definition at line 162 of file class.ilBuddySystemRelation.php.
References getBuddyUsrId(), getState(), and getUsrId().
Referenced by ilBuddyList\request().
|
private |
Definition at line 48 of file class.ilBuddySystemRelation.php.
Referenced by setState().
ilBuddySystemRelation::setState | ( | ilBuddySystemRelationState | $state, |
bool | $rememberPriorState = true |
||
) |
Definition at line 53 of file class.ilBuddySystemRelation.php.
References $state, getState(), and setPriorState().
Referenced by __construct(), ilBuddySystemRequestedRelationState\ignore(), ilBuddySystemIgnoredRequestRelationState\link(), ilBuddySystemRequestedRelationState\link(), ilBuddySystemUnlinkedRelationState\request(), ilBuddySystemLinkedRelationState\unlink(), ilBuddySystemIgnoredRequestRelationState\unlink(), and ilBuddySystemRequestedRelationState\unlink().
ilBuddySystemRelation::unlink | ( | ) |
ilBuddySystemRelationStateException |
Definition at line 148 of file class.ilBuddySystemRelation.php.
References getBuddyUsrId(), getState(), and getUsrId().
Referenced by ilBuddyList\unlink().
ilBuddySystemRelation::wasIgnored | ( | ) |
Definition at line 221 of file class.ilBuddySystemRelation.php.
References getPriorState().
Referenced by ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::wasLinked | ( | ) |
Definition at line 206 of file class.ilBuddySystemRelation.php.
References getPriorState().
Referenced by ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::wasRequested | ( | ) |
Definition at line 216 of file class.ilBuddySystemRelation.php.
References getPriorState().
Referenced by ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::wasUnlinked | ( | ) |
Definition at line 211 of file class.ilBuddySystemRelation.php.
References getPriorState().
ilBuddySystemRelation::withBuddyUsrId | ( | int | $buddyUsrId | ) |
ilBuddySystemRelation::withIsOwnedByActor | ( | bool | $isOwnedByActor | ) |
Definition at line 78 of file class.ilBuddySystemRelation.php.
References $isOwnedByActor.
ilBuddySystemRelation::withTimestamp | ( | int | $timestamp | ) |
ilBuddySystemRelation::withUsrId | ( | int | $usrId | ) |
|
protected |
Definition at line 29 of file class.ilBuddySystemRelation.php.
Referenced by __construct(), getBuddyUsrId(), and withBuddyUsrId().
|
protected |
Definition at line 30 of file class.ilBuddySystemRelation.php.
Referenced by __construct(), isOwnedByActor(), and withIsOwnedByActor().
|
protected |
Definition at line 32 of file class.ilBuddySystemRelation.php.
Referenced by getPriorState().
|
protected |
Definition at line 27 of file class.ilBuddySystemRelation.php.
Referenced by getState(), and setState().
|
protected |
Definition at line 31 of file class.ilBuddySystemRelation.php.
Referenced by __construct(), getTimestamp(), and withTimestamp().
|
protected |
Definition at line 28 of file class.ilBuddySystemRelation.php.
Referenced by __construct(), getUsrId(), and withUsrId().