| @@ 32-43 (lines=12) @@ | ||
| 29 | /** |
|
| 30 | * Constructor |
|
| 31 | */ |
|
| 32 | public function __construct($user_id) |
|
| 33 | { |
|
| 34 | $this->user_id = $user_id; |
|
| 35 | $this->path = 'block_student_graph'; |
|
| 36 | if ($this->is_block_visible_for_user($user_id)) { |
|
| 37 | /*if (api_is_platform_admin()) { |
|
| 38 | $this->students = UserManager::get_user_list(array('status' => STUDENT)); |
|
| 39 | } else if (api_is_drh()) {*/ |
|
| 40 | $this->students = UserManager::get_users_followed_by_drh($user_id, STUDENT); |
|
| 41 | //} |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * This method check if a user is allowed to see the block inside dashboard interface |
|
| @@ 25-32 (lines=8) @@ | ||
| 22 | /** |
|
| 23 | * Constructor |
|
| 24 | */ |
|
| 25 | public function __construct($user_id) |
|
| 26 | { |
|
| 27 | $this->user_id = $user_id; |
|
| 28 | $this->path = 'block_student'; |
|
| 29 | if ($this->is_block_visible_for_user($user_id)) { |
|
| 30 | $this->students = UserManager::get_users_followed_by_drh($user_id, STUDENT); |
|
| 31 | } |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * This method check if a user is allowed to see the block inside dashboard interface |
|