main/inc/lib/search/tool_processors/document_processor.class.php 1 location
|
@@ 100-103 (lines=4) @@
|
| 97 |
|
// get author |
| 98 |
|
$author = ''; |
| 99 |
|
$item_result = Database::query($sql); |
| 100 |
|
if ($row = Database::fetch_array($item_result)) { |
| 101 |
|
$user_data = api_get_user_info($row['insert_user_id']); |
| 102 |
|
$author = api_get_person_name($user_data['firstName'], $user_data['lastName']); |
| 103 |
|
} |
| 104 |
|
} |
| 105 |
|
return array($thumbnail, $image, $name, $author, $url); // FIXME: is it posible to get an author here? |
| 106 |
|
} else { |
main/inc/lib/search/tool_processors/link_processor.class.php 1 location
|
@@ 118-121 (lines=4) @@
|
| 115 |
|
// get author |
| 116 |
|
$author = ''; |
| 117 |
|
$item_result = Database::query($sql); |
| 118 |
|
if ($row = Database::fetch_array($item_result)) { |
| 119 |
|
$user_data = api_get_user_info($row['insert_user_id']); |
| 120 |
|
$author = api_get_person_name($user_data['firstName'], $user_data['lastName']); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
return array($thumbnail, $image, $name, $author, $url); |
| 124 |
|
} else { |
main/announcements/announcements.php 1 location
|
@@ 177-181 (lines=5) @@
|
| 174 |
|
$searchForm->addElement('text', 'keyword', get_lang('Title')); |
| 175 |
|
$users = CourseManager::get_user_list_from_course_code(api_get_course_id(), $sessionId); |
| 176 |
|
$userList = array('' => ''); |
| 177 |
|
if (!empty($users)) { |
| 178 |
|
foreach ($users as $user) { |
| 179 |
|
$userList[$user['user_id']] = api_get_person_name($user['firstname'], $user['lastname']); |
| 180 |
|
} |
| 181 |
|
} |
| 182 |
|
$users = []; |
| 183 |
|
$searchForm->addElement('select', 'user_id', get_lang('Users'), $userList); |
| 184 |
|
$searchForm->addButtonSearch(get_lang('Search')); |
main/inc/lib/pdf.lib.php 1 location
|
@@ 639-648 (lines=10) @@
|
| 636 |
|
$teacher_list = CourseManager::get_teacher_list_from_course_code($course_data['code']); |
| 637 |
|
|
| 638 |
|
$teachers = ''; |
| 639 |
|
if (!empty($teacher_list)) { |
| 640 |
|
foreach ($teacher_list as $teacher) { |
| 641 |
|
if ($teacher['user_id'] != $userId) { |
| 642 |
|
continue; |
| 643 |
|
} |
| 644 |
|
|
| 645 |
|
// Do not show the teacher list see BT#4080 only the current teacher name |
| 646 |
|
$teachers = api_get_person_name($teacher['firstname'], $teacher['lastname']); |
| 647 |
|
} |
| 648 |
|
} |
| 649 |
|
|
| 650 |
|
$organization = ChamiloApi::getPlatformLogo(); |
| 651 |
|
// Use custom logo image. |
main/inc/lib/sessionmanager.lib.php 1 location
|
@@ 5228-5236 (lines=9) @@
|
| 5225 |
|
) { |
| 5226 |
|
$coaches = self::getCoachesByCourseSession($sessionId, $courseId); |
| 5227 |
|
$list = array(); |
| 5228 |
|
if (!empty($coaches)) { |
| 5229 |
|
foreach ($coaches as $coachId) { |
| 5230 |
|
$userInfo = api_get_user_info($coachId); |
| 5231 |
|
$list[] = api_get_person_name( |
| 5232 |
|
$userInfo['firstname'], |
| 5233 |
|
$userInfo['lastname'] |
| 5234 |
|
); |
| 5235 |
|
} |
| 5236 |
|
} |
| 5237 |
|
|
| 5238 |
|
return array_to_string($list, CourseManager::USER_SEPARATOR); |
| 5239 |
|
} |