public function getCurrentUser()
    {
        $returnValue = null;

    	if(!common_session_SessionManager::isAnonymous()){
        	$userUri = \common_session_SessionManager::getSession()->getUser()->getIdentifier();
			if(!empty($userUri)){
        		$returnValue = new core_kernel_classes_Resource($userUri);
			} else {
				common_Logger::d('no userUri');
			}
    	}

        return $returnValue;
    }
public function getCurrentUser()
    {
        $returnValue = null;

    	if(!common_session_SessionManager::isAnonymous()){
        	$userUri = \common_session_SessionManager::getSession()->getUser()->getIdentifier();
			if(!empty($userUri)){
        		$returnValue = new core_kernel_classes_Resource($userUri);
			} else {
				common_Logger::d('no userUri');
			}
    	}

        return $returnValue;
    }
public function getCurrentUser ( ) { $ returnValue = null ; if ( ! common_session_SessionManager :: isAnonymous ( ) ) { $ userUri = \ common_session_SessionManager :: getSession ( ) -> getUser ( ) -> getIdentifier ( ) ; if ( ! empty ( $ userUri ) ) { $ returnValue = new core_kernel_classes_Resource ( $ userUri ) ; } else { common_Logger :: d ( 'no userUri' ) ; } } return $ returnValue ; }
retrieve the logged in user

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@return core_kernel_classes_Resource
retrieve the logged in user