AttributeValueManager
class AttributeValueManager implements BasicEntityManagerInterface, JQGridInterface
Class AttributeValueManager is injected as alligator.attribute_value_manager service. AttributeValueManager handles the logic for managed entity.
Traits
Properties
| protected AttributeValueRepository | $repository |
Methods
No description
No description
No description
Get entities from database by ids
AttributeValueManager constructor.
Persist multiple attribute values entities
Dispatch event to generate new translations
Dispatch event to updated translations
Find id and code of all attribute values
Find id and value of all attribute values
No description
Find all attribute values that match provided codes
Retrieve reference for provided class(attribute value by default)
Find all languages
Translate attribute value for provided id(used in jqgrid on edit attributes)
Change order for attribute values in attribute
Update translations for attribute
No description
Find id of all attribute values that match provided names
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
in BlockElementManagerTrait at line 28
array
getEntitiesForBlockElementsExtension(array $ids)
Get entities from database by ids
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 48
__construct(AttributeValueRepository $repository, AttributeEventContainer $eventContainer)
AttributeValueManager constructor.
at line 63
bool|string
saveMultiple(array $attrValues)
Persist multiple attribute values entities
at line 78
dispatchGenerateAttributeTranslation(AttributeValue $attributeValue)
Dispatch event to generate new translations
at line 93
dispatchUpdateAttrTranslationSignal(AttributeValue $val, mixed $content)
Dispatch event to updated translations
at line 108
array
getAllAttributeValueErpCodes()
Find id and code of all attribute values
at line 118
array
getAllAttributeValuesNameAndId()
Find id and value of all attribute values
at line 128
AttributeValue|object
findOneById(int $id)
at line 140
mixed
findMultipleByErpCode(array $arrayCode)
Find all attribute values that match provided codes
at line 155
bool|Proxy|null|object|AttributeValue
getReference(int $id, string $class = AttributeValue::class)
Retrieve reference for provided class(attribute value by default)
at line 165
array
getAllLanguages()
Find all languages
at line 177
string
translateAttributeEntities(string $value, string $locale)
Translate attribute value for provided id(used in jqgrid on edit attributes)
at line 191
bool
changeOrder(int $id, int $newIndex, int $attribute)
Change order for attribute values in attribute
at line 205
AttributeValue
editValue(AttributeValue $value)
Update attribute value
at line 223
updateAttributeValuesTranslations(array $content, int $attributeValueId)
Update translations for attribute
at line 238
AttributeValue
saveValue(AttributeValue $value)
Persist new attribute value
at line 254
deleteValue($id, $attribute)
at line 269
array
findAttributeValueIdsByValues(array $values)
Find id of all attribute values that match provided names