|
@@ 1895-1898 (lines=4) @@
|
| 1892 |
|
$event['borderColor'] = $event['backgroundColor'] = $this->event_course_color; |
| 1893 |
|
|
| 1894 |
|
$sessionInfo = []; |
| 1895 |
|
if (isset($row['session_id']) && !empty($row['session_id'])) { |
| 1896 |
|
$sessionInfo = api_get_session_info($session_id); |
| 1897 |
|
$event['borderColor'] = $event['backgroundColor'] = $this->event_session_color; |
| 1898 |
|
} |
| 1899 |
|
|
| 1900 |
|
$event['session_name'] = isset($sessionInfo['name']) ? $sessionInfo['name'] : ''; |
| 1901 |
|
$event['course_name'] = isset($courseInfo['title']) ? $courseInfo['title'] : ''; |
|
@@ 1903-1905 (lines=3) @@
|
| 1900 |
|
$event['session_name'] = isset($sessionInfo['name']) ? $sessionInfo['name'] : ''; |
| 1901 |
|
$event['course_name'] = isset($courseInfo['title']) ? $courseInfo['title'] : ''; |
| 1902 |
|
|
| 1903 |
|
if (isset($row['to_group_id']) && !empty($row['to_group_id'])) { |
| 1904 |
|
$event['borderColor'] = $event['backgroundColor'] = $this->event_group_color; |
| 1905 |
|
} |
| 1906 |
|
|
| 1907 |
|
if (!empty($color)) { |
| 1908 |
|
$event['borderColor'] = $event['backgroundColor'] = $color; |
|
@@ 1911-1913 (lines=3) @@
|
| 1908 |
|
$event['borderColor'] = $event['backgroundColor'] = $color; |
| 1909 |
|
} |
| 1910 |
|
|
| 1911 |
|
if (isset($row['color']) && !empty($row['color'])) { |
| 1912 |
|
$event['borderColor'] = $event['backgroundColor'] = $row['color']; |
| 1913 |
|
} |
| 1914 |
|
|
| 1915 |
|
$event['editable'] = false; |
| 1916 |
|
if ($this->getIsAllowedToEdit() && $this->type == 'course') { |