ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilBuddySystemRelationRepository. More...
Public Member Functions | |
__construct ($usr_id) | |
getDatabaseAdapter () | |
setDatabaseAdapter (ilDBInterface $db) | |
getAll () | |
Reads all items from database. More... | |
destroy () | |
save (ilBuddySystemRelation $relation) | |
Data Fields | |
const | TYPE_APPROVED = 'app' |
const | TYPE_REQUESTED = 'req' |
const | TYPE_IGNORED = 'ign' |
Protected Attributes | |
$db | |
$usr_id | |
Private Member Functions | |
getRelationByDatabaseRecord ($row) | |
addToApprovedBuddies (ilBuddySystemRelation $relation) | |
removeFromApprovedBuddies (ilBuddySystemRelation $relation) | |
addToRequestedBuddies (ilBuddySystemRelation $relation, $ignored) | |
removeFromRequestedBuddies (ilBuddySystemRelation $relation) | |
Class ilBuddySystemRelationRepository.
Definition at line 9 of file class.ilBuddySystemRelationRepository.php.
ilBuddySystemRelationRepository::__construct | ( | $usr_id | ) |
Definition at line 28 of file class.ilBuddySystemRelationRepository.php.
|
private |
ilBuddySystemRelation | $relation |
Definition at line 128 of file class.ilBuddySystemRelationRepository.php.
References ilBuddySystemRelation\getBuddyUserId(), ilBuddySystemRelation\getTimestamp(), and ilBuddySystemRelation\getUserId().
Referenced by save().
|
private |
ilBuddySystemRelation | $relation | |
boolean | $ignored |
Definition at line 175 of file class.ilBuddySystemRelationRepository.php.
References ilBuddySystemRelation\getBuddyUserId(), ilBuddySystemRelation\getTimestamp(), and ilBuddySystemRelation\getUserId().
Referenced by save().
ilBuddySystemRelationRepository::destroy | ( | ) |
Definition at line 110 of file class.ilBuddySystemRelationRepository.php.
ilBuddySystemRelationRepository::getAll | ( | ) |
Reads all items from database.
Definition at line 56 of file class.ilBuddySystemRelationRepository.php.
References $key, $res, $row, $usr_id, and getRelationByDatabaseRecord().
ilBuddySystemRelationRepository::getDatabaseAdapter | ( | ) |
Definition at line 39 of file class.ilBuddySystemRelationRepository.php.
References $db.
|
private |
$row |
Definition at line 91 of file class.ilBuddySystemRelationRepository.php.
References $row.
Referenced by getAll().
|
private |
ilBuddySystemRelation | $relation |
Definition at line 156 of file class.ilBuddySystemRelationRepository.php.
References ilBuddySystemRelation\getBuddyUserId(), and ilBuddySystemRelation\getUserId().
Referenced by save().
|
private |
ilBuddySystemRelation | $relation |
Definition at line 193 of file class.ilBuddySystemRelationRepository.php.
References ilBuddySystemRelation\getBuddyUserId(), and ilBuddySystemRelation\getUserId().
Referenced by save().
ilBuddySystemRelationRepository::save | ( | ilBuddySystemRelation | $relation | ) |
ilBuddySystemRelation | $relation |
Definition at line 211 of file class.ilBuddySystemRelationRepository.php.
References $ilDB, addToApprovedBuddies(), addToRequestedBuddies(), ilBuddySystemRelation\isIgnored(), ilBuddySystemRelation\isLinked(), ilBuddySystemRelation\isRequested(), removeFromApprovedBuddies(), removeFromRequestedBuddies(), ilBuddySystemRelation\wasIgnored(), ilBuddySystemRelation\wasLinked(), and ilBuddySystemRelation\wasRequested().
ilBuddySystemRelationRepository::setDatabaseAdapter | ( | ilDBInterface | $db | ) |
ilDBInterface | $db |
Definition at line 47 of file class.ilBuddySystemRelationRepository.php.
References $db.
|
protected |
Definition at line 18 of file class.ilBuddySystemRelationRepository.php.
Referenced by getDatabaseAdapter(), and setDatabaseAdapter().
|
protected |
Definition at line 23 of file class.ilBuddySystemRelationRepository.php.
Referenced by __construct(), and getAll().
const ilBuddySystemRelationRepository::TYPE_APPROVED = 'app' |
Definition at line 11 of file class.ilBuddySystemRelationRepository.php.
const ilBuddySystemRelationRepository::TYPE_IGNORED = 'ign' |
Definition at line 13 of file class.ilBuddySystemRelationRepository.php.
const ilBuddySystemRelationRepository::TYPE_REQUESTED = 'req' |
Definition at line 12 of file class.ilBuddySystemRelationRepository.php.