@@ -153,18 +153,18 @@ |
||
153 | 153 | $this->js_lib = $js_lib; |
154 | 154 | $this->content_license = $content_license; |
155 | 155 | $this->debug = $debug; |
156 | - $this->visibility=$visibility; |
|
156 | + $this->visibility = $visibility; |
|
157 | 157 | |
158 | - $this->use_max_score=$use_max_score; |
|
159 | - $this->autolaunch=$autolaunch; |
|
160 | - $this->created_on=$created_on; |
|
161 | - $this->modified_on=$modified_on; |
|
162 | - $this->publicated_on=$publicated_on; |
|
163 | - $this->expired_on=$expired_on; |
|
164 | - $this->session_id=$session_id; |
|
158 | + $this->use_max_score = $use_max_score; |
|
159 | + $this->autolaunch = $autolaunch; |
|
160 | + $this->created_on = $created_on; |
|
161 | + $this->modified_on = $modified_on; |
|
162 | + $this->publicated_on = $publicated_on; |
|
163 | + $this->expired_on = $expired_on; |
|
164 | + $this->session_id = $session_id; |
|
165 | 165 | |
166 | - $this->author= $author; |
|
167 | - $this->preview_image= $preview_image; |
|
166 | + $this->author = $author; |
|
167 | + $this->preview_image = $preview_image; |
|
168 | 168 | |
169 | 169 | $this->items = $items; |
170 | 170 | } |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | $table_doc = Database:: get_course_table(TABLE_DOCUMENT); |
596 | 596 | |
597 | 597 | if (!empty($courseId) && !empty($session_id)) { |
598 | - $session_id = intval($session_id); |
|
598 | + $session_id = intval($session_id); |
|
599 | 599 | if ($with_base_content) { |
600 | 600 | $session_condition = api_get_session_condition( |
601 | 601 | $session_id, |
@@ -804,7 +804,7 @@ discard block |
||
804 | 804 | 'title' => get_lang('OrphanQuestions', ''), |
805 | 805 | 'type' => 2 |
806 | 806 | ); |
807 | - $newQuiz = new Quiz((object)$obj); |
|
807 | + $newQuiz = new Quiz((object) $obj); |
|
808 | 808 | if (!empty($orphanQuestionIds)) { |
809 | 809 | foreach ($orphanQuestionIds as $index => $orphanId) { |
810 | 810 | $order = $index + 1; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $shared_question_id, |
69 | 69 | $max_value |
70 | 70 | ) { |
71 | - parent::__construct($id,RESOURCE_SURVEYQUESTION); |
|
71 | + parent::__construct($id, RESOURCE_SURVEYQUESTION); |
|
72 | 72 | $this->survey_id = $survey_id; |
73 | 73 | $this->survey_question = $survey_question; |
74 | 74 | $this->survey_question_comment = $survey_question_comment; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param string $option_text |
85 | 85 | * @param int $sort |
86 | 86 | */ |
87 | - function add_answer($option_text,$sort) |
|
87 | + function add_answer($option_text, $sort) |
|
88 | 88 | { |
89 | 89 | $answer = array(); |
90 | 90 | $answer['option_text'] = $option_text; |
@@ -25,6 +25,6 @@ |
||
25 | 25 | public function show() |
26 | 26 | { |
27 | 27 | parent::show(); |
28 | - echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')'; |
|
28 | + echo $this->obj->title.' ('.$this->obj->poster_name.', '.$this->obj->post_date.')'; |
|
29 | 29 | } |
30 | 30 | } |
@@ -22,9 +22,9 @@ |
||
22 | 22 | * @param string $description |
23 | 23 | * @param int $display_order |
24 | 24 | */ |
25 | - public function __construct($id,$name,$description,$display_order) |
|
25 | + public function __construct($id, $name, $description, $display_order) |
|
26 | 26 | { |
27 | - parent::__construct($id,RESOURCE_GLOSSARY); |
|
27 | + parent::__construct($id, RESOURCE_GLOSSARY); |
|
28 | 28 | $this->glossary_id = $id; |
29 | 29 | $this->name = $name; |
30 | 30 | $this->description = $description; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $on_homepage |
48 | 48 | ) |
49 | 49 | { |
50 | - parent::__construct($id,RESOURCE_LINK); |
|
50 | + parent::__construct($id, RESOURCE_LINK); |
|
51 | 51 | $this->title = $title; |
52 | 52 | $this->url = $url; |
53 | 53 | $this->description = $description; |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * @param string $invitation_date |
41 | 41 | * @param string $reminder_date |
42 | 42 | */ |
43 | - public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date) |
|
43 | + public function __construct($id, $code, $user, $invitation_code, $invitation_date, $reminder_date) |
|
44 | 44 | { |
45 | 45 | parent::__construct($id, RESOURCE_SURVEYINVITATION); |
46 | 46 | $this->code = $code; |
@@ -29,9 +29,9 @@ |
||
29 | 29 | * @param string $title |
30 | 30 | * @param string $description |
31 | 31 | */ |
32 | - function __construct($id,$title,$description,$display_order) |
|
32 | + function __construct($id, $title, $description, $display_order) |
|
33 | 33 | { |
34 | - parent::__construct($id,RESOURCE_LINKCATEGORY); |
|
34 | + parent::__construct($id, RESOURCE_LINKCATEGORY); |
|
35 | 35 | $this->title = $title; |
36 | 36 | $this->description = $description; |
37 | 37 | $this->display_order = $display_order; |
@@ -29,9 +29,9 @@ |
||
29 | 29 | * @param string $title |
30 | 30 | * @param string $content |
31 | 31 | */ |
32 | - public function __construct($id,$title,$content,$description_type) |
|
32 | + public function __construct($id, $title, $content, $description_type) |
|
33 | 33 | { |
34 | - parent::__construct($id,RESOURCE_COURSEDESCRIPTION); |
|
34 | + parent::__construct($id, RESOURCE_COURSEDESCRIPTION); |
|
35 | 35 | $this->title = $title; |
36 | 36 | $this->content = $content; |
37 | 37 | $this->description_type = $description_type; |