MyView

Contracts

ViewSetNameRepositoryContract

This interface provides a method to update ViewSetNames

Namespace

Plenty\Modules\MyView\Contracts

Methods

public updateViewSetName(string $name, int $id):void

Update given view set name.

Parameters
string $name
int $id

ViewSetPermissionContract

This interface provides methods to create, get, update and delete ViewSets

Namespace

Plenty\Modules\MyView\Contracts

Methods

public search(array $searchParams):void

Search permissions

Parameters
array $searchParams
public save(array $data):bool

Save permissions

Parameters
array $data
public updateDefaultViewSetRelation(array $relations, string $key):void

Update given default view set relations.

Parameters
array $relations
string $key
public updateViewSetRelation(array $relations, int $viewSetId):void

Update given view set relations.

Parameters
array $relations
int $viewSetId

ViewSetRepositoryContract

This interface provides methods to create, get, update and delete ViewSets

Namespace

Plenty\Modules\MyView\Contracts

Methods

public search(array $searchParams):void

Search the list of view sets.

Parameters
array $searchParams
public get(int $id):void

Get given view set.

Parameters
int $id
public create(array $data):void

Create given view set.

Parameters
array $data
public update(int $id, array $data):void

Update given view set.

Parameters
int $id
array $data
public delete(int $id):void

Delete given view set.

Parameters
int $id
public setActive(int $userId, int $viewSetId, string $viewSetKey):void

Set the given view set active by user id

Parameters
int $userId
int $viewSetId
string $viewSetKey