Problem with core_user_get_users_by_field

Re: Problem with core_user_get_users_by_field

by Владимир Филиппов -
Number of replies: 0
Understood with the help of examples in the file /user/tests/externallib_test.php

User data is obtained through:
$searchparams = array(
array('key' => 'email', 'value' => 'myemail@mypochta.ru')
);
$result = core_user_external::get_users($searchparams);

Create:
$user = array(
'username' => loginmy,
'password' => 'pswd123',
'firstname' => 'Vvladimir',
'lastname' => 'Filippovv',
'middlename' => 'Vladimirovich',
'email' => 'loginmy@email.fake'
);
$result_insert = core_user_external::create_users(array($user));
Average of ratings: Useful (1)