Tuesday 19 February 2008 9:04:12 am
Hello All
I am quite new to eZ Publish and have therefore a basic question. I try to extend the class eZFilePassthroughHandler so it logs (to database) some information on the downloaded file.
The current logged in user should also be saved, and thats where my question comes in. <b>Whats the apropriat way the get the current logged in users id inside of an other class?</b> I found the id in the Session and aswell a method in eZUser class to get the id, that is mentioned in the forums too.
/* ... inside eZFilePassthroughHandler ... */
require_once( 'kernel/classes/datatypes/ezuser/ezuser.php' );
$user =& eZUser::currentUser();
Unfortunately this returns me nothing. Thank you for your input and help. Michel
|