KnownUserService¶
-
class
OC\KnownUser\
KnownUserService
¶ Source: lib/private/KnownUser/KnownUserService.php#26
Properties¶
-
protected static property
OC\KnownUser\KnownUserService::$
mapper
¶ Source: lib/private/KnownUser/KnownUserService.php#28 Type: \OC\KnownUser\KnownUserMapper
-
protected static property
OC\KnownUser\KnownUserService::$
knownUsers
¶ Source: lib/private/KnownUser/KnownUserService.php#30 Type: array
Methods¶
-
public
OC\KnownUser\KnownUserService::
__construct
($mapper)¶ Source: lib/private/KnownUser/KnownUserService.php#32
-
public
OC\KnownUser\KnownUserService::
deleteKnownTo
($knownTo)¶ - Delete all matches where the given user is the owner of the phonebook
Source: Parameters: - $knownTo (string)
Returns: int Number of deleted matches
-
public
OC\KnownUser\KnownUserService::
deleteByContactUserId
($contactUserId)¶ - Delete all matches where the given user is the one in the phonebook
Source: Parameters: - $contactUserId (string)
Returns: int Number of deleted matches
-
public
OC\KnownUser\KnownUserService::
storeIsKnownToUser
($knownTo, $contactUserId)¶ - Store a match because $knownTo has $contactUserId in his phonebook
Source: Parameters: - $knownTo (string) User id of the owner of the phonebook
- $contactUserId (string) User id of the contact in the phonebook
-
public
OC\KnownUser\KnownUserService::
isKnownToUser
($knownTo, $contactUserId)¶ - Check if $contactUserId is in the phonebook of $knownTo
Source: Parameters: - $knownTo (string) User id of the owner of the phonebook
- $contactUserId (string) User id of the contact in the phonebook
Returns: bool