eZ\Publish\Core\Persistence\Legacy\User\Gateway::load PHP Méthode

load() abstract public méthode

Loads user with user ID.
abstract public load ( mixed $userId ) : array
$userId mixed
Résultat array
    public abstract function load($userId);

Usage Example

 /**
  * Loads user with user ID.
  *
  * @param mixed $userId
  *
  * @return array
  */
 public function load($userId)
 {
     try {
         return $this->innerGateway->load($userId);
     } 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\Gateway::load