79 'metadata_name_value_pairs' => [
83 'case_sensitive' =>
false,
89 return $users ? $users[0] :
false;
105 'metadata_name_value_pairs' => [
109 'case_sensitive' =>
false,
115 return $users ? : [];
134 'limit' => $this->config->default_limit,
138 foreach ([
'seconds',
'limit',
'offset'] as
$key) {
153 if (
$data !== null) {
213 if (!preg_match(
'~^(\d+)\.([a-zA-Z0-9\-_]+)$~',
$code, $m)) {
if(!$user||!$user->canDelete()) $name
$params
Saves global plugin settings.
findActive(array $options=[])
Return users (or the number of them) who have been active within a recent period. ...
const ELGG_VALUE_INTEGER
Value types.
if(elgg_trigger_plugin_hook('usersettings:save', 'user', $hooks_params, true)) foreach($request->validation() ->all() as $item) $data
Database abstraction query builder.
getCurrentTime($modifier= '')
Get the (cloned) time.
getByEmail($email)
Get an array of users from an email address.
getByUsername($username)
Get user by username.
if(!$user||!$user->canEdit()) $password
__construct(Conf $config, Database $db, MetadataTable $metadata)
Constructor.
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
if(!$entity instanceof ElggEntity) $time
compare($x, $comparison, $y=null, $type=null, $case_sensitive=null)
Build value comparison clause.
validateInviteCode($username, $code)
Validate a user's invite code.
Extends QueryBuilder with ORDER BY clauses.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
generateInviteCode($username)
Generates a unique invite code for a user.
_elgg_services()
Get the global service provider.
trait TimeUsing
Adds methods for setting the current time (for testing)