Plentymarkets interface documentation
MyView
Contracts
PresetContainerContract
This container contains presets registered at boot time
Namespace
Plenty\Modules\MyView\Contracts
Methods
public registerPresets($presets):voidRegister an array of presets
| Name | Type | Description | 
| 
 | 
public getAll():arrayReturns an array of preset-container collections
public getPresetsForMyViewKey($myViewKey):arrayGet all presets for a given my-view key
| Name | Type | Description | 
| 
 | 
public getPresetsStartingWithMyViewKey($myViewKeyStartsWith):arrayGet all presets from which the my-view key starts with the given string
| Name | Type | Description | 
| 
 | 
public getDefaultPresetsStartingWithMyViewKey($myViewKeyStartsWith):arrayGet all default presets from which the my-view key starts with the given string
| Name | Type | Description | 
| 
 | 
ViewSetNameRepositoryContract
This interface provides a method to update ViewSetNames
Namespace
Plenty\Modules\MyView\Contracts
ViewSetPermissionContract
This interface provides methods to create, get, update and delete ViewSets
Namespace
Plenty\Modules\MyView\Contracts
Methods
public search($searchParams):voidSearch permissions
| Name | Type | Description | 
| 
 | 
public save($data):boolSave permissions
| Name | Type | Description | 
| 
 | 
public updateDefaultViewSetRelation($relations, $key):voidUpdate given default view set relations.
| Name | Type | Description | 
| 
 | ||
| 
 | 
public updateViewSetRelation($relations, $viewSetId):voidUpdate given view set relations.
| Name | Type | Description | 
| 
 | ||
| 
 | 
ViewSetRepositoryContract
This interface provides methods to create, get, update and delete ViewSets
Namespace
Plenty\Modules\MyView\Contracts
Methods
public search($searchParams):voidSearch the list of view sets.
| Name | Type | Description | 
| 
 | 
public get($id):voidGet given view set.
| Name | Type | Description | 
| 
 | 
public create($data):voidCreate given view set.
| Name | Type | Description | 
| 
 | 
public update($id, $data):voidUpdate given view set.
| Name | Type | Description | 
| 
 | ||
| 
 | 
public delete($id):voidDelete given view set.
| Name | Type | Description | 
| 
 | 
public setActive($userId, $viewSetId, $viewSetKey):voidSet the given view set active by user id
| Name | Type | Description | 
| 
 | ||
| 
 | ||
| 
 |