webCOMAND

framework::get_end_user()

Get the user currently logged in to webCOMAND based on the session.

Prototype

User get_end_user()

Return

User that represents the current logged in user.

Example

<?php
$repo = \comand::repo();
$framework = new \com_webcomand\framework($repo);
$framework->require_login();

$user = $framework->get_end_user();