Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Search
GroupSearchProfileFieldsHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Search
;
4
5
use
Elgg\Hook
;
6
11
class
GroupSearchProfileFieldsHandler
{
12
22
public
function
__invoke
(
Hook
$hook) {
23
24
$value
= (array) $hook->
getValue
();
25
26
$defaults
= [
27
'metadata'
=> [],
28
];
29
30
$value
= array_merge(
$defaults
,
$value
);
31
32
$profile_fields = array_keys((array)
elgg_get_config
(
'group'
));
33
34
$value
[
'metadata'
] = array_merge(
$value
[
'metadata'
], $profile_fields);
35
36
return
$value
;
37
}
38
}
Elgg\Search
Definition:
GroupSearchFieldsHandler.php:3
$defaults
$defaults
Definition:
autocomplete.php:29
Hook
Elgg\Hook\getValue
getValue()
Get the current value of the hook.
Elgg\Hook
Models an event passed to hook handlers.
Definition:
Hook.php:12
Elgg\Search\GroupSearchProfileFieldsHandler\__invoke
__invoke(Hook $hook)
Search through the group profile fields.
Definition:
GroupSearchProfileFieldsHandler.php:22
Elgg\Search\GroupSearchProfileFieldsHandler
Definition:
GroupSearchProfileFieldsHandler.php:11
$value
$value
Definition:
debugging.php:7
elgg_get_config
elgg_get_config($name, $default=null)
Get an Elgg configuration value.
Definition:
configuration.php:105
Generated on Tue Mar 2 2021 00:00:20 for Elgg by
1.8.11