的Joomla! 3.5.1 joomsocial自定义首选项

时间:2017-06-30 10:10:09

标签: joomla joomla3.0 joomla-extensions

我正在使用Joomla! 3.5.1和joomsocial自定义首选项。

我查看偏好的代码

$currentUser = CFactory::getUser();
print "<pre>"; 
print_r( $currentUser );

输出

CUser Object
(
[_userid] => 1071
[_status] => 
[_cparams] => CParameter Object
    (
        [_xml:protected] => 
        [data:protected] => stdClass Object
            (
                [notifyEmailSystem] => 1
                [privacyProfileView] => 0
                [privacyPhotoView] => 0
                [privacyFriendsView] => 0
                [privacyGroupsView] => 
                [privacyVideoView] => 0
                [notifyEmailMessage] => 1
                [notifyEmailApps] => 1
                [notifyWallComment] => 0
                [notif_groups_notify_admin] => 1
                [etype_groups_notify_admin] => 1
                [notif_user_profile_delete] => 1
                [etype_user_profile_delete] => 1
                [notif_system_reports_threshold] => 1
                [etype_system_reports_threshold] => 1
                [notif_profile_activity_add_comment] => 1
                [etype_profile_activity_add_comment] => 1
                [notif_profile_activity_reply_comment] => 1
                [etype_profile_activity_reply_comment] => 1

问题:

我想知道这些偏好

            [notifyEmailSystem] => 1
            [privacyProfileView] => 0
            [privacyPhotoView] => 0
            [privacyFriendsView] => 0
            [privacyGroupsView] => 
            [privacyVideoView] => 0
            [notifyEmailMessage] => 1

哪些存储在数据库中? 如何添加更多自定义偏好?

0 个答案:

没有答案