| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Collaboration diagram for ilFavouritesDBRepository: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 | 
Definition at line 24 of file class.ilFavouritesDBRepository.php.
| ilFavouritesDBRepository::__construct | ( | ilDBInterface | $db = null,  | 
        
| ilTree | $tree = null  | 
        ||
| ) | 
| ilFavouritesDBRepository::add | ( | int | $user_id, | 
| int | $ref_id | ||
| ) | 
Definition at line 46 of file class.ilFavouritesDBRepository.php.
References $db, ilObject\_lookupType(), ilDBInterface\fetchAssoc(), ilDBInterface\manipulateF(), and ilDBInterface\queryF().
 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...
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().
 Here is the call graph for this function:| ilFavouritesDBRepository::ifIsFavourite | ( | int | $user_id, | 
| int | $ref_id | ||
| ) | 
Definition at line 171 of file class.ilFavouritesDBRepository.php.
References $db, $ref_id, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
 Here is the call graph for this function:| ilFavouritesDBRepository::loadData | ( | int | $user_id, | 
| array | $ref_ids | ||
| ) | 
Definition at line 194 of file class.ilFavouritesDBRepository.php.
References $db, $r, $ref_id, ilDBInterface\fetchAssoc(), ilDBInterface\in(), ilDBInterface\query(), and ilDBInterface\quote().
 Here is the call graph for this function:| ilFavouritesDBRepository::remove | ( | int | $user_id, | 
| int | $ref_id | ||
| ) | 
Definition at line 71 of file class.ilFavouritesDBRepository.php.
References $db, $ref_id, and ilDBInterface\manipulateF().
 Here is the call graph for this function:| ilFavouritesDBRepository::removeFavouritesOfRefId | ( | int | $ref_id | ) | 
Definition at line 226 of file class.ilFavouritesDBRepository.php.
References $db, and ilDBInterface\manipulateF().
 Here is the call graph for this function:| ilFavouritesDBRepository::removeFavouritesOfUser | ( | int | $user_id | ) | 
Definition at line 239 of file class.ilFavouritesDBRepository.php.
References $db, and ilDBInterface\manipulateF().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 28 of file class.ilFavouritesDBRepository.php.
Referenced by __construct(), add(), getFavouritesOfUser(), ifIsFavourite(), loadData(), remove(), removeFavouritesOfRefId(), and removeFavouritesOfUser().
      
  | 
  static | 
Definition at line 27 of file class.ilFavouritesDBRepository.php.
      
  | 
  protected | 
Definition at line 29 of file class.ilFavouritesDBRepository.php.
Referenced by __construct(), and getFavouritesOfUser().