D7 API documentation
What's New
Modules
Available fields
New invoices
Composite Identifiers
New CRM API
SPA type preset
Bindings
Client in CRM
Items
Accounting
Broker
Collection
Container
Context
Converter
Director
DynamicTypesMap
EditorAdapter
EventHandler
Factory
FileUploader
Localization
ParentFieldManager
Scenario
TypesMap
UserPermissions
Collection
Service\Collection
Class for collection of scenarios. Reproduces interfaces \Iterator
, \Countable
.
Method | Description | Available from version |
---|---|---|
public function __construct(array $scenarios) |
Constructor. $scenarios - array with scenarios. | |
public function add(Scenario $scenario): self |
Adds a new $scenario to collection. | |
public function playAll(): Result |
Sequentially launches all collection scenarios. An error during scenario execution stops all the rest of scenarios.
Returns Result, containing data with collected all scenario contents. |
© «Bitrix24», 2001-2024
Up