eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::updateRole PHP Method

updateRole() abstract public method

Will not throw anything if location id is invalid.
abstract public updateRole ( eZ\Publish\SPI\Persistence\User\RoleUpdateStruct $role )
$role eZ\Publish\SPI\Persistence\User\RoleUpdateStruct
    public abstract function updateRole(RoleUpdateStruct $role);

Usage Example

 /**
  * Update role (draft).
  *
  * @throws \eZ\Publish\Core\Base\Exceptions\NotFoundException
  *
  * @param RoleUpdateStruct $role
  * @param int $status One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
  */
 public function updateRole(RoleUpdateStruct $role, $status = Role::STATUS_DEFINED)
 {
     try {
         return $this->innerGateway->updateRole($role, $status);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::updateRole