|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
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 ($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. More... | |
| getRelationUserIds () | |
| Returns an array of all user ids the buddy list owner has a relation with. More... | |
| setOwnerId ($owner_id) | |
| getRelationByUserId ($usr_id) | |
| 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 ($usr_id) |
Protected Member Functions | |
| __construct ($owner_id) | |
| performLazyLoading () | |
| getRelationTargetUserId (ilBuddySystemRelation $relation) | |
Protected Attributes | |
| $owner_id | |
| $relations | |
| $repository | |
| $relations_read = false | |
Static Protected Attributes | |
| static | $instances = array() |
Class ilBuddyList.
Definition at line 18 of file class.ilBuddyList.php.
|
protected |
Definition at line 82 of file class.ilBuddyList.php.
References $owner_id, 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 454 of file class.ilBuddyList.php.
References getRelations(), and getRepository().
Here is the call graph for this function:| ilBuddyList::getIgnoredRelations | ( | ) |
Gets all ignored relations.
Definition at line 238 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 226 of file class.ilBuddyList.php.
References getIgnoredRelations(), getOwnerId(), and ilBuddySystemRelation\getUserId().
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 214 of file class.ilBuddyList.php.
References ilBuddySystemRelation\getBuddyUserId(), getIgnoredRelations(), and getOwnerId().
Here is the call graph for this function:
|
static |
| int | $usr_id |
| ilBuddySystemException |
Definition at line 50 of file class.ilBuddyList.php.
References ilObjUser\_isAnonymous().
Referenced by ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenALinkedRelationShouldBeMarkedAsLinked(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenAnIgnoredRelationShouldBeMarkedAsIgnored(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenAnUnlinkedRelationShouldBeMarkedAsUnlinked(), ilBuddyListTest\testAlreadyGivenStateExceptionIsThrownWhenARequestedRelationShouldBeMarkedAsRequested(), ilBuddyListTest\testDifferentRelationStatesCanBeRetrieved(), ilBuddyListTest\testExceptionIsThrownWhenNonNumericOwnerIdIsPassed(), ilBuddyListTest\testExceptionIsThrownWhenRelationIsRequestedForANonNumericUserId(), 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\testUnlinkedRelationIsReturnedWhenRelationWasRequestedForAUknownBuddyId(), 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 168 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 159 of file class.ilBuddyList.php.
References $owner_id.
Referenced by __construct(), getIgnoredRelationsByOwner(), getIgnoredRelationsForOwner(), getRelationByUserId(), getRequestRelationsByOwner(), getRequestRelationsForOwner(), ignore(), link(), and reset().
Here is the caller graph for this function:| ilBuddyList::getRelationByUserId | ( | $usr_id | ) |
| int | $usr_id |
| InvalidArgumentException |
Definition at line 282 of file class.ilBuddyList.php.
References ilBuddySystemRelationStateFactory\getInstance(), getOwnerId(), and getRelations().
Here is the call graph for this function:| ilBuddyList::getRelations | ( | ) |
Definition at line 137 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 |
| ilBuddySystemRelation | $relation |
Definition at line 272 of file class.ilBuddyList.php.
References ilBuddySystemRelation\getBuddyUserId(), and ilBuddySystemRelation\getUserId().
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 249 of file class.ilBuddyList.php.
References getRelations().
Here is the call graph for this function:| ilBuddyList::getRepository | ( | ) |
Definition at line 101 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 203 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 191 of file class.ilBuddyList.php.
References getOwnerId(), getRequestedRelations(), and ilBuddySystemRelation\getUserId().
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 179 of file class.ilBuddyList.php.
References ilBuddySystemRelation\getBuddyUserId(), getOwnerId(), and getRequestedRelations().
Here is the call graph for this function:| ilBuddyList::ignore | ( | ilBuddySystemRelation | $relation | ) |
| ilBuddySystemRelation | $relation |
| ilBuddySystemException |
Definition at line 416 of file class.ilBuddyList.php.
References getOwnerId(), getRelations(), getRelationTargetUserId(), getRepository(), ilBuddySystemRelation\getUserId(), 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 311 of file class.ilBuddyList.php.
References getOwnerId(), getRelations(), getRelationTargetUserId(), getRepository(), ilBuddySystemRelation\getUserId(), ilBuddySystemRelation\isLinked(), and ilBuddySystemRelation\link().
Here is the call graph for this function:
|
protected |
Definition at line 125 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 117 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 371 of file class.ilBuddyList.php.
References $GLOBALS, 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 91 of file class.ilBuddyList.php.
References getOwnerId().
Here is the call graph for this function:| ilBuddyList::setOwnerId | ( | $owner_id | ) |
| int | $owner_id |
| InvalidArgumentException |
Definition at line 258 of file class.ilBuddyList.php.
References $owner_id.
Referenced by __construct().
Here is the caller graph for this function:| ilBuddyList::setRelations | ( | ilBuddySystemRelationCollection | $relations | ) |
| ilBuddySystemRelationCollection | $relations |
Definition at line 150 of file class.ilBuddyList.php.
References $relations.
Referenced by readFromRepository().
Here is the caller graph for this function:| ilBuddyList::setRepository | ( | $repository | ) |
| ilBuddySystemRelationRepository | $repository |
Definition at line 109 of file class.ilBuddyList.php.
References $repository.
Referenced by __construct().
Here is the caller graph for this function:| ilBuddyList::unlink | ( | ilBuddySystemRelation | $relation | ) |
| ilBuddySystemRelation | $relation |
| ilBuddySystemException |
Definition at line 344 of file class.ilBuddyList.php.
References getRelations(), getRelationTargetUserId(), getRepository(), ilBuddySystemRelation\isUnlinked(), and ilBuddySystemRelation\unlink().
Here is the call graph for this function:
|
staticprotected |
Definition at line 38 of file class.ilBuddyList.php.
|
protected |
Definition at line 23 of file class.ilBuddyList.php.
Referenced by __construct(), getOwnerId(), and setOwnerId().
|
protected |
Definition at line 28 of file class.ilBuddyList.php.
Referenced by getRelations(), and setRelations().
|
protected |
Definition at line 43 of file class.ilBuddyList.php.
|
protected |
Definition at line 33 of file class.ilBuddyList.php.
Referenced by getRepository(), and setRepository().