BindingService
class BindingService implements LoggerAwareInterface (View source)
Traits
Trait LoggerAwareTrait A trait used with LoggerAwareInterface
Properties
protected DatabaseManager | $databaseManager |
Methods
Get the logger channel expected by this LoggerAwareTrait implementation The user is expected to declare this method and return a valid channel name.
Clear bindings for BOTH the given binding and for the given user id in a given namespace.
Get the bound user id.
Get the bound binding.
Bind a user against a remote binding in a namespace
EX: $bindings->bindUserId($id, $facebookUserId, 'facebook');
.
Bind a user info object to a given binding.
Bind a user entity object to a given binding.
No description
Details
getLoggerChannel()
Get the logger channel expected by this LoggerAwareTrait implementation The user is expected to declare this method and return a valid channel name.
__construct(DatabaseManager $databaseManager)
No description
int
clearBinding(int $userId, int|string $binding, string $namespace, bool $matchBoth = false)
Clear bindings for BOTH the given binding and for the given user id in a given namespace.
int|null
getBoundUserId(int|string $binding, string $namespace)
Get the bound user id.
string|null
getUserBinding(int $userId, string $namespace)
Get the bound binding.
bool
bindUserId(int $id, int|string $binding, string $namespace)
Bind a user against a remote binding in a namespace
EX: $bindings->bindUserId($id, $facebookUserId, 'facebook');
.
bool
bindUser(User $user, int|string $binding, string $namespace)
Bind a user object to a given binding.
bool
bindUserInfo(UserInfo $user, int|string $binding, string $namespace)
Bind a user info object to a given binding.
bool
bindUserEntity(User $user, int|string $binding, string $namespace)
Bind a user entity object to a given binding.
protected Connection
getConnection()
No description