Example #1
0
 public function getUserInfoLabels()
 {
     $labels = claro_user_info_claro_user_info_get_cat_def_list($this->courseId);
     if ($labels) {
         $ret = array();
         foreach ($labels as $label) {
             $ret[$label['catId']] = $label['title'];
         }
         return $ret;
     } else {
         return array();
     }
 }
Example #2
0
    } elseif (isset($_REQUEST['editContent'])) {
        $displayMode = "viewContentEdit";
    }
}
//PREPARE DISPLAYS
if ($displayMode == "viewDefEdit") {
    /* CATEGORIES DEFINITIONS : EDIT */
    if ($do != DO_EDIT_EXTRA_FIELD) {
        $catToEdit = array();
        $catToEdit['title'] = '';
        $catToEdit['comment'] = '';
        $catToEdit['nbline'] = 1;
        $catToEdit['id'] = '';
    }
} elseif ($displayMode == 'viewDefList') {
    $catList = claro_user_info_claro_user_info_get_cat_def_list();
} elseif ($displayMode == 'viewMainInfoEdit') {
    /*>>>>>>>>>>>> CATEGORIES MAIN INFO : EDIT <<<<<<<<<<<<*/
    $mainUserInfo = course_user_get_properties($userIdViewed, claro_get_current_course_id());
} elseif ($displayMode == 'viewContentEdit') {
    $catToEdit = claro_user_info_get_cat_content($userIdViewed, $_REQUEST['editContent']);
} elseif ($displayMode == 'viewContentList') {
    $mainUserInfo = course_user_get_properties($userIdViewed, claro_get_current_course_id());
}
if ($displayMode != "viewContentList") {
    claro_set_display_mode_available(false);
}
$skypeName = get_user_property($userIdViewed, 'skype');
if ($skypeName) {
    $skypeStatus = '<a href="skype:' . $skypeName . '?call">' . "\n" . '<img src="http://mystatus.skype.com/smallclassic/' . $skypeName . '"
                        style="border: none;" width="100" height="15" alt="" />' . "\n" . '</a>';