ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilBuddySystemRelation. More...
Public Member Functions | |
__construct (ilBuddySystemRelationState $state) | |
setState (ilBuddySystemRelationState $state, $remember_prior_state=true) | |
getState () | |
getPriorState () | |
isOwnedByRequest () | |
setIsOwnedByRequest ($is_owned_by_request) | |
getBuddyUserId () | |
setBuddyUserId ($buddy_user_id) | |
getUserId () | |
setUserId ($user_id) | |
getTimestamp () | |
setTimestamp ($timestamp) | |
getCurrentPossibleTargetStates () | |
link () | |
unlink () | |
request () | |
ignore () | |
isLinked () | |
isUnlinked () | |
isRequested () | |
isIgnored () | |
wasLinked () | |
wasUnlinked () | |
wasRequested () | |
wasIgnored () | |
Protected Attributes | |
$is_owned_by_request = false | |
$user_id | |
$buddy_user_id | |
$timestamp | |
$state | |
$prior_state | |
Private Member Functions | |
setPriorState ($prior_state) | |
Class ilBuddySystemRelation.
Definition at line 10 of file class.ilBuddySystemRelation.php.
ilBuddySystemRelation::__construct | ( | ilBuddySystemRelationState | $state | ) |
ilBuddySystemRelationState | $state |
Definition at line 45 of file class.ilBuddySystemRelation.php.
References setState().
ilBuddySystemRelation::getBuddyUserId | ( | ) |
Definition at line 108 of file class.ilBuddySystemRelation.php.
References $buddy_user_id.
Referenced by ilBuddySystemRelationRepository\addToApprovedBuddies(), ilBuddySystemRelationRepository\addToRequestedBuddies(), ilBuddyList\getIgnoredRelationsForOwner(), ilBuddyList\getRelationTargetUserId(), ilBuddyList\getRequestRelationsForOwner(), ignore(), link(), ilBuddySystemRelationRepository\removeFromApprovedBuddies(), ilBuddySystemRelationRepository\removeFromRequestedBuddies(), request(), ilBuddySystemGUI\requestCommand(), and unlink().
ilBuddySystemRelation::getCurrentPossibleTargetStates | ( | ) |
Definition at line 162 of file class.ilBuddySystemRelation.php.
References ilBuddySystemRelationStateFilterRuleFactory\getInstance().
ilBuddySystemRelation::getPriorState | ( | ) |
Definition at line 76 of file class.ilBuddySystemRelation.php.
References $prior_state.
Referenced by wasIgnored(), wasLinked(), wasRequested(), and wasUnlinked().
ilBuddySystemRelation::getState | ( | ) |
Definition at line 68 of file class.ilBuddySystemRelation.php.
References $state.
Referenced by ilBuddySystemRelationStateFactory\getRendererByOwnerAndRelation(), ignore(), isIgnored(), isLinked(), isRequested(), isUnlinked(), link(), ilBuddySystemRelationsTableGUI\populate(), request(), setState(), and unlink().
ilBuddySystemRelation::getTimestamp | ( | ) |
Definition at line 144 of file class.ilBuddySystemRelation.php.
References $timestamp.
Referenced by ilBuddySystemRelationRepository\addToApprovedBuddies(), and ilBuddySystemRelationRepository\addToRequestedBuddies().
ilBuddySystemRelation::getUserId | ( | ) |
Definition at line 126 of file class.ilBuddySystemRelation.php.
References $user_id.
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 215 of file class.ilBuddySystemRelation.php.
References getBuddyUserId(), getState(), and getUserId().
Referenced by ilBuddyList\ignore().
ilBuddySystemRelation::isIgnored | ( | ) |
Definition at line 252 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddyList\getIgnoredRelations(), ilBuddyList\ignore(), and ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::isLinked | ( | ) |
Definition at line 228 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddyList\getLinkedRelations(), ilBuddyList\ignore(), ilBuddyList\link(), and ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::isOwnedByRequest | ( | ) |
Definition at line 92 of file class.ilBuddySystemRelation.php.
References $is_owned_by_request.
ilBuddySystemRelation::isRequested | ( | ) |
Definition at line 244 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddyList\getRequestedRelations(), ilBuddyList\request(), and ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::isUnlinked | ( | ) |
Definition at line 236 of file class.ilBuddySystemRelation.php.
References getState().
Referenced by ilBuddySystemGUI\requestCommand(), and ilBuddyList\unlink().
ilBuddySystemRelation::link | ( | ) |
ilBuddySystemRelationStateException |
Definition at line 173 of file class.ilBuddySystemRelation.php.
References getBuddyUserId(), getState(), and getUserId().
Referenced by ilBuddyList\link().
ilBuddySystemRelation::request | ( | ) |
ilBuddySystemRelationStateException |
Definition at line 201 of file class.ilBuddySystemRelation.php.
References getBuddyUserId(), getState(), and getUserId().
Referenced by ilBuddyList\request().
ilBuddySystemRelation::setBuddyUserId | ( | $buddy_user_id | ) |
int | $buddy_user_id |
Definition at line 117 of file class.ilBuddySystemRelation.php.
References $buddy_user_id.
ilBuddySystemRelation::setIsOwnedByRequest | ( | $is_owned_by_request | ) |
bool | $is_owned_by_request |
Definition at line 100 of file class.ilBuddySystemRelation.php.
References $is_owned_by_request.
|
private |
ilBuddySystemRelationState | $prior_state |
Definition at line 84 of file class.ilBuddySystemRelation.php.
References $prior_state.
Referenced by setState().
ilBuddySystemRelation::setState | ( | ilBuddySystemRelationState | $state, |
$remember_prior_state = true |
|||
) |
ilBuddySystemRelationState | $state | |
$remember_prior_state | boolean |
Definition at line 55 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::setTimestamp | ( | $timestamp | ) |
int | $timestamp |
Definition at line 153 of file class.ilBuddySystemRelation.php.
References $timestamp.
ilBuddySystemRelation::setUserId | ( | $user_id | ) |
int | $user_id |
Definition at line 135 of file class.ilBuddySystemRelation.php.
References $user_id.
ilBuddySystemRelation::unlink | ( | ) |
ilBuddySystemRelationStateException |
Definition at line 187 of file class.ilBuddySystemRelation.php.
References getBuddyUserId(), getState(), and getUserId().
Referenced by ilBuddyList\unlink().
ilBuddySystemRelation::wasIgnored | ( | ) |
Definition at line 284 of file class.ilBuddySystemRelation.php.
References getPriorState().
Referenced by ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::wasLinked | ( | ) |
Definition at line 260 of file class.ilBuddySystemRelation.php.
References getPriorState().
Referenced by ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::wasRequested | ( | ) |
Definition at line 276 of file class.ilBuddySystemRelation.php.
References getPriorState().
Referenced by ilBuddySystemRelationRepository\save().
ilBuddySystemRelation::wasUnlinked | ( | ) |
Definition at line 268 of file class.ilBuddySystemRelation.php.
References getPriorState().
|
protected |
Definition at line 25 of file class.ilBuddySystemRelation.php.
Referenced by getBuddyUserId(), and setBuddyUserId().
|
protected |
Definition at line 15 of file class.ilBuddySystemRelation.php.
Referenced by isOwnedByRequest(), and setIsOwnedByRequest().
|
protected |
Definition at line 40 of file class.ilBuddySystemRelation.php.
Referenced by getPriorState(), and setPriorState().
|
protected |
Definition at line 35 of file class.ilBuddySystemRelation.php.
Referenced by getState(), and setState().
|
protected |
Definition at line 30 of file class.ilBuddySystemRelation.php.
Referenced by getTimestamp(), and setTimestamp().
|
protected |
Definition at line 20 of file class.ilBuddySystemRelation.php.
Referenced by getUserId(), and setUserId().