public/main/work/edit.php
Variable "work_table" is not in valid camel caps format Open
Open
$work_table = Database::get_course_table(TABLE_STUDENT_PUBLICATION);
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
if (false == $is_course_member) {
- Exclude checks
Variable "has_ended" is not in valid camel caps format Open
Open
$has_ended = false;
- Exclude checks
Variable "form_title" is not in valid camel caps format Open
Open
$interbreadcrumb[] = ['url' => '#', 'name' => $form_title];
- Exclude checks
Variable "has_ended" is not in valid camel caps format Open
Open
} elseif ($student_can_edit_in_session && false == $has_ended) {
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Variable "has_expired" is not in valid camel caps format Open
Open
$has_expired = false;
- Exclude checks
Variable "item_to_edit_id" is not in valid camel caps format Open
Open
$is_author = user_is_author($item_to_edit_id);
- Exclude checks
Variable "add_to_update" is not in valid camel caps format Open
Open
$add_to_update = null;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Variable "student_can_edit_in_session" is not in valid camel caps format Open
Open
$student_can_edit_in_session = api_is_allowed_to_session_edit(false, true);
- Exclude checks
Variable "time_expires" is not in valid camel caps format Open
Open
$time_expires = api_strtotime($homework['expires_on'], 'UTC');
- Exclude checks
Variable "expires_on" is not in valid camel caps format Open
Open
$expires_on = api_convert_and_format_date($homework['expires_on']);
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'item_id', $item_id);
- Exclude checks
Variable "_course" is not in valid camel caps format Open
Open
$_course = api_get_course_info();
- Exclude checks
Variable "student_can_edit_in_session" is not in valid camel caps format Open
Open
if ($student_can_edit_in_session && $check) {
- Exclude checks
Variable "has_ended" is not in valid camel caps format Open
Open
$has_ended = true;
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'id', $work_id);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
header('Location: '.api_get_path(WEB_CODE_PATH).'work/'.$script.'?'.api_get_cidreq().'&id='.$work_id);
- 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
$session_id = api_get_session_id();
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$parent_data = $my_folder_data = get_work_data_by_id($work_id);
- Exclude checks
Variable "show_progress_bar" is not in valid camel caps format Open
Open
$show_progress_bar = false;
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit) {
- Exclude checks
Variable "item_to_edit_id" is not in valid camel caps format Open
Open
$work_data = get_work_data_by_id($item_to_edit_id);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
if (!empty($work_id)) {
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id = isset($_REQUEST['id']) ? (int) ($_REQUEST['id']) : null;
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
$item_id = isset($_REQUEST['item_id']) ? (int) ($_REQUEST['item_id']) : null;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info = api_get_course_info();
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
- Exclude checks
Variable "form_title" is not in valid camel caps format Open
Open
$form_title = get_lang('Edit');
- Exclude checks
Variable "form_title" is not in valid camel caps format Open
Open
$form->addElement('header', $form_title);
- Exclude checks
Variable "work_data" is not in valid camel caps format Open
Open
$description = isset($_POST['description']) ? $_POST['description'] : $work_data['description'];
- Exclude checks
Variable "item_to_edit_id" is not in valid camel caps format Open
Open
$url = api_get_path(WEB_CODE_PATH).'work/view.php?'.api_get_cidreq().'&id='.$item_to_edit_id;
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
if (empty($work_id) || empty($item_id)) {
- Exclude checks
Variable "my_folder_data" is not in valid camel caps format Open
Open
$parent_data = $my_folder_data = get_work_data_by_id($work_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Variable "is_author" is not in valid camel caps format Open
Open
$is_author = false;
- Exclude checks
Variable "has_expired" is not in valid camel caps format Open
Open
$has_expired = true;
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
'url' => api_get_path(WEB_CODE_PATH).'work/work_list.php?'.api_get_cidreq().'&id='.$work_id,
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
api_get_self().'?'.api_get_cidreq().'&id='.$work_id,
- Exclude checks
Variable "time_ends" is not in valid camel caps format Open
Open
$time_ends = api_strtotime($homework['ends_on'], 'UTC');
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit) {
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
if (empty($work_id) || empty($item_id)) {
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
Open
if (empty($parent_data)) {
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit && !empty($item_id)) {
- Exclude checks
Variable "time_expires" is not in valid camel caps format Open
Open
$difference = $time_expires - $time_now;
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit) {
- Exclude checks
Variable "item_to_edit_id" is not in valid camel caps format Open
Open
$item_to_edit_id = (int) ($_POST['item_to_edit']);
- Exclude checks
Variable "student_can_edit_in_session" is not in valid camel caps format Open
Open
} elseif ($student_can_edit_in_session && false == $has_ended) {
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
$is_author = user_is_author($item_id);
- Exclude checks
Variable "time_now" is not in valid camel caps format Open
Open
$time_now = time();
- Exclude checks
Variable "time_now" is not in valid camel caps format Open
Open
$difference = $time_expires - $time_now;
- Exclude checks
Variable "time_ends" is not in valid camel caps format Open
Open
$difference2 = $time_ends - $time_now;
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
'url' => api_get_path(WEB_CODE_PATH).'work/work_list_all.php?'.api_get_cidreq().'&id='.$work_id,
- Exclude checks
Variable "work_data" is not in valid camel caps format Open
Open
$work_data = get_work_data_by_id($item_to_edit_id);
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit && isset($_POST['qualification'])) {
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
$is_allowed_to_edit = api_is_allowed_to_edit();
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id)) {
- Exclude checks
Variable "is_author" is not in valid camel caps format Open
Open
if (!$is_author) {
- Exclude checks
Variable "is_author" is not in valid camel caps format Open
Open
$is_author = user_is_author($item_to_edit_id);
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
Open
$parent_data = $my_folder_data = get_work_data_by_id($work_id);
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = $is_course_member || api_is_platform_admin();
- Exclude checks
Variable "my_folder_data" is not in valid camel caps format Open
Open
if (!empty($my_folder_data)) {
- Exclude checks
Variable "time_now" is not in valid camel caps format Open
Open
$difference2 = $time_ends - $time_now;
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
Open
'name' => $parent_data['title'],
- Exclude checks
Variable "parent_data" is not in valid camel caps format Open
Open
'name' => $parent_data['title'],
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
'<a href="'.api_get_path(WEB_CODE_PATH).'work/download.php?id='.$item_id.'&'.api_get_cidreq().'">'.
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit && !empty($item_id)) {
- Exclude checks
Variable "is_author" is not in valid camel caps format Open
Open
if ($is_author) {
- Exclude checks
Variable "is_author" is not in valid camel caps format Open
Open
} elseif ($is_author) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = api_get_user_id();
- Exclude checks
Variable "is_author" is not in valid camel caps format Open
Open
$is_author = user_is_author($item_id);
- Exclude checks
Variable "ends_on" is not in valid camel caps format Open
Open
$ends_on = api_convert_and_format_date($homework['ends_on']);
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'item_to_edit', $item_id);
- Exclude checks
Variable "my_folder_data" is not in valid camel caps format Open
Open
$homework = get_work_assignment_by_id($my_folder_data['iid']);
- Exclude checks
Variable "work_data" is not in valid camel caps format Open
Open
$title = isset($_POST['title']) ? $_POST['title'] : $work_data['title'];
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
if (api_resource_is_locked_by_gradebook($work_id, LINK_STUDENTPUBLICATION)) {
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
Open
$current_course_tool = TOOL_STUDENTPUBLICATION;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code = api_get_course_id();
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = $is_course_member || api_is_platform_admin();
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
Open
$studentPublication = $repo->find($item_id);
- Exclude checks