Author |
|
osunix Newbie
Joined: 21 April 2014 Location: Iran
Online Status: Offline Posts: 3
|
Posted: 20 May 2014 at 11:45pm | IP Logged
|
|
|
I've created a plugin for Afterlogic it works fine but I need userid for saving data in db. like : id,userid,note
my question is how can I get userid in php and javascript?
Thanks for your advice.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 20 May 2014 at 11:54pm | IP Logged
|
|
|
The latest sample plugin we've published a couple of days ago demonstrates a way of doing that:
Code:
$oAccount = $this->oPluginManager->Actions()->GetCurrentAccount();
return array(
'Email' => $oAccount->Email,
... ); |
|
|
The above will get you the email address; you can also get user ID and account ID using $oAccount->IdUser and $oAccount->IdAccount, respectively.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
osunix Newbie
Joined: 21 April 2014 Location: Iran
Online Status: Offline Posts: 3
|
Posted: 21 May 2014 at 12:46am | IP Logged
|
|
|
Thank you so much.
|
Back to Top |
|
|