|
|
|
@ -1,11 +1,11 @@ |
|
|
|
|
<?php // $Id: usermanager.lib.php 22378 2009-07-26 19:58:38Z yannoo $
|
|
|
|
|
/* For licensing terms, see /dokeos_license.txt */ |
|
|
|
|
<?php |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
/** |
|
|
|
|
============================================================================== |
|
|
|
|
* This library provides functions for user management. |
|
|
|
|
* Include/require it in your code to use its functionality. |
|
|
|
|
* |
|
|
|
|
* @package dokeos.library |
|
|
|
|
* @package chamilo.library |
|
|
|
|
* @author Julio Montoya <gugli100@gmail.com> Social network groups added 2009/12 |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
@ -1960,10 +1960,9 @@ class UserManager |
|
|
|
|
* Get the users files upload from his share_folder |
|
|
|
|
* @param string User ID |
|
|
|
|
* @param string course directory |
|
|
|
|
* @param int deprecated |
|
|
|
|
* @return int User ID (or false if not found) |
|
|
|
|
*/ |
|
|
|
|
public static function get_user_upload_files_by_course($user_id, $course, $column = 2) { |
|
|
|
|
public static function get_user_upload_files_by_course($user_id, $course) { |
|
|
|
|
$return = ''; |
|
|
|
|
if (!empty($user_id) && !empty($course)) { |
|
|
|
|
$user_id = intval($user_id); |
|
|
|
@ -1986,9 +1985,11 @@ class UserManager |
|
|
|
|
foreach ($file_list as $file) { |
|
|
|
|
$return .= '<li><a href="'.$web_path.urlencode($file).'" target="_blank">'.htmlentities($file).'</a>'; |
|
|
|
|
} |
|
|
|
|
if (count($file_list) > 0) { |
|
|
|
|
$return .= '</ul>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|