Classificationstore add group to object


#1

Does anyone knows how to add a Classificationstore Group to a Object?

I’ve created a custom Class (with a classificationstore in it). My plan is to use the classificationstore groups to define the object (attributes of the dataobject).

But i dont know how to add a predefines group to the dataobject …

$dataobject->setAttributes( //classificationstore group ) -> this doesnt work (Attributes is the name of the classificationstore in my class)

Thanks for help


#2

i found a way to solve this problem:
$dataobject->getAttributes()->setItems([GROUPID => [KEYID => [LANGUAGE => TEXT]]])
$dataobject->getAttributes()->setItems([10 => [8 => [‘default’ => ‘hello’]]])