![]() |
commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
|
Inherits Commercetools\Base\JsonObject.
Inherited by Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
Public Member Functions | |
| getType () | |
| getName () | |
| getLabel () | |
| getIsRequired () | |
| getLevel () | |
| getAttributeConstraint () | |
| getInputTip () | |
| getInputHint () | |
| getIsSearchable () | |
| setType (?AttributeType $type) | |
| setName (?string $name) | |
| setLabel (?LocalizedString $label) | |
| setIsRequired (?bool $isRequired) | |
| setLevel (?string $level) | |
| setAttributeConstraint (?string $attributeConstraint) | |
| setInputTip (?LocalizedString $inputTip) | |
| setInputHint (?string $inputHint) | |
| setIsSearchable (?bool $isSearchable) | |
Public Member Functions inherited from Commercetools\Base\JsonObject | |
| get (string $field) | |
| with (?callable $callable=null) | |
Public Attributes | |
| const | FIELD_TYPE = 'type' |
| const | FIELD_NAME = 'name' |
| const | FIELD_LABEL = 'label' |
| const | FIELD_IS_REQUIRED = 'isRequired' |
| const | FIELD_LEVEL = 'level' |
| const | FIELD_ATTRIBUTE_CONSTRAINT = 'attributeConstraint' |
| const | FIELD_INPUT_TIP = 'inputTip' |
| const | FIELD_INPUT_HINT = 'inputHint' |
| const | FIELD_IS_SEARCHABLE = 'isSearchable' |
Additional Inherited Members | |
Static Public Member Functions inherited from Commercetools\Base\JsonObject | |
| static | of ($data=null) |
| static | fromArray (array $data=[]) |
| static | fromStdClass (?stdClass $data=null) |
Definition at line 15 of file AttributeDefinition.php.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getAttributeConstraint | ( | ) |
Specifies how Attributes are validated across all variants of a Product.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getInputHint | ( | ) |
Provides a visual representation directive for values of this Attribute (only relevant for AttributeTextType and AttributeLocalizableTextType).
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getInputTip | ( | ) |
Provides additional Attribute information to aid content managers configure Product details.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getIsRequired | ( | ) |
If true, the Attribute must have a value on a ProductVariant.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getIsSearchable | ( | ) |
If true, the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute.
The exact features that are available with this flag depend on the specific AttributeType. The maximum size of a searchable field is restricted by the Field content size limit. This constraint is enforced at both Product creation and Product update. If the length of the input exceeds the maximum size, an InvalidField error is returned.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getLabel | ( | ) |
Human-readable label for the Attribute.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getLevel | ( | ) |
Specifies whether the Attribute is defined at the Product or Variant level.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getName | ( | ) |
User-defined name of the Attribute that is unique within the Project.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::getType | ( | ) |
Describes the Type of the Attribute.
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setAttributeConstraint | ( | ?string | $attributeConstraint | ) |
| ?string | $attributeConstraint |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setInputHint | ( | ?string | $inputHint | ) |
| ?string | $inputHint |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setInputTip | ( | ?LocalizedString | $inputTip | ) |
| ?LocalizedString | $inputTip |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setIsRequired | ( | ?bool | $isRequired | ) |
| ?bool | $isRequired |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setIsSearchable | ( | ?bool | $isSearchable | ) |
| ?bool | $isSearchable |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setLabel | ( | ?LocalizedString | $label | ) |
| ?LocalizedString | $label |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setLevel | ( | ?string | $level | ) |
| ?string | $level |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setName | ( | ?string | $name | ) |
| ?string | $name |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| Commercetools\Api\Models\ProductType\AttributeDefinition::setType | ( | ?AttributeType | $type | ) |
| ?AttributeType | $type |
Implemented in Commercetools\Api\Models\ProductType\AttributeDefinitionModel.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_ATTRIBUTE_CONSTRAINT = 'attributeConstraint' |
Definition at line 22 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_INPUT_HINT = 'inputHint' |
Definition at line 24 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_INPUT_TIP = 'inputTip' |
Definition at line 23 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_IS_REQUIRED = 'isRequired' |
Definition at line 20 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_IS_SEARCHABLE = 'isSearchable' |
Definition at line 25 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_LABEL = 'label' |
Definition at line 19 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_LEVEL = 'level' |
Definition at line 21 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_NAME = 'name' |
Definition at line 18 of file AttributeDefinition.php.
| const Commercetools\Api\Models\ProductType\AttributeDefinition::FIELD_TYPE = 'type' |
Definition at line 17 of file AttributeDefinition.php.