Open Source Content Management System

Version 1.2 of PHP midgard_connection method get_user

title
PHP midgard_connection method get_user
content
Get midgard_user.

_midgard_user_ **get_user(void);**

[PHP midgard\_connection|midgard_connection] method __get\_user__ takes no parameters and may be called **statically**.

Returns midgard_user object, or _NULL_ if there's no authenticated user.

Read about [PHP midgard_user|midgard_user] class.

## Example


$user = midgard_connection::get_user();

if(!$user->is_admin())
{
echo "You are not allowed to edit this document";
}

?>

[PHP midgard\_connection|midgard_connection].
name
php_midgard_connection_method_get_user
topic
40
author
16
Designed by Nemein, hosted by Anykey