ice framework documentation ice doc v1.6.2
Methods
  • setUsers(variable $users) : void
  • 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 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.