|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilRecommendedContentDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db=null) | |
| addRoleRecommendation (int $role_id, int $ref_id) | |
| removeRoleRecommendation (int $role_id, int $ref_id) | |
| addObjectRecommendation (int $user_id, int $ref_id) | |
| removeObjectRecommendation (int $user_id, int $ref_id) | |
| removeRecommendationsOfRefId (int $ref_id) | |
| removeRecommendationsOfUser (int $user_id) | |
| removeRecommendationsOfRole (int $role_id) | |
| declineObjectRecommendation (int $user_id, int $ref_id) | |
| getRecommendationsOfRoles (array $role_ids) | |
| Get recommendations of roles. More... | |
| getOpenRecommendationsOfUser (int $user_id, array $role_ids) | |
| Open recommendations of user (by role or object, without declined ones) More... | |
Protected Member Functions | |
| ifExistsObjectRecommendation (int $user_id, int $ref_id) | |
| getUserObjectRecommendations (int $user_id) | |
| Get user object recommendations. More... | |
| getDeclinedUserObjectRecommendations (int $user_id) | |
| Get declined user object recommendations. More... | |
Protected Attributes | |
| ilDBInterface | $db |
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 Recommended content db repository
Table rep_rec_content_obj (A repo object is directly recommended for a user, users can decline recommendations)
Table rep_rec_content_role (A repo object is recommended for users of a role)
Definition at line 33 of file class.ilRecommendedContentDBRepository.php.
| ilRecommendedContentDBRepository::__construct | ( | ilDBInterface | $db = null | ) |
Definition at line 37 of file class.ilRecommendedContentDBRepository.php.
| ilRecommendedContentDBRepository::addObjectRecommendation | ( | int | $user_id, |
| int | $ref_id | ||
| ) |
Definition at line 72 of file class.ilRecommendedContentDBRepository.php.
References $db, $ref_id, ifExistsObjectRecommendation(), and ilDBInterface\insert().
Here is the call graph for this function:| ilRecommendedContentDBRepository::addRoleRecommendation | ( | int | $role_id, |
| int | $ref_id | ||
| ) |
Definition at line 46 of file class.ilRecommendedContentDBRepository.php.
References $db, $ref_id, and ilDBInterface\replace().
Here is the call graph for this function:| ilRecommendedContentDBRepository::declineObjectRecommendation | ( | int | $user_id, |
| int | $ref_id | ||
| ) |
Definition at line 157 of file class.ilRecommendedContentDBRepository.php.
References $db, $ref_id, ifExistsObjectRecommendation(), ilDBInterface\insert(), and ilDBInterface\update().
Here is the call graph for this function:
|
protected |
Get declined user object recommendations.
Definition at line 221 of file class.ilRecommendedContentDBRepository.php.
References $db, ilDBInterface\fetchAll(), and ilDBInterface\queryF().
Referenced by getOpenRecommendationsOfUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRecommendedContentDBRepository::getOpenRecommendationsOfUser | ( | int | $user_id, |
| array | $role_ids | ||
| ) |
Open recommendations of user (by role or object, without declined ones)
| int[] | $role_ids |
Definition at line 240 of file class.ilRecommendedContentDBRepository.php.
References $i, getDeclinedUserObjectRecommendations(), getRecommendationsOfRoles(), and getUserObjectRecommendations().
Referenced by ilRecommendedContentManager\getOpenRecommendationsOfUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRecommendedContentDBRepository::getRecommendationsOfRoles | ( | array | $role_ids | ) |
Get recommendations of roles.
| int[] | $role_ids |
Definition at line 187 of file class.ilRecommendedContentDBRepository.php.
References $db, ilDBInterface\fetchAll(), ilDBInterface\in(), and ilDBInterface\query().
Referenced by getOpenRecommendationsOfUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get user object recommendations.
Definition at line 203 of file class.ilRecommendedContentDBRepository.php.
References $db, ilDBInterface\fetchAll(), and ilDBInterface\queryF().
Referenced by getOpenRecommendationsOfUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 141 of file class.ilRecommendedContentDBRepository.php.
References $db, $ref_id, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by addObjectRecommendation(), and declineObjectRecommendation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRecommendedContentDBRepository::removeObjectRecommendation | ( | int | $user_id, |
| int | $ref_id | ||
| ) |
Definition at line 85 of file class.ilRecommendedContentDBRepository.php.
References $db, $ref_id, and ilDBInterface\manipulateF().
Here is the call graph for this function:| ilRecommendedContentDBRepository::removeRecommendationsOfRefId | ( | int | $ref_id | ) |
Definition at line 97 of file class.ilRecommendedContentDBRepository.php.
References $db, $ref_id, and ilDBInterface\manipulateF().
Here is the call graph for this function:| ilRecommendedContentDBRepository::removeRecommendationsOfRole | ( | int | $role_id | ) |
Definition at line 128 of file class.ilRecommendedContentDBRepository.php.
References $db, and ilDBInterface\manipulateF().
Here is the call graph for this function:| ilRecommendedContentDBRepository::removeRecommendationsOfUser | ( | int | $user_id | ) |
Definition at line 116 of file class.ilRecommendedContentDBRepository.php.
References $db, and ilDBInterface\manipulateF().
Here is the call graph for this function:| ilRecommendedContentDBRepository::removeRoleRecommendation | ( | int | $role_id, |
| int | $ref_id | ||
| ) |
Definition at line 60 of file class.ilRecommendedContentDBRepository.php.
References $db, $ref_id, and ilDBInterface\manipulateF().
Here is the call graph for this function:
|
protected |
Definition at line 35 of file class.ilRecommendedContentDBRepository.php.
Referenced by __construct(), addObjectRecommendation(), addRoleRecommendation(), declineObjectRecommendation(), getDeclinedUserObjectRecommendations(), getRecommendationsOfRoles(), getUserObjectRecommendations(), ifExistsObjectRecommendation(), removeObjectRecommendation(), removeRecommendationsOfRefId(), removeRecommendationsOfRole(), removeRecommendationsOfUser(), and removeRoleRecommendation().