简体   繁体   English

PHP保存数组值

[英]PHP Save array value

I'm using the $user->groups in Joomla 3.4.5 to get the array of assigned groups specific to a user, but is there a way to get the Access Levels instead? 我在Joomla 3.4.5中使用$ user-> groups来获取特定于用户的已分配组的数组,但是有没有办法获取访问级别呢? I'd like to check specific assigned ACL instead of groups. 我想检查特定分配的ACL,而不是组。 I haven't been able to find it on the J Docs. 我尚未在J Docs上找到它。

Thanks! 谢谢!

I believe this is the proper way to retrieve a Joomla user's access levels: 我相信这是检索Joomla用户访问级别的正确方法:

$levels = JFactory::getUser()->getAuthorisedViewLevels();

print_r ($levels); print_r($ levels);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM