chamilo/chamilo-lms

View on GitHub
public/main/social/group_invitation.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "tbl_group_rel_user" is not in valid camel caps format
Open

$tbl_group_rel_user = Database::get_main_table(TABLE_USERGROUP_REL_USER);

Variable "user_list" is not in valid camel caps format
Open

            $user_list,

Variable "group_friend_list" is not in valid camel caps format
Open

            if (isset($group_friend_list[$group_id]) &&

Variable "Users" is not in valid camel caps format
Open

    foreach ($Users as $user) {

Variable "group_id" is not in valid camel caps format
Open

$form = new FormValidator('frm_invitation', 'post', api_get_self().'?id='.$group_id);

Variable "social_right_content" is not in valid camel caps format
Open

    $social_right_content .= Display::panel($userList, get_lang('Users already invited'));

Variable "user_id" is not in valid camel caps format
Open

            foreach ($user_list as $user_id) {

Variable "suggest_friends" is not in valid camel caps format
Open

$suggest_friends = false;

Variable "this_section" is not in valid camel caps format
Open

$this_section = SECTION_SOCIAL;

Variable "group_info" is not in valid camel caps format
Open

    if (empty($group_info)) {

Variable "SessionList" is not in valid camel caps format
Open

$UserList = $SessionList = [];

Variable "user_list" is not in valid camel caps format
Open

    if (!is_array($user_list)) {

Variable "user_list" is not in valid camel caps format
Open

        $user_list = [];

Variable "suggest_friends" is not in valid camel caps format
Open

    $suggest_friends = true;

Variable "friend_group_id" is not in valid camel caps format
Open

                $friend_group_id = $group_id;

Variable "friend_group_id" is not in valid camel caps format
Open

            $friend_group_id = '';

Variable "group_id" is not in valid camel caps format
Open

                '' == $group_friend_list[$group_id]['relation_type']) {

Variable "group_id" is not in valid camel caps format
Open

        if ($user['group_id'] != $group_id) {

Variable "social_right_content" is not in valid camel caps format
Open

$tpl->assign('social_right_content', $social_right_content);

Variable "user_id" is not in valid camel caps format
Open

                    $user_id,

Variable "group_friend_list" is not in valid camel caps format
Open

        $group_friend_list = $usergroup->get_groups_by_user($friend['friend_user_id'], 0);

Variable "group_id" is not in valid camel caps format
Open

                $group_friend_list[$group_id]['id'] == $group_id

Variable "group_id" is not in valid camel caps format
Open

                isset($group_friend_list[$group_id]) &&

Variable "Users" is not in valid camel caps format
Open

if (is_array($Users) && count($Users) > 0) {

Variable "group_info" is not in valid camel caps format
Open

$social_right_content = '<h3 class="group-title">'.Security::remove_XSS($group_info['name'], STUDENT, true).'</h3>';

Variable "social_right_content" is not in valid camel caps format
Open

    $social_right_content .= '</div>';

Variable "Users" is not in valid camel caps format
Open

$Users = [];

Variable "Users" is not in valid camel caps format
Open

                $Users[$friend['friend_user_id']] = [

Variable "group_members_element" is not in valid camel caps format
Open

$group_members_element = $form->addMultiSelect(

Variable "social_right_content" is not in valid camel caps format
Open

$social_right_content .= $form->returnForm();

Variable "group_id" is not in valid camel caps format
Open

    $group_id,

Variable "tbl_user" is not in valid camel caps format
Open

$tbl_user = Database::get_main_table(TABLE_MAIN_USER);

Variable "group_id" is not in valid camel caps format
Open

if (empty($group_id)) {

Variable "user_list" is not in valid camel caps format
Open

        if (is_array($user_list) && count($user_list) > 0) {

Variable "group_friend_list" is not in valid camel caps format
Open

        if (!empty($group_friend_list)) {

Variable "Users" is not in valid camel caps format
Open

if (is_array($Users) && count($Users) > 0) {

Variable "social_right_content" is not in valid camel caps format
Open

        $social_right_content .= Display::return_message(get_lang('You need to have friends in your social network'), 'warning');

Variable "group_info" is not in valid camel caps format
Open

    $group_info = $usergroup->get($group_id);

Variable "group_id" is not in valid camel caps format
Open

    if (!$usergroup->is_group_member($group_id)) {

Variable "group_id" is not in valid camel caps format
Open

$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => $group_info['name']];

Variable "group_id" is not in valid camel caps format
Open

    $group_id = intval($_POST['id']);

Variable "group_id" is not in valid camel caps format
Open

        $content .= '<a href="'.api_get_path(WEB_CODE_PATH).'social/invitations.php?accept='.$group_id.'">'.

Variable "group_info" is not in valid camel caps format
Open

        $title = get_lang('You are invited to group').' '.$group_info['name'];

Variable "Users" is not in valid camel caps format
Open

            $Users[$friend['friend_user_id']] = [

Variable "social_right_content" is not in valid camel caps format
Open

    $social_right_content .= '<br />';

Variable "form_sent" is not in valid camel caps format
Open

    $form_sent = $_POST['form_sent'];

Variable "group_id" is not in valid camel caps format
Open

            if (isset($group_friend_list[$group_id]) &&

Variable "social_right_content" is not in valid camel caps format
Open

$social_right_content = '<h3 class="group-title">'.Security::remove_XSS($group_info['name'], STUDENT, true).'</h3>';

Variable "group_id" is not in valid camel caps format
Open

SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'groups', $group_id);

Variable "form_sent" is not in valid camel caps format
Open

$form_sent = 0;

Variable "user_list" is not in valid camel caps format
Open

        if (is_array($user_list) && count($user_list) > 0) {

Variable "order_clause" is not in valid camel caps format
Open

$order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname, username' : ' ORDER BY lastname, firstname, username';

Variable "social_right_content" is not in valid camel caps format
Open

        $social_right_content .= Display::return_message(get_lang('You already invite all your contacts'), 'info');

Variable "tool_name" is not in valid camel caps format
Open

$tool_name = get_lang('Subscribe users to group');

Variable "user_list" is not in valid camel caps format
Open

            foreach ($user_list as $user_id) {

Variable "group_id" is not in valid camel caps format
Open

            if (!isset($group_friend_list[$group_id]) ||

Variable "group_friend_list" is not in valid camel caps format
Open

                '' == $group_friend_list[$group_id]['relation_type']) {

Variable "group_info" is not in valid camel caps format
Open

$interbreadcrumb[] = ['url' => 'group_view.php?id='.$group_id, 'name' => $group_info['name']];

Variable "group_id" is not in valid camel caps format
Open

            [$group_id],

Variable "group_friend_list" is not in valid camel caps format
Open

            if (!isset($group_friend_list[$group_id]) ||

Variable "social_right_content" is not in valid camel caps format
Open

    $social_right_content .= '<div>';

Variable "group_id" is not in valid camel caps format
Open

$form->addHidden('id', $group_id);

Variable "UserList" is not in valid camel caps format
Open

$UserList = $SessionList = [];

Variable "user_list" is not in valid camel caps format
Open

    $user_list = isset($_POST['invitation']) ? $_POST['invitation'] : null;

Variable "form_sent" is not in valid camel caps format
Open

    if (1 == $form_sent) {

Variable "group_id" is not in valid camel caps format
Open

                $group_friend_list[$group_id]['id'] == $group_id

Variable "friend_group_id" is not in valid camel caps format
Open

                    'group_id' => $friend_group_id,

Variable "social_right_content" is not in valid camel caps format
Open

    $social_right_content .= '<a href="search.php" class="btn btn--plain btn-sm">'.Display::getMdiIcon('magnify').' '.get_lang('Try and find some friends').'</a>';

Variable "social_layout" is not in valid camel caps format
Open

$social_layout = $tpl->get_template('social/add_groups.tpl');

Variable "group_id" is not in valid camel caps format
Open

        header('Location: '.api_get_self().'?id='.$group_id);

Variable "group_friend_list" is not in valid camel caps format
Open

                $group_friend_list[$group_id]['id'] == $group_id

Variable "group_id" is not in valid camel caps format
Open

$group_id = intval($_REQUEST['id']);

Variable "group_id" is not in valid camel caps format
Open

    $group_info = $usergroup->get($group_id);

Variable "group_info" is not in valid camel caps format
Open

        $content = get_lang('You are invited to groupContent').' '.$group_info['name'].' <br />';

Variable "group_id" is not in valid camel caps format
Open

                $friend_group_id = $group_id;

Variable "group_friend_list" is not in valid camel caps format
Open

                isset($group_friend_list[$group_id]) &&

Variable "social_layout" is not in valid camel caps format
Open

$tpl->display($social_layout);

There are no issues that match your filters.

Category
Status