ContentBuilder

Contracts

ContentStorageRepositoryContract

This module is deprecated. Use module 'Shop Builder' instead.

Namespace

Plenty\Modules\ContentBuilder\Contracts

Methods

public createContentData(int $contentId, array $widgetData):void
Parameters
int $contentId
array $widgetData
public getContentData(int $contentId):void
Parameters
int $contentId

Widget

This module is deprecated. Use module 'Shop Builder' instead.

Namespace

Plenty\Modules\ContentBuilder\Contracts

Methods

public getPreview(array $widgetSettings = [], array $children = []):string

Get the html representation of the widget

Parameters
array $widgetSettings
array $children
public render(array $widgetSettings = [], array $children = []):string

Render the widget

Parameters
array $widgetSettings
array $children

ContentLinkRepositoryContract

This module is deprecated. Use module 'Shop Builder' instead.

Namespace

Plenty\Modules\ContentBuilder\Contracts

Methods

public listContentsLinks(int $page = 1, int $itemsPerPage = 50, array $with = [], array $filters = []):PaginatedResult
Parameters
int $page
int $itemsPerPage
array $with
array $filters
public getContentLink(int $contentLinkId):void
Parameters
int $contentLinkId
public createContentLink(array $data):void
Parameters
array $data
public updateContentLink(array $data, int $contentLinkId):void
Parameters
array $data Request data
int $contentLinkId The ID of the content link
public getContentLinksForContainer(string $container, int $setId = null):void
Parameters
string $container
int $setId
public clearCriteria():void

Resets all Criteria filters by creating a new instance of the builder object.

public applyCriteriaFromFilters():void

Applies criteria classes to the current repository.

public setFilters(array $filters = []):void

Sets the filter array.

Parameters
array $filters
public getFilters():void

Returns the filter array.

public getConditions():void

Returns a collection of parsed filters as Condition object

public clearFilters():void

Clears the filter array.

ContentRepositoryContract

This module is deprecated. Use module 'Shop Builder' instead.

Namespace

Plenty\Modules\ContentBuilder\Contracts

Methods

public listContents(int $page = 1, int $itemsPerPage = 50, array $with = [], array $filters = []):PaginatedResult
Parameters
int $page
int $itemsPerPage
array $with
array $filters
public listAllContents():array
public getContent(int $contentId):void
Parameters
int $contentId
public getContentsByPage(string $pageIdentifier):Collection
Parameters
string $pageIdentifier
public createContent(string $dataProviderName):void
Parameters
string $dataProviderName
public updateContent(array $data, int $contentId):void
Parameters
array $data Request data
int $contentId The ID of the content
public clearCriteria():void

Resets all Criteria filters by creating a new instance of the builder object.

public applyCriteriaFromFilters():void

Applies criteria classes to the current repository.

public setFilters(array $filters = []):void

Sets the filter array.

Parameters
array $filters
public getFilters():void

Returns the filter array.

public getConditions():void

Returns a collection of parsed filters as Condition object

public clearFilters():void

Clears the filter array.

Models

Content

This module is deprecated. Use module 'Shop Builder' instead.

Namespace

Plenty\Modules\ContentBuilder\Models

Properties

Type Name Description
int id The ID of the content
string dataProviderName The name of the data provider
string contentData The data of the content
createdAt The date when the content was created
updatedAt The date when the content was last updated
string type The type of the content

Methods

public toArray()

Returns this model as an array.

ContentLink

This module is deprecated. Use module 'Shop Builder' instead.

Namespace

Plenty\Modules\ContentBuilder\Models

Properties

Type Name Description
int id The ID of the content link
int contentId The ID of the content
string containerName The name of the container
int pluginSetId The Id of the plugin set
createdAt The date when the content was created
updatedAt The date when the content was last updated

Methods

public toArray()

Returns this model as an array.