chamilo/chamilo-lms

View on GitHub
public/main/lp/lp_controller.php

Summary

Maintainability
A
0 mins
Test Coverage

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

$use_anonymous = true;

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

                    $document_id,

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

        if (!$is_allowed_to_edit) {

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

                    '?action=add_audio&lp_id='.$oLP->lp_id.'&id='.$lp_item_obj->get_id().'&'.api_get_cidreq();

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

        if (!$lp_found) {

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

        if (!$is_allowed_to_edit) {

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

                    $lp_found = true;

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

        $lp_detail_id = $oLP->get_current_item_id();

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

            if (!$lp_found) {

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

            $url = api_get_self().'?action=add_item&type=step&lp_id='.intval($oLP->lp_id).'&'.api_get_cidreq();

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

        if (!$lp_found) {

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

        if ($lp_found) {

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

$post_title = '';

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

                    $post_title,

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

                    $document_id,

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

$myrefresh_id = 0;

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

        if (!$is_allowed_to_edit) {

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

                error_log('$oLP->lp_view_session_id: '.$oLP->lp_view_session_id);

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

        $lp_detail_id = (!empty($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0);

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

        $post_title = Exercise::format_title_variable($_POST['title']);

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

        if (!isset($oLP) || !$lp_found) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

        if (!$lp_found) {

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

        if ($lp_found) {

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

        if (!$lp_found) {

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

        if ($lp_found) {

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

        if (!$lp_found) {

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

$lp_detail_id = 0;

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

        if (!$is_allowed_to_edit || !$lp_found) {

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

                    $post_title,

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

            if (!$lp_found) {

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

            $post_title = $_POST['title'];

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

                    $document_id = $_POST['path'];

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

        if (!$lp_found) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

        if ($lp_found) {

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

$current_course_tool = TOOL_LEARNPATH;

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

        if (!$is_allowed_to_edit) {

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

        if (isset($_POST['submit_button']) && !empty($post_title)) {

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

                        $document_id = $oLP->createReadOutText(

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

        if (!$is_allowed_to_edit || !$lp_found) {

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

        if (isset($_POST['submit_button']) && !empty($post_title)) {

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

            $is_success = true;

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

        if (!$is_allowed_to_edit || !$lp_found) {

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

                        $document_id = $oLP->create_document(

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

                    $lp_item_obj->addAudio();

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        $url = api_get_self().'?action=add_item&type=step&lp_id='.intval($oLP->lp_id)."&".api_get_cidreq();

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

    'tool_id_detail' => $lp_detail_id,

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

                    $document_id = $_POST['path'];

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

                    $post_title,

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

        if (!$lp_found) {

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

                    $lp_item_obj->removeAudio();

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

        if (!$is_allowed_to_edit || !$lp_found) {

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

        if (!$lp_found) {

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

        if (!$lp_found) {

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

            $recipientName = $coach_course['full_name'];

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

            $coachInfo = api_get_user_info($coach_course['user_id']);

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

                $url = api_get_self().'?action=add_item&type=step&lp_id='.intval($oLP->lp_id).'&'.api_get_cidreq();

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

        if (!$lp_found) {

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

                    $post_title,

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

        if (!$lp_found) {

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

            if ($item->db_id != $_GET['id']) {

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

            'lp_id' => $oLP->lp_id,

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

$is_allowed_to_edit = api_is_allowed_to_edit(false, true, false, false);

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

                    '?action=add_audio&lp_id='.$oLP->lp_id.'&id='.$lp_item_obj->get_id().'&'.api_get_cidreq();

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

        if (!$lp_found) {

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

        if (!$lp_found) {

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

        if (!$lp_found) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

$lp_controller_touched = 1;

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

$lp_found = false;

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

                    $lp_found = true;

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

    $oLP->update_queue = [];

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

        if (!$lp_found) {

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

            $oLP->lp_view_session_id != $sessionId

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

                $myrefresh_id = $oLP->get_id();

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

        foreach ($coachList as $coach_course) {

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

            $url = api_get_self().'?action=add_item&type=step&lp_id='.intval($oLP->lp_id).'&'.api_get_cidreq();

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

                    $lp_item_obj->add_audio_from_documents($_REQUEST['document_id']);

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

            if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

        if ($lp_found) {

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

        if ($lp_found) {

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

        if (!$lp_found) {

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

        if ($lp_found) {

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

        if (!$is_allowed_to_edit) {

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

        $url = api_get_self().'?action=add_item&type=step&lp_id='.intval($oLP->lp_id)."&".api_get_cidreq();

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

            'lp_id' => $oLP->lp_id,

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

        if (!$lp_found) {

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

        if (!isset($_POST['submit']) || empty($post_title)) {

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

                $lp_item_obj = new learnpathItem($_REQUEST['id']);

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

$ajax_url = api_get_path(WEB_AJAX_PATH).'lp.ajax.php?lp_id='.$lpId.'&'.api_get_cidreq();

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

                $post_title,

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

                $url = api_get_self().'?action=add_item&type=step&lp_id='.intval($oLP->lp_id).'&'.api_get_cidreq();

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

        if (!$is_allowed_to_edit) {

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

        if (!$is_allowed_to_edit) {

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

        if ($lp_found) {

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

        if ($lp_found) {

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

            $lp_found = true;

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

                    $lp_found = true;

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

    $post_title = Security::remove_XSS($_POST['title']);

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

            $url = api_get_self().'?action=add_item&type=step&lp_id='.intval($oLP->lp_id).'&'.api_get_cidreq();

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

        if (!$is_allowed_to_edit) {

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

        if (!$lp_found) {

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

        if (!$lp_found) {

There are no issues that match your filters.

Category
Status