ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilDBInterface $db=null, ilTree $tree=null) | |
add (int $user_id, int $ref_id) | |
remove (int $user_id, int $ref_id) | |
getFavouritesOfUser (int $user_id, ?array $a_types=null) | |
Get all desktop items of user and specified type. More... | |
ifIsFavourite (int $user_id, int $ref_id) | |
loadData (int $user_id, array $ref_ids) | |
removeFavouritesOfRefId (int $ref_id) | |
removeFavouritesOfUser (int $user_id) | |
Static Public Attributes | |
static array | $is_desktop_item = [] |
Protected Attributes | |
ilDBInterface | $db |
ilTree | $tree |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 22 of file class.ilFavouritesDBRepository.php.
ilFavouritesDBRepository::__construct | ( | ilDBInterface | $db = null , |
ilTree | $tree = null |
||
) |
ilFavouritesDBRepository::add | ( | int | $user_id, |
int | $ref_id | ||
) |
Definition at line 45 of file class.ilFavouritesDBRepository.php.
References $db, $type, ilObject\_lookupType(), ilDBInterface\fetchAssoc(), ilDBInterface\manipulateF(), and ilDBInterface\queryF().
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...
Definition at line 89 of file class.ilFavouritesDBRepository.php.
References $db, $ilDB, $tree, ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilTree\getNodeData(), ilTree\getParentId(), ILIAS\Repository\int(), and ilTree\isInTree().
ilFavouritesDBRepository::ifIsFavourite | ( | int | $user_id, |
int | $ref_id | ||
) |
Definition at line 170 of file class.ilFavouritesDBRepository.php.
References $db, $ref_id, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
ilFavouritesDBRepository::loadData | ( | int | $user_id, |
array | $ref_ids | ||
) |
Definition at line 192 of file class.ilFavouritesDBRepository.php.
References $db, $ref_id, ilDBInterface\fetchAssoc(), ilDBInterface\in(), ilDBInterface\query(), and ilDBInterface\quote().
ilFavouritesDBRepository::remove | ( | int | $user_id, |
int | $ref_id | ||
) |
Definition at line 70 of file class.ilFavouritesDBRepository.php.
References $db, $ref_id, and ilDBInterface\manipulateF().
ilFavouritesDBRepository::removeFavouritesOfRefId | ( | int | $ref_id | ) |
Definition at line 222 of file class.ilFavouritesDBRepository.php.
References $db, and ilDBInterface\manipulateF().
ilFavouritesDBRepository::removeFavouritesOfUser | ( | int | $user_id | ) |
Definition at line 235 of file class.ilFavouritesDBRepository.php.
References $db, and ilDBInterface\manipulateF().
|
protected |
Definition at line 26 of file class.ilFavouritesDBRepository.php.
Referenced by __construct(), add(), getFavouritesOfUser(), ifIsFavourite(), loadData(), remove(), removeFavouritesOfRefId(), and removeFavouritesOfUser().
|
static |
Definition at line 25 of file class.ilFavouritesDBRepository.php.
|
protected |
Definition at line 27 of file class.ilFavouritesDBRepository.php.
Referenced by __construct(), and getFavouritesOfUser().