Where the elgg saves the profile information of users? Example: Phone, briefDescription, mobile...
I'm developing a search system by phone and I need to recover all the phones on the site. I searched the elgg_users_entity table and did not find this information.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Jerome Bakker@jeabakker

Jerome Bakker - 0 likes
- Thiago Melo@thiago.melo

Thiago Melo - 0 likes
- Thiago Melo@thiago.melo

Thiago Melo - 0 likes
- Jerome Bakker@jeabakker

Jerome Bakker - 0 likes
- Thiago Melo@thiago.melo

Thiago Melo - 0 likes
You must log in to post replies.Almost all 'extra' data for any entity in Elgg is stored in the metadata table (http://docs.elgg.org/wiki/DatabaseSchema)
in your example the phonenumber would be store in that table.
If you want to search a user by phonenumber have a look at the function elgg_get_entities_from_metadata
$options could look something like
array(
'type' => 'user',
'metadata_name_value_pairs' => array(
'name' => 'phone',
'value' => '%$some_var%'
'operand' => 'LIKE'
)
)
Thanks Jerome Bakker!!! It worked perfectly!
Jerome, How can I get all users + phones?
@Thiago Melo:
Assuming phonenumbers are stored in the field "phone"
echo $user->phone;
Or if you wish to use it somewhere else
$result = array();
foreach ($users as $user) {
$result[$user->username] = $user->phone;
or
$result[] = array($user->name, $user->phone);
}
Thanks very much @Jerome Bakker!