SchemeService
extends AirlayService
in package
Class AirlayService
Table of Contents
- $ : AirlayConfig
- $collection : SchemesCollection
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- __construct() : mixed
- create() : SchemeEntityInterface
- getCollection() : mixed
- removeByDataSet() : void
- removeGuideFromSchemes() : void
- syncCollectorFields() : array<string|int, mixed>
- update() : SchemeEntityInterface
- generateView() : View
Properties
$
public
AirlayConfig
$
config
$collection
public
SchemesCollection
$collection
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(mixed $collection) : mixed
Parameters
- $collection : mixed
Return values
mixed —create()
public
create(array<string|int, mixed> $data) : SchemeEntityInterface
Parameters
- $data : array<string|int, mixed>
Return values
SchemeEntityInterface —getCollection()
public
getCollection() : mixed
Return values
mixed —removeByDataSet()
public
removeByDataSet(ObjectId $dataSetId) : void
Parameters
- $dataSetId : ObjectId
Return values
void —removeGuideFromSchemes()
public
removeGuideFromSchemes(ObjectId $guideId) : void
Parameters
- $guideId : ObjectId
Return values
void —syncCollectorFields()
public
syncCollectorFields(Category $category, ObjectId $dataSetId) : array<string|int, mixed>
Parameters
- $category : Category
- $dataSetId : ObjectId
Return values
array<string|int, mixed> —update()
public
update(array<string|int, mixed> $data) : SchemeEntityInterface
Parameters
- $data : array<string|int, mixed>
Return values
SchemeEntityInterface —generateView()
private
generateView(array<string|int, mixed> $fields) : View
Parameters
- $fields : array<string|int, mixed>