|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Collaboration diagram for ilFavouritesDBRepository:Public Member Functions | |
| __construct (\ilDBInterface $db=null, ilTree $tree=null) | |
| Constructor. More... | |
| add (int $user_id, int $ref_id) | |
| Add favourite. More... | |
| remove (int $user_id, int $ref_id) | |
| Remove favourite. More... | |
| getFavouritesOfUser (int $user_id, array $a_types=null) | |
| Get all desktop items of user and specified type. More... | |
| ifIsFavourite ($user_id, $ref_id) | |
| check wether an item is on the users desktop or not More... | |
| loadData (int $user_id, array $ref_ids) | |
| Load favourites data. More... | |
| removeFavouritesOfRefId (int $ref_id) | |
| Remove favourite entries of a repository item. More... | |
| removeFavouritesOfUser (int $user_id) | |
| Remove favourite entries of a user. More... | |
Static Public Attributes | |
| static | $is_desktop_item = [] |
Definition at line 10 of file class.ilFavouritesDBRepository.php.
| ilFavouritesDBRepository::__construct | ( | \ilDBInterface | $db = null, |
| ilTree | $tree = null |
||
| ) |
| ilFavouritesDBRepository::add | ( | int | $user_id, |
| int | $ref_id | ||
| ) |
Add favourite.
| int | $user_id | |
| int | $ref_id |
Definition at line 39 of file class.ilFavouritesDBRepository.php.
References $type, and ilObject\_lookupType().
Here is the call graph for this function:| ilFavouritesDBRepository::getFavouritesOfUser | ( | int | $user_id, |
| array | $a_types = null |
||
| ) |
Get all desktop items of user and specified type.
note: the implementation of this method is not good style (directly reading tables object_data and object_reference), must be revised someday...
| int | $user_id | |
| array | null | $a_types |
Definition at line 91 of file class.ilFavouritesDBRepository.php.
References $a_type, $ilDB, ilObject\_lookupDescription(), and ilObject\_lookupTitle().
Here is the call graph for this function:| ilFavouritesDBRepository::ifIsFavourite | ( | $user_id, | |
| $ref_id | |||
| ) |
check wether an item is on the users desktop or not
| $user_id | |
| $ref_id |
Definition at line 172 of file class.ilFavouritesDBRepository.php.
| ilFavouritesDBRepository::loadData | ( | int | $user_id, |
| array | $ref_ids | ||
| ) |
Load favourites data.
| int | $user_id | |
| array | $ref_ids |
Definition at line 198 of file class.ilFavouritesDBRepository.php.
| ilFavouritesDBRepository::remove | ( | int | $user_id, |
| int | $ref_id | ||
| ) |
Remove favourite.
| int | $user_id | |
| int | $ref_id |
Definition at line 69 of file class.ilFavouritesDBRepository.php.
| ilFavouritesDBRepository::removeFavouritesOfRefId | ( | int | $ref_id | ) |
Remove favourite entries of a repository item.
| int | $ref_id |
Definition at line 232 of file class.ilFavouritesDBRepository.php.
| ilFavouritesDBRepository::removeFavouritesOfUser | ( | int | $user_id | ) |
Remove favourite entries of a user.
| int | $user_id |
Definition at line 249 of file class.ilFavouritesDBRepository.php.
|
static |
Definition at line 16 of file class.ilFavouritesDBRepository.php.