Attribute
class Attribute extends Attribute implements PrimaryKeyInterface, Serializable, CSVEntityInterface, RelationshipEntityInterface
Class Attribute
Properties
| protected string | $name | Attribute name | from Attribute |
| protected string | $type | One of the predefined(CHECK, RADIO, SELECT) Currently supported types: "RADIO" | from Attribute |
| protected string | $attributeType | Attribute type. One of the predefined(information type, file type, price type) Currently supported types: "information type" and "price type" | from Attribute |
| protected string | $typeOfValues | Type of values Currently supported types: "number" | from Attribute |
| protected int | $code | Unique identifier for attribute | |
| protected string | $erpCode | Unique identifier for attribute. Used for synchronization with erp | |
| protected bool | $displayToUser | Should display on frontend | |
| protected bool | $nameDependency | Indicates if attribute is name dependency. |
Methods
No description
No description
Attribute constructor.
No description
No description
No description
No description
No description
No description
No description
No description
No description
Return sorted attribute values for attribute(based on priority field in attribute value)
No description
No description
No description
No description
No description
No description
(PHP 5 >= 5.1.0)
String representation of object
(PHP 5 >= 5.1.0)
Constructs the object
Details
in Attribute at line 84
string
getType()
in Attribute at line 94
mixed
setType(string $type)
in Attribute at line 106
mixed
setName(string $name)
in Attribute at line 116
string
getName()
in Attribute at line 124
static array
getAttributeAllTypes()
in Attribute at line 132
string
getAttributeType()
in Attribute at line 152
string
getTypeOfValues()
at line 140
string
getErpCode()
at line 150
Attribute
setErpCode(string $erpCode)
at line 160
__construct()
Attribute constructor.
at line 169
ArrayCollection
getAttributeSets()
at line 179
Attribute
setAttributeSets(ArrayCollection $attributeSets)
at line 191
Attribute
addAttributeSet(AttributeSet $attributeSet)
at line 203
Attribute
removeAttributeSet(AttributeSet $attributeSet)
at line 213
integer
getId()
at line 223
Attribute
setId(int $id)
at line 235
Attribute
addAttributeValue(AttributeValue $attributeValue)
at line 248
Attribute
removeAttributeValue(AttributeValue $attributeValue)
at line 258
Collection
getValues()
at line 268
Attribute
setValues(mixed|null $values)
at line 278
boolean
isDisplayToUser()
at line 288
Attribute
setDisplayToUser(boolean $displayToUser)
at line 298
int
getCode()
at line 308
Attribute
setCode(int $code)
at line 318
bool
isNameDependency()
at line 328
Attribute
setNameDependency(bool $nameDependency)
at line 342
ArrayCollection|array
getSortedAttributeValues(array $usedValues)
Return sorted attribute values for attribute(based on priority field in attribute value)
at line 376
Attribute
setCustomCSVHeader(array $customCSVHeader)
at line 386
array
getCSVHeader()
at line 404
array
getCSVValues()
at line 426
CSVEntityInterface
setCSVValues($csvRow, mixed $locale, array $csvHeaders, array $propertyMappings = array())
at line 467
int
getPriority()
at line 477
Attribute
setPriority(int $priority)
at line 491
string
serialize()
(PHP 5 >= 5.1.0)
String representation of object
at line 511
void
unserialize(string $serialized)
(PHP 5 >= 5.1.0)
Constructs the object