Documentation

UserFieldCollection

Collection of user field settings.

class Bitrix\Rpa\UserField\UserFieldCollection implements \Iterator, \ArrayAccess, \Countable

Methods

Method Description Available from version
public function __construct(array $fields, array $visibility = [], array $defaultVisibility = null) Constructor.
  • $fields array with description of user field settings (as in UserField)
  • $visibility array with field settings which must be retrieved via FieldTable::getGroupedList()
  • $defaultVisibility - array with default field settings.
public function getByName(string $fieldName): ?UserField Returns user field object by its code.
public function toArray(): array Returns array of descriptions for all collection user fields.


© «Bitrix24», 2001-2024
Up