createObjectStateGroupFromInputStruct() публичный Метод

Creates an instance of ObjectStateGroup object from provided $input struct.
public createObjectStateGroupFromInputStruct ( eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$input eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct
Результат eZ\Publish\SPI\Persistence\Content\ObjectState\Group
Пример #1
0
 /**
  * Updates an object state group
  *
  * @param mixed $groupId
  * @param \eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input
  *
  * @return \eZ\Publish\SPI\Persistence\Content\ObjectState\Group
  */
 public function updateGroup($groupId, InputStruct $input)
 {
     $objectStateGroup = $this->objectStateMapper->createObjectStateGroupFromInputStruct($input);
     $objectStateGroup->id = (int) $groupId;
     $this->objectStateGateway->updateObjectStateGroup($objectStateGroup);
     return $this->loadGroup($objectStateGroup->id);
 }