eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\ExceptionConversion::updateType PHP Method

updateType() public method

Update a type with $updateStruct.
public updateType ( mixed $typeId, integer $status, eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct )
$typeId mixed
$status integer
$updateStruct eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct
    public function updateType($typeId, $status, UpdateStruct $updateStruct)
    {
        try {
            return $this->innerGateway->updateType($typeId, $status, $updateStruct);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }