Plentymarkets interface documentation
Property
Contracts
PropertyAmazonRepositoryContract
This interface allows you to get, create, update and delete property amazons.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyAmazonRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getPropertyAmazon($propertyAmazonId):Plenty\Modules\Property\Models\PropertyAmazon
Return type: PropertyAmazon
Gets a property amazon. The ID of the property amazon must be specified.
Name |
Type |
Description |
|
public listPropertyAmazons($with = [], $filters = []):array
List property amazons
Name |
Type |
Description |
|
||
|
The filter available is: <ol><li>propertyId</li></ol> |
public createPropertyAmazon($data):Plenty\Modules\Property\Models\PropertyAmazon
Return type: PropertyAmazon
Creates one or multiple property amazon
Name |
Type |
Description |
|
The request data |
public updatePropertyAmazon($data):Plenty\Modules\Property\Models\PropertyAmazon
Return type: PropertyAmazon
Updates one or multiple property amazon.
Name |
Type |
Description |
|
public deletePropertyAmazon($propertyAmazonId):void
Deletes a property amazon. The ID of property amazon must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyAvailabilityRepositoryContract
Get, create, update and delete property availability.
Deprecated! (since 2021-06-24)
Please use Property V2 Repositories instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getAvailability($availabilityId):Plenty\Modules\Property\Models\PropertyAvailability
Return type: PropertyAvailability
Gets an availability. The ID of the availability must be specified.
Name |
Type |
Description |
|
The ID of the availability |
public listAvailabilities():array
Lists availabilities
public createAvailability($data):Plenty\Modules\Property\Models\PropertyAvailability
Return type: PropertyAvailability
Creates an availability
Name |
Type |
Description |
|
The request data |
public updateAvailability($availabilityId, $data):Plenty\Modules\Property\Models\PropertyAvailability
Return type: PropertyAvailability
Updates an availability. The ID of availability must be specified.
Name |
Type |
Description |
|
The ID of the availability |
|
|
The request data |
public deleteAvailability($availabilityId):array
Deletes an availability. The ID of availability must be specified.
Name |
Type |
Description |
|
The ID of the availability |
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyGroupNameRepositoryContract
This interface allows you to get, list, create, update and delete property group names.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyGroupNameRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getGroupName($groupNameId):Plenty\Modules\Property\Models\PropertyGroupName
Return type: PropertyGroupName
Gets a group name. The ID of the group name must be specified.
Name |
Type |
Description |
|
The ID of the group name |
public listGroupNames():array
Lists group names
public createGroupName($data):Plenty\Modules\Property\Models\PropertyGroupName
Return type: PropertyGroupName
Creates a group name
Name |
Type |
Description |
|
The request data |
public updateGroupName($groupNameId, $data):Plenty\Modules\Property\Models\PropertyGroupName
Return type: PropertyGroupName
Updates a group name. The ID of the group name must be specified.
Name |
Type |
Description |
|
The ID of the group name |
|
|
The request data |
public deleteGroupName($groupNameId):array
Deletes a group name. The ID of group name must be specified.
Name |
Type |
Description |
|
The ID of the group name |
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyGroupOptionRepositoryContract
This interface allows you to get, create, update and delete property group options.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyGroupOptionRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getGroupOption($groupOptionId):Plenty\Modules\Property\Models\PropertyGroupOption
Return type: PropertyGroupOption
Get a group option. The ID of the group option must be specified.
Name |
Type |
Description |
|
The ID of the group option |
public listGroupOptions():array
List group options
public createGroupOption($data):Plenty\Modules\Property\Models\PropertyGroupOption
Return type: PropertyGroupOption
Creates a group option
Name |
Type |
Description |
|
The request data |
public updateGroupOption($groupOptionId, $data):Plenty\Modules\Property\Models\PropertyGroupOption
Return type: PropertyGroupOption
Updates a group option. The ID of group option must be specified.
Name |
Type |
Description |
|
The ID of the group option |
|
|
The request data |
public deleteGroupOption($groupOptionId):array
Deletes a group option. The ID of group option must be specified.
Name |
Type |
Description |
|
The ID of the group option |
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyGroupRelationRepositoryContract
This interface allows you to link or unlink properties with a property group.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyGroupRelationRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public link($propertyId, $propertyGroupId):bool
Links a property to a property group.
Name |
Type |
Description |
|
||
|
public unlink($propertyId, $propertyGroupId):bool
Unlinks a property to a property group.
Name |
Type |
Description |
|
||
|
PropertyGroupRepositoryContract
This interface allows you to get, list, create, update and delete property groups. Property groups help to structure properties.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyGroupRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getGroup($groupId):Plenty\Modules\Property\Models\PropertyGroup
Return type: PropertyGroup
Gets a property group. The ID of the group must be specified.
Name |
Type |
Description |
|
The ID of the group |
public listGroups($page = 1, $itemsPerPage = 50, $with = [], $filters = [], $paginate = 1):array
Lists property groups
Name |
Type |
Description |
|
The page to get. The default page that will be returned is page 1. See also $paginate. |
|
|
The number of groups to be displayed per page. The default number of groups per page is 50. See also $paginate. |
|
|
The relations available are: <ol><li>properties,</li> <li>options and</li> <li>names.</li></ol> |
|
|
The filters allow to reduce the results listed. The following filters are currently availablle: <ol><li>ID</li> <li>name</li> <li>lang</li> <li>optionIdentifier</li> <li>groupType</li> <li>surchargeType/li></ol> |
|
|
Defines whether or not the result will be a paginated result or a list with all results. If 1 is given for the parameter, the result will be paginated. |
public createGroup($data):Plenty\Modules\Property\Models\PropertyGroup
Return type: PropertyGroup
Creates a property group
Name |
Type |
Description |
|
The request data |
public updateGroup($groupId, $data):Plenty\Modules\Property\Models\PropertyGroup
Return type: PropertyGroup
Updates a property group. The ID of group must be specified.
Name |
Type |
Description |
|
The ID of the group |
|
|
The request data |
public deleteGroup($groupId):array
Deletes a property group. The ID of group must be specified.
Name |
Type |
Description |
|
The ID of the group |
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyMarketRepositoryContract
This interface allows you to get, list, create, update and delete property markets.
Deprecated! (since 2021-06-24)
Please use Property V2 Repositories instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getPropertyMarket($propertyMarketId):Plenty\Modules\Property\Models\PropertyMarket
Return type: PropertyMarket
Gets a property market. The ID of the property market must be specified.
Name |
Type |
Description |
|
The ID of the property market |
public listPropertyMarkets():array
Lists property markets
public createPropertyMarket($data):Plenty\Modules\Property\Models\PropertyMarket
Return type: PropertyMarket
Creates a property market
Name |
Type |
Description |
|
The request data |
public updatePropertyMarket($propertyMarketId, $data):Plenty\Modules\Property\Models\PropertyMarket
Return type: PropertyMarket
Updates a property market. The ID of property market must be specified.
Name |
Type |
Description |
|
The ID of the property market |
|
|
The request data |
public deletePropertyMarket($propertyMarketId):array
Deletes a property market. The ID of property market must be specified.
Name |
Type |
Description |
|
The ID of the property market |
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyNameRepositoryContract
This interface allows you to get, list, create, update and delete property names.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyNameRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getName($nameId):Plenty\Modules\Property\Models\PropertyName
Return type: PropertyName
Gets a property name. The ID of the property name must be specified.
Name |
Type |
Description |
|
The ID of the name |
public listNames($filters = []):array
Lists property names
Name |
Type |
Description |
|
public createName($data):Plenty\Modules\Property\Models\PropertyName
Return type: PropertyName
Creates a property name
Name |
Type |
Description |
|
The request data |
public updateName($nameId, $data):Plenty\Modules\Property\Models\PropertyName
Return type: PropertyName
Updates a property name. The ID of property name must be specified.
Name |
Type |
Description |
|
The ID of the name |
|
|
public deleteName($nameId):array
Deletes a property name. The ID of property name must be specified.
Name |
Type |
Description |
|
The ID of the name |
public getPropertyByName($name):Plenty\Modules\Property\Models\PropertyName
Return type: PropertyName
Get a property name by name
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyOptionRepositoryContract
This interface allows you to get, list, create, update and delete property options.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyOptionRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getPropertyOption($propertyOptionId):Plenty\Modules\Property\Models\PropertyOption
Return type: PropertyOption
Gets a property option. The ID of the property option must be specified.
Name |
Type |
Description |
|
public listPropertyOptions():array
List property options
public createPropertyOption($data):Plenty\Modules\Property\Models\PropertyOption
Return type: PropertyOption
Creates a property option
Name |
Type |
Description |
|
The request data |
public createPropertyOptions($data):array
Creates property options
Name |
Type |
Description |
|
The request data |
public updatePropertyOption($propertyOptionId, $data):Plenty\Modules\Property\Models\PropertyOption
Return type: PropertyOption
Updates a property option. The ID of property option must be specified.
Name |
Type |
Description |
|
||
|
public deletePropertyOption($propertyOptionId):array
Deletes a property option. The ID of property option must be specified.
Name |
Type |
Description |
|
public deletePropertyOptions($optionIds):array
Delete one or more property options.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationMarkupRepositoryContract
This interface allows you to get, list, create, update and delete property relation markups.
Deprecated! (since 2021-06-24)
Please use Property V2 Repositories instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getRelationMarkup($relationMarkupId):Plenty\Modules\Property\Models\PropertyRelationMarkup
Return type: PropertyRelationMarkup
Get a property relation markup. The ID of the property relation markup must be specified.
Name |
Type |
Description |
|
public listRelationMarkups():array
List property relation markups
public createRelationMarkup($data):Plenty\Modules\Property\Models\PropertyRelationMarkup
Return type: PropertyRelationMarkup
Creates a property relation markup
Name |
Type |
Description |
|
The request data |
public updateRelationMarkup($relationMarkupId, $data):Plenty\Modules\Property\Models\PropertyRelationMarkup
Return type: PropertyRelationMarkup
Updates a property relation markup. The ID of property relation markup must be specified.
Name |
Type |
Description |
|
||
|
public deleteRelationMarkup($relationMarkupId):void
Deletes a property relation markup. The ID of property relation markup must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationRepositoryContract
This interface allows you to get, create, update and delete property relations.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyRelationRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getRelation($relationId):Plenty\Modules\Property\Models\PropertyRelation
Return type: PropertyRelation
Gets a property relation. The ID of the property relation must be specified.
Name |
Type |
Description |
|
public listRelations($filters = [], $page = 1, $itemsPerPage = 50, $paginate, $sorting = []):array
List property relations
Name |
Type |
Description |
|
||
|
||
|
||
|
||
|
public createRelation($data):Plenty\Modules\Property\Models\PropertyRelation
Return type: PropertyRelation
Creates a property relation
Name |
Type |
Description |
|
The request data |
public updateRelation($relationId, $data):Plenty\Modules\Property\Models\PropertyRelation
Return type: PropertyRelation
Updates a property relation. The ID of property relation must be specified.
Name |
Type |
Description |
|
||
|
public deleteRelation($relationId):void
Deletes a property relation. The ID of property relation must be specified.
Name |
Type |
Description |
|
public savePropertyRelationFile($relationId, $data, $file = ""):string
Save property relation file to S3
Name |
Type |
Description |
|
||
|
||
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationValueRepositoryContract
This interface allows you to get, create, update and delete property relation values.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyRelationValueRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getPropertyRelationValue($propertyRelationValueId):Plenty\Modules\Property\Models\PropertyRelationValue
Return type: PropertyRelationValue
Gets an property relation value. The ID of the property relation value must be specified.
Name |
Type |
Description |
|
public listPropertyRelationValues():array
List property relation values
public createPropertyRelationValue($data):Plenty\Modules\Property\Models\PropertyRelationValue
Return type: PropertyRelationValue
Creates an property relation value
Name |
Type |
Description |
|
The request data |
public updatePropertyRelationValue($propertyRelationValueId, $data):Plenty\Modules\Property\Models\PropertyRelationValue
Return type: PropertyRelationValue
Updates a property relation value. The ID of property relation value must be specified.
Name |
Type |
Description |
|
||
|
public updatePropertyRelationValues($data):Plenty\Modules\Property\Models\PropertyRelationValue
Return type: PropertyRelationValue
Update multiple property relation values
Name |
Type |
Description |
|
public deletePropertyRelationValue($propertyRelationValueId):void
Delete a property relation value
Name |
Type |
Description |
|
public deleteRelationsByRelationId($relationId):void
Delete all property relation values of a specified property relation.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRepositoryContract
This interface allows you to get, create, update and delete properties.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertyRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getProperty($propertyId, $with = []):Plenty\Modules\Property\Models\Property
Return type: Property
Gets a property. The ID of the property must be specified.
Name |
Type |
Description |
|
The id of the property |
|
|
The relations available are: <ol><li>availibilities</li> <li>relation</li> <li>selections</li> <li>names</li> <li>options</li> <li>markets</li> <li>groups</li></ol> |
public listProperties($page = 1, $itemsPerPage = 50, $with = [], $filters = [], $paginate = 1, $orderBy = []):array
Lists properties
Name |
Type |
Description |
|
The page to get. The default page that will be returned is page 1. See also $paginate. |
|
|
The number of properties to be displayed per page. The default number of properties per page is 50. See also $paginate. |
|
|
The relations available are: <ol><li>availibilities</li> <li>relation</li> <li>selections</li> <li>names</li> <li>options</li> <li>markets</li> <li>groups</li></ol> |
|
|
The following filters are available: <ol><li>id</li> <li>cast</li> <li>position</li> <li>name</li> <li>lang</li> <li>group</li></ol> |
|
|
Defines whether or not the result will be a paginated result or a list with all results. If 1 is given for the parameter, the result will be paginated. |
|
|
The order after which the result is sorted |
public createProperty($data):Plenty\Modules\Property\Models\Property
Return type: Property
Creates a property
Name |
Type |
Description |
|
The request data |
public updateProperty($propertyId, $data):Plenty\Modules\Property\Models\Property
Return type: Property
Updates a property. The ID of property must be specified.
Name |
Type |
Description |
|
||
|
public deleteProperty($propertyId):void
Deletes a property. The ID of property must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertySelectionRepositoryContract
This interface allows you to get, create, update and delete property selections.
Deprecated! (since 2021-06-24)
Please use \Plenty\Modules\Property\V2\Repositories\PropertySelectionRepository instead |
Namespace
Plenty\Modules\Property\Contracts
Methods
public getPropertySelection($propertySelectionId):Plenty\Modules\Property\Models\PropertySelection
Return type: PropertySelection
Gets a property selection. The ID of the property selection must be specified.
Name |
Type |
Description |
|
public listPropertySelections($page = 1, $itemsPerPage = 50, $with = [], $filters = []):array
List property selections
Name |
Type |
Description |
|
The page to get. The default page that will be returned is page 1. See also $paginate. |
|
|
The number of property selections to be displayed per page. The default number of selections per page is 50. See also $paginate. |
|
|
The relations available are: <ol><li>property</li> <li>relation</li></ol> |
|
|
The filter available is: <ol><li>porpertyId</li></ol> |
public createPropertySelection($data):Plenty\Modules\Property\Models\PropertySelection
Return type: PropertySelection
Creates a property selection
Name |
Type |
Description |
|
The request data |
public updatePropertySelection($propertySelectionId, $data):Plenty\Modules\Property\Models\PropertySelection
Return type: PropertySelection
Updates a property selection. The ID of property selection must be specified.
Name |
Type |
Description |
|
||
|
public deletePropertySelection($propertySelectionId):void
Deletes a property selection. The ID of property selection must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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
Property
Deprecated. Use V2 instead.The property model. Properties allow to further describe items, categories etc. A property can have one name per language. The property names have an own model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property |
|
cast |
The cast of the property (array values: 'empty','int','float','selection','shortText','longText','date','file') |
|
position |
The position of the property |
|
createdAt |
The date when the property was created |
|
updatedAt |
The date when the property was last updated |
|
names |
||
options |
||
relation |
||
amazons |
||
selections |
||
groups |
Methods
public toArray()
Returns this model as an array.
PropertyAmazon
Deprecated. Use V2 instead.The property amazon model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property amazon |
|
propertyId |
The ID of the property |
|
platform |
The platform of the property amazon |
|
category |
The category of the property amazon |
|
field |
The field of the property amazon |
|
createdAt |
The date when the property name was created |
|
updatedAt |
The date when the property name was last updated |
|
propertyRelation |
Methods
public toArray()
Returns this model as an array.
PropertyAvailability
Deprecated. Use V2 instead. The property availability model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property availability |
|
propertyId |
The ID of the property |
|
type |
The type of the property availability |
|
value |
The value of the property availability |
|
createdAt |
The date when the property availability was created |
|
updatedAt |
The date when the property availability was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyGroup
Deprecated. Use V2 instead.The property group model. A property group allows to group several properties together and helps to structure properties. Property groups can have different names per language. The property group names have an own model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property group |
|
position |
The position of the property group |
|
createdAt |
The date when the property group was created |
|
updatedAt |
The date when the property group was last updated |
|
options |
The group options |
|
names |
The group names |
|
properties |
The properties the group belongs to |
Methods
public toArray()
Returns this model as an array.
PropertyGroupName
Deprecated. Use V2 instead.The property group name model. A property group can have several names. One name per language. Each name has a unique ID.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property group name |
|
propertyGroupId |
The ID of the property group |
|
lang |
The language of the property group name as ISO 639-1 language code, e.g. en for English |
|
name |
The name of the property group |
|
description |
The description of the property group |
|
createdAt |
The date when the property group name was created |
|
updatedAt |
The date when the property group name was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyGroupOption
Deprecated. Use V2 instead.The property group option model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property group option |
|
propertyGroupId |
The ID of the property group |
|
groupOptionIdentifier |
The identifier of the property group option |
|
value |
The value of the property group option |
|
createdAt |
The date when the property group option was created |
|
updatedAt |
The date when the property group option was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyGroupRelation
Deprecated. Use V2 instead.The property group relation model. The model shows which property is related to which property group.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
propertyId |
The ID of the property |
|
propertyGroupId |
The ID of the property group |
Methods
public toArray()
Returns this model as an array.
PropertyMarket
Deprecated. Use V2 instead.The property market model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property market |
|
propertyId |
The ID of the property |
|
referrerId |
The ID of the referrer |
|
referrerSubId |
The ID of the sub referrer |
|
value |
The value of the property market |
|
createdAt |
The date when the property market was created |
|
updatedAt |
The date when the property market was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyName
Deprecated. Use V2 instead.The property name model. A property can have several names. One name per language. Each name has a unique ID.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property name |
|
propertyId |
The ID of the property |
|
lang |
The language of the property name as ISO 639-1 language code, e.g. en for English |
|
name |
The name of the property |
|
description |
The description of the property |
|
createdAt |
The date when the property name was created |
|
updatedAt |
The date when the property name was last updated |
|
propertyRelation |
Methods
public toArray()
Returns this model as an array.
PropertyOption
Deprecated. Use V2 instead.The property option model. Property options allow to add further specification to a property. Each property option can have several values. The porperty option values have an own model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property option |
|
propertyId |
The ID of the property |
|
typeOptionIdentifier |
The identifier of the type option |
|
createdAt |
The date when the property option was created |
|
updatedAt |
The date when the property option was last updated |
|
propertyOptionValues |
Methods
public toArray()
Returns this model as an array.
PropertyOptionValue
Deprecated. Use V2 instead.The property option value model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property option value |
|
optionId |
The ID of the property option |
|
value |
The value of the property option |
|
createdAt |
The date when the property option value was created |
|
updatedAt |
The date when the property option value was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyRelation
Deprecated. Use V2 instead.The property relation model allows to relate a property e.g. to a variation or other targets.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property relation |
|
propertyId |
The ID of the property |
|
relationTypeIdentifier |
The identifier of the property relation |
|
relationTargetId |
The ID of the target of the relation |
|
selectionRelationId |
The ID of the selection relation |
|
groupId |
The ID of the property group |
|
markup |
The mark up of the property relation |
|
createdAt |
The date when the property was created |
|
updatedAt |
The date when the property was last updated |
|
relationValues |
||
propertyRelation |
||
group |
Methods
public toArray()
Returns this model as an array.
PropertyRelationMarkup
Deprecated. Use V2 instead.The property relation markup model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property relation markup |
|
propertyRelationId |
The ID of the property relation |
|
variationSalesPriceId |
The variation sales price id of the property relation markup |
|
markup |
The markup of the property relation markup |
|
createdAt |
The date when the property was created |
|
updatedAt |
The date when the property was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyRelationValue
Deprecated. Use V2 instead.The property relation value model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property relation value |
|
propertyRelationId |
The ID of the property relation |
|
lang |
The language of the property relation value |
|
value |
The value of the property relation |
|
description |
The description of the property relation value |
|
createdAt |
The date when the property relation value was created |
|
updatedAt |
The date when the property relation value was last updated |
Methods
public toArray()
Returns this model as an array.
PropertySelection
Deprecated. Use V2 instead.The property selection model.
Namespace
Plenty\Modules\Property\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property selection |
|
propertyId |
The ID of the property |
|
position |
The position of the property selection |
|
createdAt |
The date when the property selection was created |
|
updatedAt |
The date when the property selection was last updated |
|
relation |
||
allRelations |
||
property |
Methods
public toArray()
Returns this model as an array.
V2
Contracts
PropertyAmazonRepositoryContract
This interface allows you to get, create, update and delete property amazons.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public search($with = [], $perPage = 50, $page = 1):void
Name |
Type |
Description |
|
||
|
||
|
public findByPropertyId($propertyId):void
Gets a list of property amazon. The ID of the property must be specified.
Name |
Type |
Description |
|
public get($id, $with = []):Plenty\Modules\Property\V2\Models\PropertyAmazon
Return type: PropertyAmazon
Gets a property amazon. The ID of the property amazon must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyAmazon
Return type: PropertyAmazon
Updates a property amazon. The ID of the property amazon must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyAmazon
Return type: PropertyAmazon
Creates a property amazon.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property amazon. The ID of the property amazon must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyGroupNameRepositoryContract
This interface allows you to get, create, update and delete property group names.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public findByGroupId($groupId):void
Gets a list of property group names. The ID of the property group must be specified.
Name |
Type |
Description |
|
public get($id):Plenty\Modules\Property\V2\Models\PropertyGroupName
Return type: PropertyGroupName
Gets a property group name. The ID of the property group name must be specified.
Name |
Type |
Description |
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyGroupName
Return type: PropertyGroupName
Updates a property group name. The ID of the property group name must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyGroupName
Return type: PropertyGroupName
Creates a property group name.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property group name. The ID of the property group name must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyGroupOptionRepositoryContract
This interface allows you to get, create, update and delete property group options.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public findByGroupId($groupId):void
Gets a list of property group options. The ID of the property group must be specified.
Name |
Type |
Description |
|
public get($id):Plenty\Modules\Property\V2\Models\PropertyGroupOption
Return type: PropertyGroupOption
Gets a property group option. The ID of the property group option must be specified.
Name |
Type |
Description |
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyGroupOption
Return type: PropertyGroupOption
Updates a property group option. The ID of the property group option must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyGroupOption
Return type: PropertyGroupOption
Creates a property group option.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property group option. The ID of the property group option must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyGroupRelationRepositoryContract
This interface allows you to get, create and delete property group relations.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public search($with = [], $perPage = 50, $page = 1, $sorting = []):void
Gets a list of property group relations.
Name |
Type |
Description |
|
||
|
||
|
||
|
public count():int
Count the property group relations.
public get($id, $with = []):Plenty\Modules\Property\V2\Models\PropertyGroupRelation
Return type: PropertyGroupRelation
Gets a property group relation. The ID of the property group relation must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyGroupRelation
Return type: PropertyGroupRelation
Creates a property group relation.
Name |
Type |
Description |
|
public updateOrCreate($data):array
Updates or creates multiple property group relation.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property group relation. The ID of the property group relation must be specified.
Name |
Type |
Description |
|
public deleteMany($data):int
Deletes a property group relation. The ID of the property group relation must be specified.
Name |
Type |
Description |
|
public findOne($propertyId, $groupId):Plenty\Modules\Property\V2\Models\PropertyGroupRelation
Return type: PropertyGroupRelation
Gets a property group relation. The property ID and the group ID of the property group relation must be specified.
Name |
Type |
Description |
|
The property ID of the property group relation |
|
|
The group ID of the property group relation |
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyGroupRepositoryContract
This interface allows you to get, create, update and delete property groups.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public search($with = [], $perPage = 50, $page = 1, $sorting = []):void
Gets a list of property groups. Filter can be specified.
Name |
Type |
Description |
|
||
|
||
|
||
|
public count():int
Count the property groups.
public get($id, $with = []):Plenty\Modules\Property\V2\Models\PropertyGroup
Return type: PropertyGroup
Gets a property group. The ID of the property group must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyGroup
Return type: PropertyGroup
Updates a property group. The ID of the property group must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyGroup
Return type: PropertyGroup
Creates a property group.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property group. The ID of the property group must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyNameRepositoryContract
This interface allows you to get, create, update and delete property names.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public findByPropertyId($propertyId):void
Gets a list of property names. The ID of the property must be specified.
Name |
Type |
Description |
|
public get($id):Plenty\Modules\Property\V2\Models\PropertyName
Return type: PropertyName
Gets a property name. The ID of the property name must be specified.
Name |
Type |
Description |
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyName
Return type: PropertyName
Updates a property name. The ID of the property name must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyName
Return type: PropertyName
Creates a property name.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property name. The ID of the property name must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyOptionRepositoryContract
This interface allows you to get, create, update and delete property options.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public searchByPropertyId($propertyId, $with = []):void
Gets a list of property options. The ID of the property must be specified.
Name |
Type |
Description |
|
||
|
public get($id):Plenty\Modules\Property\V2\Models\PropertyOption
Return type: PropertyOption
Gets a property option. The ID of the property option must be specified.
Name |
Type |
Description |
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyOption
Return type: PropertyOption
Updates a property option. The ID of the property option must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyOption
Return type: PropertyOption
Creates a property option.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property option. The ID of the property option must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationRepositoryContract
This interface allows you to get, create, update and delete property relations.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public search($with = [], $perPage = 50, $page = 1, $sorting = []):void
Gets a list of property relation. Filter can be specified.
Name |
Type |
Description |
|
||
|
||
|
||
|
public count():int
Count the property relations.
public get($id, $with = []):Plenty\Modules\Property\V2\Models\PropertyRelation
Return type: PropertyRelation
Gets a property relation. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyRelation
Return type: PropertyRelation
Updates a property relation. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyRelation
Return type: PropertyRelation
Creates a property relation.
Name |
Type |
Description |
|
public createBulk($data):void
Creates a list of property relations.
Name |
Type |
Description |
|
public updateBulk($data):void
Updates a list of property relations.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property relation. The ID of the property relation must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationSelectionRepositoryContract
This interface allows you to get, create, update and delete property relation selections.T hey are used for linked properties of the type selection
and multiSelection
.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public findByPropertyRelationId($propertyRelationId, $with = []):void
Gets a list of property relation selections. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public get($id, $with = []):Plenty\Modules\Property\V2\Models\PropertyRelationSelection
Return type: PropertyRelationSelection
Gets a property relation selection. The ID of the property relation selection must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyRelationSelection
Return type: PropertyRelationSelection
Updates a property relation selection. The ID of the property relation selection must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyRelationSelection
Return type: PropertyRelationSelection
Creates a property relation selection.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property relation selection. The ID of the property relation selection must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationValueRepositoryContract
This interface allows you to get, create, update and delete property relation values. They are used for linked properties of the type html
and text
.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public findByPropertyRelationId($propertyRelationId, $with = []):void
Gets a list of property relation values. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public get($id, $with = []):Plenty\Modules\Property\V2\Models\PropertyRelationValue
Return type: PropertyRelationValue
Gets a property relation value. The ID of the property relation value must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertyRelationValue
Return type: PropertyRelationValue
Updates a property relation value. The ID of the property relation value must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertyRelationValue
Return type: PropertyRelationValue
Creates a property relation value.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property relation value. The ID of the property relation value must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRepositoryContract
This interface allows you to get, create, update and delete properties.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public search($with = [], $perPage = 50, $page = 1, $sorting = []):void
Gets a list of properties. Filter can be specified.
Name |
Type |
Description |
|
||
|
||
|
||
|
public count():int
Count the properties.
public get($id, $with = []):Plenty\Modules\Property\V2\Models\Property
Return type: Property
Gets a property. The ID of the property must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\Property
Return type: Property
Updates a property. The ID of the property must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\Property
Return type: Property
Creates a property.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property. The ID of the property must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertySelectionNameRepositoryContract
This interface allows you to get, create, update and delete property selection names.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public findBySelectionId($selectionId):void
Gets a list of property selection names. The ID of the property selection must be specified.
Name |
Type |
Description |
|
public get($id):Plenty\Modules\Property\V2\Models\PropertySelectionName
Return type: PropertySelectionName
Gets a property selection name. The ID of the property selection name must be specified.
Name |
Type |
Description |
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertySelectionName
Return type: PropertySelectionName
Updates a property selection name. The ID of the property selection name must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertySelectionName
Return type: PropertySelectionName
Create a property selection name.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property selection name. The ID of the property selection name must be specified.
Name |
Type |
Description |
|
PropertySelectionRepositoryContract
This interface allows you to get, create, update and delete property selections.
Namespace
Plenty\Modules\Property\V2\Contracts
Methods
public searchByPropertyId($propertyId, $with = [], $perPage = 50, $page = 1, $sorting = []):void
Gets a list of property selections. The ID of the property must be specified.
Name |
Type |
Description |
|
||
|
||
|
||
|
||
|
public countByPropertyId($propertyId):int
Count the property selections. The ID of the property must be specified.
Name |
Type |
Description |
|
public get($id, $with = []):Plenty\Modules\Property\V2\Models\PropertySelection
Return type: PropertySelection
Gets a property selection. The ID of the property selection must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\PropertySelection
Return type: PropertySelection
Updates a property selection. The ID of the property selection must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\PropertySelection
Return type: PropertySelection
Creates a property selection.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property selection. The ID of the property selection must be specified.
Name |
Type |
Description |
|
public setFilters($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
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.
Models
Property
The property model. Properties allow to further describe items, customers etc.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property |
|
cast |
The cast of the property (array values: 'empty','int','float','string','selection','text','html','date','file') |
|
type |
The type of the property (e.g. 'item' or 'contact') |
|
position |
The position of the property |
|
createdAt |
The date when the property was created |
|
updatedAt |
The date when the property was last updated |
|
amazon |
Property amazon |
|
names |
Property names |
|
groups |
Property Groups |
|
options |
Property Options |
|
selections |
Property selections |
Methods
public toArray()
Returns this model as an array.
PropertyAmazon
The property amazon model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property amazon |
|
propertyId |
The property ID of the property amazon |
|
platform |
The platform of the property amazon |
|
category |
The category of the property amazon |
|
field |
The field of the property amazon |
|
createdAt |
The date when the property amazon was created |
|
updatedAt |
The date when the property amazon was last updated |
|
property |
The associated property |
Methods
public toArray()
Returns this model as an array.
PropertyGroup
The property group model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property group |
|
position |
The position of the property group |
|
createdAt |
The date when the property group was created |
|
updatedAt |
The date when the property group was last updated |
|
names |
The property group names of the property group |
|
options |
The property group options of the property group |
Methods
public toArray()
Returns this model as an array.
PropertyGroupName
The property group name model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property group name |
|
groupId |
The property group ID of the property group |
|
lang |
The language of the property group name as ISO 639-1 language code, e.g. en for English |
|
name |
The name of the property group |
|
description |
The description of the property group |
|
createdAt |
The date when the property group name was created |
|
updatedAt |
The date when the property group name was last updated |
|
group |
The associated property group |
Methods
public toArray()
Returns this model as an array.
PropertyGroupOption
The property group option model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property group option |
|
groupId |
The property group ID of the property group |
|
type |
The identifier of the property group option |
|
value |
The value of the property group option |
|
createdAt |
The date when the property group option was created |
|
updatedAt |
The date when the property group option was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyGroupRelation
The property group relation model. The model shows which property is related to which property group.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property group relation |
|
propertyId |
The ID of the property |
|
groupId |
The ID of the property group |
|
group |
The associated property group |
|
property |
The associated property |
Methods
public toArray()
Returns this model as an array.
PropertyName
The property name model. A property can have several names. One name per language. Each name has a unique ID.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property name |
|
propertyId |
The property ID of the property name |
|
lang |
The language of the property name as ISO 639-1 language code, e.g. en for English |
|
name |
The name of the property name |
|
description |
The description of the property name |
|
createdAt |
The date when the property name was created |
|
updatedAt |
The date when the property name was last updated |
|
property |
The associated property |
Methods
public toArray()
Returns this model as an array.
PropertyOption
The property option model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property option |
|
propertyId |
The property ID of the property option |
|
type |
The identifier type of the option |
|
value |
The value of the option |
|
createdAt |
The date when the property option was created |
|
updatedAt |
The date when the property option was last updated |
|
property |
The associated property |
Methods
public toArray()
Returns this model as an array.
PropertyRelation
The property relation model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property relation |
|
propertyId |
The property ID of the property relation |
|
type |
The type of the property relation |
|
targetId |
The ID of the target of the property relation |
|
groupId |
The property group ID of the property relation |
|
markup |
The mark up of the property relation |
|
value |
The value of the property relation for properties of the following type: int, float, date and file. |
|
createdAt |
The date when the property was created |
|
updatedAt |
The date when the property was last updated |
|
property |
The associated property |
|
group |
The associated property group |
|
values |
The property relation values of the property relation. Includes properties of the types short and long text. |
|
selectionValues |
The property relation values of the property relation. Includes properties of the types selection and multi selection. |
Methods
public toArray()
Returns this model as an array.
PropertyRelationSelection
The property relation selection value model. Contains linked values for selections and multi selections.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property relation selection value |
|
relationId |
The relation ID of the property relation selection value |
|
selectionId |
The selection ID of the property relation selection value |
|
createdAt |
The date when the property relation value was created |
|
updatedAt |
The date when the property relation value was last updated |
|
relation |
The associated property relation |
|
selection |
The associated property selection |
Methods
public toArray()
Returns this model as an array.
PropertyRelationValue
The property relation value model. Includes the values in different languages for properties of the type short text and long text.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property relation value |
|
relationId |
The ID of the property relation |
|
lang |
The language of the property relation value |
|
value |
The value of the property relation |
|
description |
The description of the property relation value |
|
createdAt |
The date when the property relation value was created |
|
updatedAt |
The date when the property relation value was last updated |
|
relation |
The associated property relation |
Methods
public toArray()
Returns this model as an array.
PropertySelection
The property selection model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property selection |
|
propertyId |
The property ID of the property selection |
|
position |
The position of the property selection |
|
createdAt |
he date when the property selection was created |
|
updatedAt |
The date when the property selection was last updated |
|
property |
The associated property |
|
names |
The names of the property selection |
Methods
public toArray()
Returns this model as an array.
PropertySelectionName
The property selection name model.
Namespace
Plenty\Modules\Property\V2\Models
Name | Type | Description |
---|---|---|
id |
The ID of the property selection name |
|
selectionId |
The selection ID of the property selection name |
|
lang |
The language of the property selection name |
|
name |
The name of the property selection name |
|
description |
The description of the property selection name |
|
createdAt |
The date when the property selection name was created |
|
updatedAt |
The date when the property selection name was last updated |
|
selection |
The associated property selection |
Methods
public toArray()
Returns this model as an array.
Contracts
UUID
PropertyRelationRepositoryContract
This interface allows you to get, create, update and delete property relations.
Namespace
Plenty\Modules\Property\V2\Contracts\UUID
Methods
public search($with = [], $perPage = 50, $page = 1, $sorting = []):void
Gets a list of property relation. Filter can be specified.
Name |
Type |
Description |
|
||
|
||
|
||
|
public count():int
Count the property relations.
public get($id, $with = []):Plenty\Modules\Property\V2\Models\UUID\PropertyRelation
Return type: PropertyRelation
Gets a property relation. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\UUID\PropertyRelation
Return type: PropertyRelation
Updates a property relation. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\UUID\PropertyRelation
Return type: PropertyRelation
Creates a property relation.
Name |
Type |
Description |
|
public createBulk($data):void
Creates a list of property relations.
Name |
Type |
Description |
|
public updateBulk($data):void
Updates a list of property relations.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property relation. The ID of the property relation must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationSelectionRepositoryContract
This interface allows you to get, create, update and delete property relation selections.T hey are used for linked properties of the type selection
and multiSelection
.
Namespace
Plenty\Modules\Property\V2\Contracts\UUID
Methods
public findByPropertyRelationId($propertyRelationId, $with = []):void
Gets a list of property relation selections. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public get($id, $with = []):Plenty\Modules\Property\V2\Models\UUID\PropertyRelationSelection
Return type: PropertyRelationSelection
Gets a property relation selection. The ID of the property relation selection must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\UUID\PropertyRelationSelection
Return type: PropertyRelationSelection
Updates a property relation selection. The ID of the property relation selection must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\UUID\PropertyRelationSelection
Return type: PropertyRelationSelection
Creates a property relation selection.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property relation selection. The ID of the property relation selection must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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.
PropertyRelationValueRepositoryContract
This interface allows you to get, create, update and delete property relation values. They are used for linked properties of the type html
and text
.
Namespace
Plenty\Modules\Property\V2\Contracts\UUID
Methods
public findByPropertyRelationId($propertyRelationId, $with = []):void
Gets a list of property relation values. The ID of the property relation must be specified.
Name |
Type |
Description |
|
||
|
public get($id, $with = []):Plenty\Modules\Property\V2\Models\UUID\PropertyRelationValue
Return type: PropertyRelationValue
Gets a property relation value. The ID of the property relation value must be specified.
Name |
Type |
Description |
|
||
|
public update($id, $data):Plenty\Modules\Property\V2\Models\UUID\PropertyRelationValue
Return type: PropertyRelationValue
Updates a property relation value. The ID of the property relation value must be specified.
Name |
Type |
Description |
|
||
|
public create($data):Plenty\Modules\Property\V2\Models\UUID\PropertyRelationValue
Return type: PropertyRelationValue
Creates a property relation value.
Name |
Type |
Description |
|
public delete($id):bool
Deletes a property relation value. The ID of the property relation value must be specified.
Name |
Type |
Description |
|
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($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
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
UUID
PropertyRelation
The property uuid relation model.
Namespace
Plenty\Modules\Property\V2\Models\UUID
Name | Type | Description |
---|---|---|
id |
The ID of the property relation |
|
propertyId |
The property ID of the property relation |
|
type |
The type of the property relation |
|
targetId |
The ID of the target of the property relation |
|
groupId |
The property group ID of the property relation |
|
markup |
The mark up of the property relation |
|
value |
The value of the property relation for properties of the following type: int, float, date and file. |
|
createdAt |
The date when the property was created |
|
updatedAt |
The date when the property was last updated |
Methods
public toArray()
Returns this model as an array.
PropertyRelationSelection
The property uuid relation selection value model. Contains linked values for selections and multi selections.
Namespace
Plenty\Modules\Property\V2\Models\UUID
Name | Type | Description |
---|---|---|
id |
The ID of the property relation selection value |
|
relationId |
The relation ID of the property relation selection value |
|
selectionId |
The selection ID of the property relation selection value |
|
createdAt |
The date when the property relation value was created |
|
updatedAt |
The date when the property relation value was last updated |
|
relation |
The associated property uuid relation |
|
selection |
The associated property selection |
Methods
public toArray()
Returns this model as an array.
PropertyRelationValue
The property uuid relation value model. Includes the values in different languages for properties of the type short text and long text.
Namespace
Plenty\Modules\Property\V2\Models\UUID
Name | Type | Description |
---|---|---|
id |
The ID of the property relation value |
|
relationId |
The ID of the property relation |
|
lang |
The language of the property relation value |
|
value |
The value of the property relation |
|
description |
The description of the property relation value |
|
createdAt |
The date when the property relation value was created |
|
updatedAt |
The date when the property relation value was last updated |
|
relation |
The associated property uuid relation |
Methods
public toArray()
Returns this model as an array.