plugin/dashboard/block_daily/block_daily.class.php 1 location
|
@@ 47-60 (lines=14) @@
|
| 44 |
|
* @param int User id |
| 45 |
|
* @return bool Is block visible for user |
| 46 |
|
*/ |
| 47 |
|
public function is_block_visible_for_user($user_id) |
| 48 |
|
{ |
| 49 |
|
$user_info = api_get_user_info($user_id); |
| 50 |
|
$user_status = $user_info['status']; |
| 51 |
|
$is_block_visible_for_user = false; |
| 52 |
|
if (UserManager::is_admin($user_id) || in_array( |
| 53 |
|
$user_status, |
| 54 |
|
$this->permission |
| 55 |
|
) |
| 56 |
|
) { |
| 57 |
|
$is_block_visible_for_user = true; |
| 58 |
|
} |
| 59 |
|
return $is_block_visible_for_user; |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
/** |
| 63 |
|
* This method return content html containing information about courses and its position for showing it inside dashboard interface |
plugin/dashboard/block_global_info/block_global_info.class.php 1 location
|
@@ 46-55 (lines=10) @@
|
| 43 |
|
* @param int User id |
| 44 |
|
* @return bool Is block visible for user |
| 45 |
|
*/ |
| 46 |
|
public function is_block_visible_for_user($user_id) |
| 47 |
|
{ |
| 48 |
|
$user_info = api_get_user_info($user_id); |
| 49 |
|
$user_status = $user_info['status']; |
| 50 |
|
$is_block_visible_for_user = false; |
| 51 |
|
if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
| 52 |
|
$is_block_visible_for_user = true; |
| 53 |
|
} |
| 54 |
|
return $is_block_visible_for_user; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
|
| 58 |
|
/** |
plugin/dashboard/block_session/block_session.class.php 1 location
|
@@ 39-48 (lines=10) @@
|
| 36 |
|
* @param int User id |
| 37 |
|
* @return bool Is block visible for user |
| 38 |
|
*/ |
| 39 |
|
public function is_block_visible_for_user($user_id) |
| 40 |
|
{ |
| 41 |
|
$user_info = api_get_user_info($user_id); |
| 42 |
|
$user_status = $user_info['status']; |
| 43 |
|
$is_block_visible_for_user = false; |
| 44 |
|
if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
| 45 |
|
$is_block_visible_for_user = true; |
| 46 |
|
} |
| 47 |
|
return $is_block_visible_for_user; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* This method return content html containing |
plugin/dashboard/block_student_graph/block_student_graph.class.php 1 location
|
@@ 50-59 (lines=10) @@
|
| 47 |
|
* @param int User id |
| 48 |
|
* @return bool Is block visible for user |
| 49 |
|
*/ |
| 50 |
|
public function is_block_visible_for_user($user_id) |
| 51 |
|
{ |
| 52 |
|
$user_info = api_get_user_info($user_id); |
| 53 |
|
$user_status = $user_info['status']; |
| 54 |
|
$is_block_visible_for_user = false; |
| 55 |
|
if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
| 56 |
|
$is_block_visible_for_user = true; |
| 57 |
|
} |
| 58 |
|
return $is_block_visible_for_user; |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
/** |
| 62 |
|
* This method return content html containing information about students |
plugin/dashboard/block_teacher_graph/block_teacher_graph.class.php 1 location
|
@@ 46-55 (lines=10) @@
|
| 43 |
|
* @param int User id |
| 44 |
|
* @return bool Is block visible for user |
| 45 |
|
*/ |
| 46 |
|
public function is_block_visible_for_user($user_id) |
| 47 |
|
{ |
| 48 |
|
$user_info = api_get_user_info($user_id); |
| 49 |
|
$user_status = $user_info['status']; |
| 50 |
|
$is_block_visible_for_user = false; |
| 51 |
|
if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
| 52 |
|
$is_block_visible_for_user = true; |
| 53 |
|
} |
| 54 |
|
return $is_block_visible_for_user; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
/** |
| 58 |
|
* This method return content html containing information about teachers and its position for showing it inside dashboard interface |
plugin/dashboard/block_teacher/block_teacher.class.php 1 location
|
@@ 41-50 (lines=10) @@
|
| 38 |
|
* @param int User id |
| 39 |
|
* @return bool Is block visible for user |
| 40 |
|
*/ |
| 41 |
|
public function is_block_visible_for_user($user_id) |
| 42 |
|
{ |
| 43 |
|
$user_info = api_get_user_info($user_id); |
| 44 |
|
$user_status = $user_info['status']; |
| 45 |
|
$is_block_visible_for_user = false; |
| 46 |
|
if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
| 47 |
|
$is_block_visible_for_user = true; |
| 48 |
|
} |
| 49 |
|
return $is_block_visible_for_user; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** |
| 53 |
|
* This method return content html containing information about |
plugin/dashboard/block_course/block_course.class.php 1 location
|
@@ 39-52 (lines=14) @@
|
| 36 |
|
* @param int User id |
| 37 |
|
* @return bool Is block visible for user |
| 38 |
|
*/ |
| 39 |
|
public function is_block_visible_for_user($user_id) |
| 40 |
|
{ |
| 41 |
|
$user_info = api_get_user_info($user_id); |
| 42 |
|
$user_status = $user_info['status']; |
| 43 |
|
$is_block_visible_for_user = false; |
| 44 |
|
if (UserManager::is_admin($user_id) || in_array( |
| 45 |
|
$user_status, |
| 46 |
|
$this->permission |
| 47 |
|
) |
| 48 |
|
) { |
| 49 |
|
$is_block_visible_for_user = true; |
| 50 |
|
} |
| 51 |
|
return $is_block_visible_for_user; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* This method return content html containing information |
plugin/dashboard/block_evaluation_graph/block_evaluation_graph.class.php 1 location
|
@@ 52-61 (lines=10) @@
|
| 49 |
|
* @param int User id |
| 50 |
|
* @return bool Is block visible for user |
| 51 |
|
*/ |
| 52 |
|
public function is_block_visible_for_user($user_id) |
| 53 |
|
{ |
| 54 |
|
$user_info = api_get_user_info($user_id); |
| 55 |
|
$user_status = $user_info['status']; |
| 56 |
|
$is_block_visible_for_user = false; |
| 57 |
|
if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
| 58 |
|
$is_block_visible_for_user = true; |
| 59 |
|
} |
| 60 |
|
return $is_block_visible_for_user; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
/** |
| 64 |
|
* This method return content html containing |
plugin/dashboard/block_student/block_student.class.php 1 location
|
@@ 39-48 (lines=10) @@
|
| 36 |
|
* @param int User id |
| 37 |
|
* @return bool Is block visible for user |
| 38 |
|
*/ |
| 39 |
|
public function is_block_visible_for_user($user_id) |
| 40 |
|
{ |
| 41 |
|
$user_info = api_get_user_info($user_id); |
| 42 |
|
$user_status = $user_info['status']; |
| 43 |
|
$is_block_visible_for_user = false; |
| 44 |
|
if (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) { |
| 45 |
|
$is_block_visible_for_user = true; |
| 46 |
|
} |
| 47 |
|
return $is_block_visible_for_user; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* This method return content html containing information |