87 public function hasSubscriptions(
int $user_guid = 0,
string|array
$methods = []): bool {
132 public function removeSubscriptions(
int $user_guid = 0,
string|array
$methods = []): bool {
170 public function getSubscribers(
string|array
$methods = []): array {
183 public function muteNotifications(
int $user_guid = 0): bool {
198 public function hasMutedNotifications(
int $user_guid = 0): bool {
213 public function unmuteNotifications(
int $user_guid = 0): bool {
229 protected function normalizeSubscriptionMethods(
string|array
$methods = []): array {
233 if (!is_string($method) || $method ===
'') {
234 $dbt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
235 $caller = $dbt[1][
'function'] ??
'unknown';
237 throw new InvalidArgumentException(
elgg_echo(
'Entity:Subscriptions:InvalidMethodsException', [$caller]));
Exception thrown if an argument is not of the expected type.
_elgg_services()
Get the global service provider.
get_user(int $guid)
Elgg users Functions to manage multiple or single users in an Elgg install.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.