- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
class Course {
function get_course($assigned_id)
{
echo 'getCourse: '.$assigned_id;
}
}
$assigned_id = "testCourseForEditor"; // testing
if ($assigned_id) {
$course = new Course();
$course_data = $course->get_course($assigned_id);
} else {
$new_course = TRUE;
}