ice framework documentation ice doc v1.10.1
Methods
  • setUsers(variable $users) : void
  • __construct(array $options) : void
    Set configuration options and users.
  • getUser(variable $defaultValue) : void
    Gets the currently logged in user from the session. Returns NULL if no user is currently logged in.
  • hasRole(variable $user, string $role) : bool
    Check if user has the role.
  • login(variable $username, string $password, bool $remember, bool $force) : bool | null
    Logs a user in.
Methods Details
  • public function setUsers(variable $users)

  • public function __construct(array $options)

    Set configuration options and users.
  • public function getUser(variable $defaultValue)

    Gets the currently logged in user from the session. Returns NULL if no user is currently logged in.
  • public function hasRole(variable $user, string $role)

    Check if user has the role.
  • public function login(variable $username, string $password, bool $remember, bool $force)

    Logs a user in.