ClientSummaryAdapter
FinalYes
Table of Contents
Methods
- __construct() : mixed
- getItemListSliderEndpoint() : Uri|null
- getLatestCallSummaryJsParams() : array<string|int, mixed>|null
- Returns params for BX.Crm.AI.Call.Summary. You can use \CUtil::PhpToJSObject to inject these params to frontend
- getLatestClosedItemUrl() : Uri|null
- getLatestItemUrl() : Uri|null
- getLatestWebFormSliderEndpoint() : Uri|null
- getLostItemListSliderEndpoint() : Uri|null
- getSuccessfulItemListSliderEndpoint() : Uri|null
- renderOpportunityWithCurrency() : string|null
- Render just opportunity with currency, like $1. If there is not enough data to render, will return null.
- renderTotalOpportunity() : string
- Default method to show a total sum of summary in the UI.
Methods
__construct()
public
__construct(ClientSummary $summary[, Router|null $router = null ][, Factory|null $itemsFactory = null ][, Contact|Company|null $clientBroker = null ]) : mixed
Parameters
- $summary : ClientSummary
- $router : Router|null = null
- $itemsFactory : Factory|null = null
- $clientBroker : Contact|Company|null = null
getItemListSliderEndpoint()
public
getItemListSliderEndpoint() : Uri|null
Return values
Uri|nullgetLatestCallSummaryJsParams()
Returns params for BX.Crm.AI.Call.Summary. You can use \CUtil::PhpToJSObject to inject these params to frontend
public
getLatestCallSummaryJsParams() : array<string|int, mixed>|null
Tags
Return values
array<string|int, mixed>|null —- returns null if there was no activity found
getLatestClosedItemUrl()
public
getLatestClosedItemUrl() : Uri|null
Return values
Uri|nullgetLatestItemUrl()
public
getLatestItemUrl() : Uri|null
Return values
Uri|nullgetLatestWebFormSliderEndpoint()
public
getLatestWebFormSliderEndpoint() : Uri|null
Return values
Uri|nullgetLostItemListSliderEndpoint()
public
getLostItemListSliderEndpoint() : Uri|null
Return values
Uri|nullgetSuccessfulItemListSliderEndpoint()
public
getSuccessfulItemListSliderEndpoint() : Uri|null
Return values
Uri|nullrenderOpportunityWithCurrency()
Render just opportunity with currency, like $1. If there is not enough data to render, will return null.
public
renderOpportunityWithCurrency() : string|null
Return values
string|nullrenderTotalOpportunity()
Default method to show a total sum of summary in the UI.
public
renderTotalOpportunity() : string
If there is not enough data to render, it will fall back to an empty value placeholder.