Code |
Context$exam = array(
"Exam" => array(
"id" => "12047",
"teaching_id" => "9214",
"teacher_id" => "310",
"qualification_id" => null,
"classroom_id" => "11",
"num_massimo_iscritti" => null,
"examstatus_id" => "2",
"commissione1" => "310",
"commissione2" => "323",
"commissione3" => "344",
"commissione4" => null,
"date" => "2021-01-28 14:00:00",
"chiusura_iscrizioni" => "2021-01-27 18:00:00",
"date2" => null,
"classroom2_id" => null,
"note" => "",
"created" => "2021-01-08 16:55:13",
"modified" => "2021-01-08 16:55:13",
"operator_user_id" => "1975",
"edit_operator_user_id" => null
),
"Teacher" => array(
"id" => "310",
"user_id" => "1975",
"User" => array()
),
"Teacher1" => array(
"id" => "310",
"user_id" => "1975",
"User" => array()
),
"Teacher2" => array(
"id" => "323",
"user_id" => "2244",
"User" => array()
),
"Teacher3" => array(
"id" => "344",
"user_id" => "2618",
"User" => array()
),
"Teacher4" => array(
"id" => null,
"user_id" => null
),
"Teaching" => array(
"id" => "9214",
"name" => "Musica d'insieme per fiati I"
),
"Classroom" => array(
"id" => "11",
"name" => "Sala Prove"
),
"Classroom2" => array(
"id" => null,
"name" => null
),
"Examstatus" => array(
"id" => "2",
"name" => "Appello confermato"
),
"Application" => array(
array()
)
)
$application = array(
"id" => "23031",
"exam_id" => "12047",
"student_id" => "2506",
"preselection_exam_id" => null,
"preselection_id" => null,
"diploma_exam_id" => null,
"presence_id" => "1",
"created" => "2021-01-08 18:42:59",
"modified" => "2021-01-08 18:42:59",
"operator_user_id" => "2919",
"edit_operator_user_id" => null,
"Student" => array(
"id" => "2506",
"user_id" => "2919",
"course_id" => "1363",
"User" => array(),
"Course" => array()
),
"ExamReport" => array()
)
function isEditable($exam) {
foreach ($exam['Application'] as $application) {
if ($application['ExamReport']['id']) return false;
Exam::isEditable() - APP/models/exam.php, line 396
Exam::view() - APP/models/exam.php, line 256
ExamsController::view() - APP/controllers/exams_controller.php, line 127
Object::dispatchMethod() - CORE/cake/libs/object.php, line 117
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 226
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 193
[main] - APP/webroot/index.php, line 88