updateUser() abstract public method

Update the user information specified by the user struct.
abstract public updateUser ( eZ\Publish\SPI\Persistence\User $user )
$user eZ\Publish\SPI\Persistence\User
 /**
  * Update the user information specified by the user struct.
  *
  * @param User $user
  */
 public function updateUser(User $user)
 {
     try {
         return $this->innerGateway->updateUser($user);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Beispiel #2
0
 /**
  * Update the user information specified by the user struct.
  *
  * @param \eZ\Publish\SPI\Persistence\User $user
  */
 public function update(User $user)
 {
     $this->userGateway->updateUser($user);
 }