ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 135 of file class.ilBuddySystemRelationRepository.php.
References array, ilBuddySystemRelation\getBuddyUserId(), ilBuddySystemRelation\getTimestamp(), and ilBuddySystemRelation\getUserId().
Referenced by save().
|
private |
ilBuddySystemRelation | $relation | |
boolean | $ignored |
Definition at line 182 of file class.ilBuddySystemRelationRepository.php.
References array, ilBuddySystemRelation\getBuddyUserId(), ilBuddySystemRelation\getTimestamp(), and ilBuddySystemRelation\getUserId().
Referenced by save().
ilBuddySystemRelationRepository::destroy | ( | ) |
ilBuddySystemRelationRepository::getAll | ( | ) |
Reads all items from database.
Definition at line 56 of file class.ilBuddySystemRelationRepository.php.
References $res, $row, $usr_id, array, and getRelationByDatabaseRecord().
ilBuddySystemRelationRepository::getDatabaseAdapter | ( | ) |
Definition at line 39 of file class.ilBuddySystemRelationRepository.php.
References $db.
|
private |
$row |
Definition at line 92 of file class.ilBuddySystemRelationRepository.php.
References $row.
Referenced by getAll().
|
private |
ilBuddySystemRelation | $relation |
Definition at line 163 of file class.ilBuddySystemRelationRepository.php.
References array, ilBuddySystemRelation\getBuddyUserId(), and ilBuddySystemRelation\getUserId().
Referenced by save().
|
private |
ilBuddySystemRelation | $relation |
Definition at line 200 of file class.ilBuddySystemRelationRepository.php.
References array, ilBuddySystemRelation\getBuddyUserId(), and ilBuddySystemRelation\getUserId().
Referenced by save().
ilBuddySystemRelationRepository::save | ( | ilBuddySystemRelation | $relation | ) |
ilBuddySystemRelation | $relation |
Definition at line 218 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.