|
ILIAS
release_8 Revision v8.24
|
Class ilBuddyList. More...
Collaboration diagram for ilBuddyList:Public Member Functions | |
| reset () | |
| Remove the singleton instance from static array, used for unit tests. More... | |
| getRepository () | |
| setRepository (ilBuddySystemRelationRepository $repository) | |
| readFromRepository () | |
| getRelations () | |
| setRelations (ilBuddySystemRelationCollection $relations) | |
| getOwnerId () | |
| Returns the user id of the buddy list owner. More... | |
| getLinkedRelations () | |
| Gets all linked/approved relations. More... | |
| getRequestRelationsForOwner () | |
| Gets all requested relations the buddy list owner has to interact with. More... | |
| getRequestRelationsByOwner () | |
| Gets all requested relations the buddy list owner initiated. More... | |
| getRequestedRelations () | |
| Gets all requested relations. More... | |
| getIgnoredRelationsForOwner () | |
| Gets all ignored relations the buddy list owner has to interact with. More... | |
| getIgnoredRelationsByOwner () | |
| Gets all ignored relations the buddy list owner initiated. More... | |
| getIgnoredRelations () | |
| Gets all ignored relations: ilBuddySystemRelationCollection. More... | |
| getRelationUserIds () | |
| Returns an array of all user ids the buddy list owner has a relation with. More... | |
| setOwnerId (int $ownerId) | |
| getRelationByUserId (int $usrId) | |
| link (ilBuddySystemRelation $relation) | |
| unlink (ilBuddySystemRelation $relation) | |
| request (ilBuddySystemRelation $relation) | |
| ignore (ilBuddySystemRelation $relation) | |
| destroy () | |
| Removes all buddy system references of the user (persistently) More... | |
Static Public Member Functions | |
| static | getInstanceByUserId (int $usrId) |
| static | getInstanceByGlobalUser () |
Protected Member Functions | |
| __construct (int $ownerId) | |
| performLazyLoading () | |
| getRelationTargetUserId (ilBuddySystemRelation $relation) | |
Protected Attributes | |
| int | $ownerId |
| ilBuddySystemRelationRepository | $repository |
| bool | $relationsRead = false |
| ilAppEventHandler | $eventHandler |
| ilBuddySystemRelationCollection | $relations = null |
Static Protected Attributes | |
| static array | $instances = [] |
Class ilBuddyList.
Definition at line 25 of file class.ilBuddyList.php.
|
protected |
Definition at line 69 of file class.ilBuddyList.php.
References $DIC, getOwnerId(), setOwnerId(), and setRepository().
Here is the call graph for this function:| ilBuddyList::destroy | ( | ) |
Removes all buddy system references of the user (persistently)
Definition at line 400 of file class.ilBuddyList.php.
References getRelations(), and getRepository().
Here is the call graph for this function:| ilBuddyList::getIgnoredRelations | ( | ) |
Gets all ignored relations: ilBuddySystemRelationCollection.
Definition at line 205 of file class.ilBuddyList.php.
References getRelations(), and ilBuddySystemRelation\isIgnored().
Referenced by getIgnoredRelationsByOwner(), and getIgnoredRelationsForOwner().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddyList::getIgnoredRelationsByOwner | ( | ) |
Gets all ignored relations the buddy list owner initiated.
Definition at line 194 of file class.ilBuddyList.php.
References getIgnoredRelations(), getOwnerId(), and ilBuddySystemRelation\getUsrId().
Here is the call graph for this function:| ilBuddyList::getIgnoredRelationsForOwner | ( | ) |
Gets all ignored relations the buddy list owner has to interact with.
Definition at line 183 of file class.ilBuddyList.php.
References ilBuddySystemRelation\getBuddyUsrId(), getIgnoredRelations(), and getOwnerId().
Here is the call graph for this function:
|
static |
| ilBuddySystemException |
Definition at line 62 of file class.ilBuddyList.php.
References $DIC, and getInstanceByUserId().
Referenced by ilBuddySystemGUI\__construct(), ilBuddySystemLinkButton\__construct(), ilContactUserActionProvider\collectActionsForTargetUser(), ilMailingListsGUI\executeCommand(), ilMailSearchObjectMembershipsTableGUI\fillRow(), ilAwarenessUserProviderApprovedContacts\getInitialUserSet(), ilAwarenessUserProviderContactRequests\getInitialUserSet(), ILIAS\Contact\Provider\ContactNotificationProvider\getNotifications(), ilUsersGalleryContacts\getRelationSequence(), ilBuddySystemRelationsTableGUI\populate(), ilUsersGalleryGUI\populateTemplate(), ilMailingListsGUI\saveAssignmentForm(), ilMailFormGUI\showForm(), ilMailingListsGUI\showMembersList(), ilMailSearchGUI\showResults(), ilContactGUI\showSubTabs(), ilBuddyListTest\testInstanceCanBeCreatedByGlobalUserObject(), and ilBuddyListTest\testInstanceCannotBeCreatedByAnonymousGlobalUserObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int | $usrId |
| ilBuddySystemException |
Definition at line 41 of file class.ilBuddyList.php.
References ilObjUser\_isAnonymous().
Referenced by getInstanceByGlobalUser(), ilContactAppEventListener\handleEvent(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsLinked(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenAnIgnoredRelationShouldBeMarkedAsIgnored(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenAnUnlinkedRelationShouldBeMarkedAsUnlinked(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested(), ilBuddyListTest\testDifferentRelationStatesCanBeRetrieved(), ilBuddyListTest\testInstanceByBeCreatedBySingletonMethod(), ilBuddyListTest\testListIsInitiallyEmpty(), ilBuddyListTest\testRelationCannotBeRequestedForAnonymous(), ilBuddyListTest\testRelationCannotBeRequestedForUnknownUserAccounts(), ilBuddyListTest\testRelationRequestCanBeApprovedByTheRelationTarget(), ilBuddyListTest\testRelationRequestCanBeIgnoredByTheRelationTarget(), ilBuddyListTest\testRelationRequestCannotBeApprovedByTheRelationOwner(), ilBuddyListTest\testRelationRequestCannotBeIgnoredByTheRelationOwner(), ilBuddyListTest\testRepositoryIsEnquiredOnlyOnceToFetchRelationsWhenCalledImplicitly(), ilBuddyListTest\testRepositoryIsEnquiredToFetchRelationsWhenRequestedExplicitly(), ilBuddyListTest\testRepositoryIsEnquiredWhenBuddyListShouldBeDestroyed(), ilBuddyListTest\testStateTransitionExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsIgnored(), ilBuddyListTest\testUnlinkedRelationIsReturnedWhenRelationWasRequestedForAnUnknownBuddyId(), and ilBuddyListTest\testValuesCanBeFetchedByGettersWhenSetBySetters().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddyList::getLinkedRelations | ( | ) |
Gets all linked/approved relations.
Definition at line 139 of file class.ilBuddyList.php.
References getRelations(), and ilBuddySystemRelation\isLinked().
Here is the call graph for this function:| ilBuddyList::getOwnerId | ( | ) |
Returns the user id of the buddy list owner.
Definition at line 130 of file class.ilBuddyList.php.
References $ownerId.
Referenced by __construct(), getIgnoredRelationsByOwner(), getIgnoredRelationsForOwner(), getRelationByUserId(), getRequestRelationsByOwner(), getRequestRelationsForOwner(), ignore(), link(), and reset().
Here is the caller graph for this function:| ilBuddyList::getRelationByUserId | ( | int | $usrId | ) |
Definition at line 231 of file class.ilBuddyList.php.
References ilBuddySystemRelationStateFactory\getInstance(), getOwnerId(), and getRelations().
Here is the call graph for this function:| ilBuddyList::getRelations | ( | ) |
Definition at line 112 of file class.ilBuddyList.php.
References $relations, and performLazyLoading().
Referenced by destroy(), getIgnoredRelations(), getLinkedRelations(), getRelationByUserId(), getRelationUserIds(), getRequestedRelations(), ignore(), link(), request(), and unlink().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 226 of file class.ilBuddyList.php.
References ilBuddySystemRelation\getBuddyUsrId(), and ilBuddySystemRelation\getUsrId().
Referenced by ignore(), link(), request(), and unlink().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddyList::getRelationUserIds | ( | ) |
Returns an array of all user ids the buddy list owner has a relation with.
Definition at line 216 of file class.ilBuddyList.php.
References getRelations().
Here is the call graph for this function:| ilBuddyList::getRepository | ( | ) |
Definition at line 89 of file class.ilBuddyList.php.
References $repository.
Referenced by destroy(), ignore(), link(), readFromRepository(), request(), and unlink().
Here is the caller graph for this function:| ilBuddyList::getRequestedRelations | ( | ) |
Gets all requested relations.
Definition at line 172 of file class.ilBuddyList.php.
References getRelations(), and ilBuddySystemRelation\isRequested().
Referenced by getRequestRelationsByOwner(), and getRequestRelationsForOwner().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddyList::getRequestRelationsByOwner | ( | ) |
Gets all requested relations the buddy list owner initiated.
Definition at line 161 of file class.ilBuddyList.php.
References getOwnerId(), getRequestedRelations(), and ilBuddySystemRelation\getUsrId().
Here is the call graph for this function:| ilBuddyList::getRequestRelationsForOwner | ( | ) |
Gets all requested relations the buddy list owner has to interact with.
Definition at line 150 of file class.ilBuddyList.php.
References ilBuddySystemRelation\getBuddyUsrId(), getOwnerId(), and getRequestedRelations().
Here is the call graph for this function:| ilBuddyList::ignore | ( | ilBuddySystemRelation | $relation | ) |
| ilBuddySystemRelation | $relation |
| ilBuddySystemException |
Definition at line 362 of file class.ilBuddyList.php.
References Vendor\Package\$e, getOwnerId(), getRelations(), getRelationTargetUserId(), getRepository(), ilBuddySystemRelation\getUsrId(), ilBuddySystemRelation\ignore(), ilBuddySystemRelation\isIgnored(), and ilBuddySystemRelation\isLinked().
Here is the call graph for this function:| ilBuddyList::link | ( | ilBuddySystemRelation | $relation | ) |
| ilBuddySystemRelation | $relation |
| ilBuddySystemException |
Definition at line 255 of file class.ilBuddyList.php.
References getOwnerId(), getRelations(), getRelationTargetUserId(), getRepository(), ilBuddySystemRelation\getUsrId(), ilBuddySystemRelation\isLinked(), and ilBuddySystemRelation\link().
Here is the call graph for this function:
|
protected |
Definition at line 104 of file class.ilBuddyList.php.
References readFromRepository().
Referenced by getRelations().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddyList::readFromRepository | ( | ) |
Definition at line 99 of file class.ilBuddyList.php.
References getRepository(), and setRelations().
Referenced by performLazyLoading().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddyList::request | ( | ilBuddySystemRelation | $relation | ) |
| ilBuddySystemRelation | $relation |
| ilBuddySystemException |
Definition at line 316 of file class.ilBuddyList.php.
References Vendor\Package\$e, ilObjUser\_isAnonymous(), ilObjUser\_lookupLogin(), getRelations(), getRelationTargetUserId(), getRepository(), ilBuddySystemRelation\isRequested(), and ilBuddySystemRelation\request().
Here is the call graph for this function:| ilBuddyList::reset | ( | ) |
Remove the singleton instance from static array, used for unit tests.
Definition at line 82 of file class.ilBuddyList.php.
References getOwnerId().
Here is the call graph for this function:| ilBuddyList::setOwnerId | ( | int | $ownerId | ) |
Definition at line 221 of file class.ilBuddyList.php.
References $ownerId.
Referenced by __construct().
Here is the caller graph for this function:| ilBuddyList::setRelations | ( | ilBuddySystemRelationCollection | $relations | ) |
Definition at line 121 of file class.ilBuddyList.php.
References $relations.
Referenced by readFromRepository().
Here is the caller graph for this function:| ilBuddyList::setRepository | ( | ilBuddySystemRelationRepository | $repository | ) |
Definition at line 94 of file class.ilBuddyList.php.
References $repository, and ILIAS\UI\examples\Deck\repository().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBuddyList::unlink | ( | ilBuddySystemRelation | $relation | ) |
| ilBuddySystemRelation | $relation |
| ilBuddySystemException |
Definition at line 286 of file class.ilBuddyList.php.
References Vendor\Package\$e, getRelations(), getRelationTargetUserId(), getRepository(), ilBuddySystemRelation\isUnlinked(), and ilBuddySystemRelation\unlink().
Here is the call graph for this function:
|
protected |
Definition at line 33 of file class.ilBuddyList.php.
|
staticprotected |
Definition at line 28 of file class.ilBuddyList.php.
|
protected |
Definition at line 30 of file class.ilBuddyList.php.
Referenced by getOwnerId(), and setOwnerId().
|
protected |
Definition at line 34 of file class.ilBuddyList.php.
Referenced by getRelations(), and setRelations().
|
protected |
Definition at line 32 of file class.ilBuddyList.php.
|
protected |
Definition at line 31 of file class.ilBuddyList.php.
Referenced by getRepository(), and setRepository().