eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::updateObjectStateGroup PHP Method

updateObjectStateGroup() abstract public method

Updates the stored object state group with provided data.
abstract public updateObjectStateGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup )
$objectStateGroup eZ\Publish\SPI\Persistence\Content\ObjectState\Group
    public abstract function updateObjectStateGroup(Group $objectStateGroup);

Usage Example

 /**
  * 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);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::updateObjectStateGroup