SkinnyMVC is a light-weight, easy to learn, "skinny" development framework for PHP that enables the developer to implement the MVC architectural pattern, while maintaining maximum flexibility and performance of the application.

class SkinnyUser

SkinnyUser holds information about the session in attributes and determines whether the user is authenticated.

 

public static function getUser()

return: SkinnyUser

Creates a new SkinnyUser or returns the existing SkinnyUser for the current session.

public function isAuthenticated()

return: boolean

Is the current session authenticated?

public function setAuthenticated(boolean $authenticated)

return: void

Sets the authentication for the current session.

public function getAttribute(string $attribute_name)

return: mixed

Gets the value of the requested attribute.

public function setAttribute(string $name, mixed $value)

return: void

Sets the value of the attribute named $name.

public function deleteAttribute(string $name)

return: void

Deletes the attribute $name

public function getTimeout()

return: int

Returns the number of seconds after which the inactive session times out.

public function save()

return: boolean

Saves the current session.

Every SkinnyUser "set" method makes a call to save().

public function destroy()

return: boolean

Removes the stored session from the server.


Powered by SkinnyMVC       |       SkinnyMVC License       |       Created by 49 Research