public/main/course_info/legal.php
Variable "user_id" is not in valid camel caps format Open
Open
$variable = 'accept_legal_'.$user_id.'_'.$course_info['real_id'].'_'.$session_id;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
COURSE_VISIBILITY_REGISTERED == $course_info['visibility'] &&
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = isset($_REQUEST['session_id']) ? (int) $_REQUEST['session_id'] : null;
- Exclude checks
Variable "course_legal" is not in valid camel caps format Open
Open
$course_legal = $data['content'];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "accept_legal" is not in valid camel caps format Open
Open
if (1 == $accept_legal) {
- Exclude checks
Variable "user_pass_open_course" is not in valid camel caps format Open
Open
$user_pass_open_course = false;
- Exclude checks
Variable "accept_legal" is not in valid camel caps format Open
Open
$accept_legal = $form->exportValue('accept_legal');
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info = api_get_course_info($course_code);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'course_code', $course_code);
- Exclude checks
Variable "user_pass_open_course" is not in valid camel caps format Open
Open
$user_pass_open_course = true;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = api_get_user_id();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$form = new FormValidator('legal', 'GET', api_get_self().'?course_code='.$course_code.'&session_id='.$session_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$form->addElement('label', null, $plugin->getCurrentFile($course_info['real_id'], $session_id));
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$url = api_get_course_url($course_info['real_id'], $session_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
CourseManager::subscribeUser($user_id, $course_info['real_id'], STUDENT, 0);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
CourseManager::subscribeUser($user_id, $course_info['real_id'], STUDENT, 0);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$variable = 'accept_legal_'.$user_id.'_'.$course_info['real_id'].'_'.$session_id;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
if (api_check_user_access_to_legal($course_info) && Session::read($variable)) {
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$variable = 'accept_legal_'.$user_id.'_'.$course_info['real_id'].'_'.$session_id;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
1 == $course_info['subscribe']
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_legal = $course_info['legal'];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$form->addElement('label', null, $plugin->getCurrentFile($course_info['real_id'], $session_id));
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id) &&
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
CourseManager::save_user_legal($user_id, $course_info, $session_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_info = api_get_course_info($course_code);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$form = new FormValidator('legal', 'GET', api_get_self().'?course_code='.$course_code.'&session_id='.$session_id);
- Exclude checks
Variable "course_legal" is not in valid camel caps format Open
Open
$form->addElement('label', null, $course_legal);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
CourseManager::save_user_legal($user_id, $course_info, $session_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
if (api_check_user_access_to_legal($course_info)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info['real_id'],
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'session_id', $session_id);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$url = api_get_course_url($course_info['real_id'], $session_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code = isset($_REQUEST['course_code']) ? Security::remove_XSS($_REQUEST['course_code']) : null;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
if (empty($course_code)) {
- Exclude checks
Variable "course_legal" is not in valid camel caps format Open
Open
$course_legal = $course_info['legal'];
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info['real_id'],
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
if (CourseManager::is_user_subscribed_in_course($user_id, $course_code) ||
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$data = $plugin->getData($course_info['real_id'], $session_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
CourseManager::save_user_legal($user_id, $course_info, $session_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$data = $plugin->getData($course_info['real_id'], $session_id);
- Exclude checks
Variable "user_accepted_legal" is not in valid camel caps format Open
Open
if ($user_accepted_legal || $user_pass_open_course) {
- Exclude checks
Variable "user_pass_open_course" is not in valid camel caps format Open
Open
if ($user_accepted_legal || $user_pass_open_course) {
- Exclude checks
Variable "user_accepted_legal" is not in valid camel caps format Open
Open
if ($user_accepted_legal || $user_pass_open_course) {
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
if (isset($userStatus) || api_check_user_access_to_legal($course_info)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$userStatus = SessionManager::get_user_status_in_course_session($user_id, $course_info['real_id'], $session_id);
- Exclude checks
Variable "user_accepted_legal" is not in valid camel caps format Open
Open
$user_accepted_legal = CourseManager::is_user_accepted_legal(
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
api_check_user_access_to_legal($course_info)
- Exclude checks
Variable "user_accepted_legal" is not in valid camel caps format Open
Open
$user_accepted_legal = CourseManager::is_user_accepted_legal(
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$userStatus = SessionManager::get_user_status_in_course_session($user_id, $course_info['real_id'], $session_id);
- Exclude checks
Variable "user_pass_open_course" is not in valid camel caps format Open
Open
if ($user_accepted_legal || $user_pass_open_course) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code,
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
if (CourseManager::is_user_subscribed_in_course($user_id, $course_code) ||
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$userStatus = SessionManager::get_user_status_in_course_session($user_id, $course_info['real_id'], $session_id);
- Exclude checks