@@ -86,13 +86,13 @@ |
||
| 86 | 86 | return $this->get($file); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - /** |
|
| 90 | - * Gets a file from the data/courses/MATHS/scorm directory |
|
| 91 | - * @param string $courseCode |
|
| 92 | - * @param string $file |
|
| 93 | - * |
|
| 94 | - * @return SplFileInfo |
|
| 95 | - */ |
|
| 89 | + /** |
|
| 90 | + * Gets a file from the data/courses/MATHS/scorm directory |
|
| 91 | + * @param string $courseCode |
|
| 92 | + * @param string $file |
|
| 93 | + * |
|
| 94 | + * @return SplFileInfo |
|
| 95 | + */ |
|
| 96 | 96 | public function getCourseScormDocument($courseCode, $file) |
| 97 | 97 | { |
| 98 | 98 | $file = 'courses/'.$courseCode.'/scorm/'.$file; |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Create folders |
| 119 | - * @param array $folderList |
|
| 119 | + * @param string[] $folderList |
|
| 120 | 120 | * @param OutputInterface $output |
| 121 | 121 | * @param string $folderPermissions |
| 122 | 122 | */ |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * http://chamilo/courses/ABC/document/file.jpg |
| 201 | 201 | * @param string $content |
| 202 | 202 | * |
| 203 | - * @return string |
|
| 203 | + * @return \simplehtmldom_1_5\simple_html_dom |
|
| 204 | 204 | */ |
| 205 | 205 | public function convertRelativeToAbsoluteUrl($content) |
| 206 | 206 | { |
@@ -60,11 +60,11 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | protected $priorityMessage; |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * @var integer |
|
| 65 | - * |
|
| 66 | - * @ORM\Column(name="option_order", type="integer", nullable=true) |
|
| 67 | - */ |
|
| 63 | + /** |
|
| 64 | + * @var integer |
|
| 65 | + * |
|
| 66 | + * @ORM\Column(name="option_order", type="integer", nullable=true) |
|
| 67 | + */ |
|
| 68 | 68 | protected $optionOrder; |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -153,13 +153,13 @@ |
||
| 153 | 153 | return $this; |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | - /** |
|
| 157 | - * Set comment |
|
| 158 | - * |
|
| 159 | - * @param string $comment |
|
| 160 | - * |
|
| 161 | - * @return ExtraFieldValues |
|
| 162 | - */ |
|
| 156 | + /** |
|
| 157 | + * Set comment |
|
| 158 | + * |
|
| 159 | + * @param string $comment |
|
| 160 | + * |
|
| 161 | + * @return ExtraFieldValues |
|
| 162 | + */ |
|
| 163 | 163 | public function setComment($comment) |
| 164 | 164 | { |
| 165 | 165 | $this->comment = $comment; |
@@ -470,7 +470,7 @@ |
||
| 470 | 470 | Criteria::expr()->eq("user", $user) |
| 471 | 471 | ); |
| 472 | 472 | |
| 473 | - if (!is_null($status)) { |
|
| 473 | + if (!is_null($status)) { |
|
| 474 | 474 | $criteria->andWhere( |
| 475 | 475 | Criteria::expr()->eq("status", $status) |
| 476 | 476 | ); |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | /** |
| 367 | - * @param $courses |
|
| 367 | + * @param ArrayCollection $courses |
|
| 368 | 368 | */ |
| 369 | 369 | public function setCourses($courses) |
| 370 | 370 | { |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * @param Course $course |
| 461 | 461 | * @param string $status |
| 462 | 462 | * |
| 463 | - * @return \Doctrine\Common\Collections\Collection|static |
|
| 463 | + * @return ArrayCollection |
|
| 464 | 464 | */ |
| 465 | 465 | public function getUserInCourse(User $user, Course $course, $status = null) |
| 466 | 466 | { |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | * Set description |
| 507 | 507 | * |
| 508 | 508 | * @param string $description |
| 509 | - * @return Groups |
|
| 509 | + * @return Session |
|
| 510 | 510 | */ |
| 511 | 511 | public function setDescription($description) |
| 512 | 512 | { |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | } |
| 840 | 840 | |
| 841 | 841 | /** |
| 842 | - * @return array |
|
| 842 | + * @return string[] |
|
| 843 | 843 | */ |
| 844 | 844 | public static function getStatusList() |
| 845 | 845 | { |
@@ -991,7 +991,7 @@ discard block |
||
| 991 | 991 | * Get user from course by status |
| 992 | 992 | * @param \Chamilo\CoreBundle\Entity\Course $course |
| 993 | 993 | * @param string $status |
| 994 | - * @return \Doctrine\Common\Collections\Collection|static |
|
| 994 | + * @return ArrayCollection |
|
| 995 | 995 | */ |
| 996 | 996 | public function getUserCourseSubscriptionsByStatus(Course $course, $status) |
| 997 | 997 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function findRequirementForResource($resourceId, $type) |
| 27 | 27 | { |
| 28 | - /* $criteria = Criteria::create() |
|
| 28 | + /* $criteria = Criteria::create() |
|
| 29 | 29 | ->where(Criteria::expr()->eq("resourceId", $resourceId)) |
| 30 | 30 | ->andWhere(Criteria::expr()->eq("type", $type)); |
| 31 | 31 | */ |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | foreach ($from as $subVertex) { |
| 53 | 53 | $vertexId = $subVertex->getId(); |
| 54 | 54 | $sessionInfo = api_get_session_info($vertexId); |
| 55 | - $sessionInfo['admin_link'] = '<a href="' . \SessionManager::getAdminPath($vertexId) . '">' . $sessionInfo['name'] . '</a>'; |
|
| 55 | + $sessionInfo['admin_link'] = '<a href="'.\SessionManager::getAdminPath($vertexId).'">'.$sessionInfo['name'].'</a>'; |
|
| 56 | 56 | $result['requirements'][] = $sessionInfo; |
| 57 | 57 | } |
| 58 | 58 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | foreach ($to as $subVertex) { |
| 61 | 61 | $vertexId = $subVertex->getId(); |
| 62 | 62 | $sessionInfo = api_get_session_info($vertexId); |
| 63 | - $sessionInfo['admin_link'] = '<a href="' . \SessionManager::getAdminPath($vertexId) . '">' . $sessionInfo['name'] . '</a>'; |
|
| 63 | + $sessionInfo['admin_link'] = '<a href="'.\SessionManager::getAdminPath($vertexId).'">'.$sessionInfo['name'].'</a>'; |
|
| 64 | 64 | $result['dependencies'][] = $sessionInfo; |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | protected $relatedFieldOptionId; |
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * @var integer |
|
| 47 | - * |
|
| 48 | - * @ORM\Column(name="role_id", type="integer", precision=0, scale=0, nullable=true, unique=false) |
|
| 49 | - */ |
|
| 45 | + /** |
|
| 46 | + * @var integer |
|
| 47 | + * |
|
| 48 | + * @ORM\Column(name="role_id", type="integer", precision=0, scale=0, nullable=true, unique=false) |
|
| 49 | + */ |
|
| 50 | 50 | protected $roleId; |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -128,12 +128,12 @@ discard block |
||
| 128 | 128 | return $this->relatedFieldOptionId; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - /** |
|
| 132 | - * Set roleId |
|
| 133 | - * |
|
| 134 | - * @param integer $roleId |
|
| 135 | - * @return ExtraFieldOptionRelFieldOption |
|
| 136 | - */ |
|
| 131 | + /** |
|
| 132 | + * Set roleId |
|
| 133 | + * |
|
| 134 | + * @param integer $roleId |
|
| 135 | + * @return ExtraFieldOptionRelFieldOption |
|
| 136 | + */ |
|
| 137 | 137 | public function setRoleId($roleId) |
| 138 | 138 | { |
| 139 | 139 | $this->roleId = $roleId; |
@@ -25,10 +25,10 @@ |
||
| 25 | 25 | { |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param string $keyword |
|
| 28 | + * @param string $keyword |
|
| 29 | 29 | * |
| 30 | - * @return mixed |
|
| 31 | - */ |
|
| 30 | + * @return mixed |
|
| 31 | + */ |
|
| 32 | 32 | public function searchUserByKeyword($keyword) |
| 33 | 33 | { |
| 34 | 34 | $qb = $this->createQueryBuilder('a'); |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | // table definitions |
| 16 | 16 | $track_user_table = Database::get_main_table(TABLE_MAIN_USER); |
| 17 | 17 | if (isset($_user['user_id']) && $_user['user_id'] != '') { |
| 18 | - $_user['user_id'] = intval($_user['user_id']); |
|
| 19 | - $sql = "update $track_user_table set chatcall_user_id = '', chatcall_date = '', chatcall_text='DENIED' where (user_id = ".$_user['user_id'].")"; |
|
| 20 | - $result = Database::query($sql); |
|
| 18 | + $_user['user_id'] = intval($_user['user_id']); |
|
| 19 | + $sql = "update $track_user_table set chatcall_user_id = '', chatcall_date = '', chatcall_text='DENIED' where (user_id = ".$_user['user_id'].")"; |
|
| 20 | + $result = Database::query($sql); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | Display::display_header(); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | //the plugin title |
| 13 | -$plugin_info['title'] = 'Hide/Unhide the Login/Password default form'; |
|
| 13 | +$plugin_info['title'] = 'Hide/Unhide the Login/Password default form'; |
|
| 14 | 14 | |
| 15 | 15 | //the comments that go with the plugin |
| 16 | 16 | $plugin_info['comment'] = "If you use another way of authentication than local, you may want to hide the Login/Password default Form to avoid users mistakes. This plugin replace the Login/Password form with a text that unhide the Login/Password form if you click on it."; |
@@ -31,4 +31,4 @@ discard block |
||
| 31 | 31 | $plugin_info['settings_form'] = $form; |
| 32 | 32 | |
| 33 | 33 | //set the templates that are going to be used |
| 34 | -$plugin_info['templates'] = array('template.tpl'); |
|
| 34 | +$plugin_info['templates'] = array('template.tpl'); |
|