method
public
static
Livefeed::prepareToolbarButtons()
Сигнатура
public static prepareToolbarButtons(array<string|int, mixed> &$buttons[, array<string|int, mixed> $params = null ]) : int
Параметры
$buttons
array<string|int, mixed>
$params
array<string|int, mixed>
= null
Возвращаемое значение
int
Как применяется в Livefeed
Livefeed::prepareToolbarButtons() — метод класса \Bitrix\Crm\Activity\Provider\Livefeed модуля «CRM».
Статический метод — вызывается через имя класса Livefeed, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Crm\Activity\Provider\Livefeed;
Loader::includeModule('crm');
$buttons = [];
$result = Livefeed::prepareToolbarButtons($buttons);
// $result: intДругие методы Livefeed
addActivity()addComment()canAddCalendarEvents()canCompleteOnView()canKeepCompletedInCalendar()canKeepReassignedInCalendar()canUseCalendarEvents()canUseCommunicationStatistics()canUseLiveFeedEvents()checkCompletePermission()checkFields()checkForWaitingCompletion()
prepareToolbarButtons() есть и у других классов модуля «CRM»: Base, Call, CallList, ExternalChannel, OpenLine, ProviderManager, Visit, Wait.
Исходный файл: source/crm/lib/activity/provider/livefeed.php:236

