private static function getUserSelectorContentFields()
{
static $cache = null;
if ($cache === null)
{
$result = Option::get('main', 'user_selector_search_fields', '');
if (empty($result))
{
$result = [];
}
else
{
$result = unserialize($result);
}
if (!is_array($result))
{
$result = [];
}
$result = array_intersect(array_keys(self::getEntity()->getFields()), $result);
$result = array_merge($result, [ 'NAME', 'LAST_NAME'] );
$cache = $result;
}
else
{
$result = $cache;
}
return $result;
}