@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | // When creating a new course this settings are added to the course |
12 | 12 | public $course_settings = array( |
13 | - array( |
|
13 | + array( |
|
14 | 14 | 'name' => 'course_block_pre_footer', |
15 | 15 | 'type' => 'textarea' |
16 | 16 | ), |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
69 | - * @param string $region |
|
70 | - * @return string |
|
71 | - */ |
|
69 | + * @param string $region |
|
70 | + * @return string |
|
71 | + */ |
|
72 | 72 | public function renderRegion($region) |
73 | 73 | { |
74 | 74 | $content = ''; |
@@ -53,12 +53,12 @@ |
||
53 | 53 | */ |
54 | 54 | protected $ipAddress; |
55 | 55 | |
56 | - /** |
|
57 | - * @var Ticket |
|
58 | - * |
|
59 | - * @ORM\ManyToOne(targetEntity="Chamilo\TicketBundle\Entity\Ticket") |
|
60 | - * @ORM\JoinColumn(name="ticket_id", referencedColumnName="id") |
|
61 | - **/ |
|
56 | + /** |
|
57 | + * @var Ticket |
|
58 | + * |
|
59 | + * @ORM\ManyToOne(targetEntity="Chamilo\TicketBundle\Entity\Ticket") |
|
60 | + * @ORM\JoinColumn(name="ticket_id", referencedColumnName="id") |
|
61 | + **/ |
|
62 | 62 | protected $ticket; |
63 | 63 | |
64 | 64 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | api_protect_course_script(); |
12 | 12 | if (!api_is_allowed_to_edit()) { |
13 | - api_not_allowed(); |
|
13 | + api_not_allowed(); |
|
14 | 14 | } |
15 | 15 | $course_info = api_get_course_info(); |
16 | 16 | $course_code = $course_info['code']; |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | |
106 | 106 | if (isset($_POST['language'])) { |
107 | 107 | |
108 | - $form->addElement('static', Security::remove_XSS($_POST['language'])); |
|
109 | - $form->addElement('hidden', 'language', Security::remove_XSS($_POST['language'])); |
|
108 | + $form->addElement('static', Security::remove_XSS($_POST['language'])); |
|
109 | + $form->addElement('hidden', 'language', Security::remove_XSS($_POST['language'])); |
|
110 | 110 | $form->addHtmlEditor( |
111 | 111 | 'content', |
112 | 112 | get_lang('Content'), |
@@ -136,8 +136,8 @@ discard block |
||
136 | 136 | $form->addElement('html', $buttons); |
137 | 137 | |
138 | 138 | } else { |
139 | - $form->addElement('select_language', 'language', get_lang('Language'),null,array()); |
|
140 | - $form->addButtonSearch(get_lang('Load'), 'send'); |
|
139 | + $form->addElement('select_language', 'language', get_lang('Language'),null,array()); |
|
140 | + $form->addButtonSearch(get_lang('Load'), 'send'); |
|
141 | 141 | |
142 | 142 | } |
143 | 143 |
@@ -42,10 +42,10 @@ |
||
42 | 42 | // this 2 "mask" function are here just because the SortableTable |
43 | 43 | function get_legal_data_mask($id, $params = null, $row = null) |
44 | 44 | { |
45 | - return LegalManager::get_legal_data($id, $params, $row); |
|
45 | + return LegalManager::get_legal_data($id, $params, $row); |
|
46 | 46 | } |
47 | 47 | function count_mask() |
48 | 48 | { |
49 | - return LegalManager::count(); |
|
49 | + return LegalManager::count(); |
|
50 | 50 | } |
51 | 51 | Display :: display_footer(); |
@@ -619,8 +619,8 @@ discard block |
||
619 | 619 | } |
620 | 620 | |
621 | 621 | /** |
622 | - * Recycle Thematics |
|
623 | - */ |
|
622 | + * Recycle Thematics |
|
623 | + */ |
|
624 | 624 | public function recycle_thematic($session_id = 0) |
625 | 625 | { |
626 | 626 | if ($this->course->has_resources(RESOURCE_THEMATIC)) { |
@@ -685,8 +685,8 @@ discard block |
||
685 | 685 | } |
686 | 686 | |
687 | 687 | /** |
688 | - * Recycle Attendances |
|
689 | - */ |
|
688 | + * Recycle Attendances |
|
689 | + */ |
|
690 | 690 | public function recycle_attendance($session_id = 0) |
691 | 691 | { |
692 | 692 | if ($this->course->has_resources(RESOURCE_ATTENDANCE)) { |
@@ -326,9 +326,9 @@ discard block |
||
326 | 326 | } |
327 | 327 | |
328 | 328 | /** |
329 | - * Serialize the course with the best serializer available |
|
330 | - * @return string |
|
331 | - */ |
|
329 | + * Serialize the course with the best serializer available |
|
330 | + * @return string |
|
331 | + */ |
|
332 | 332 | public static function serialize($course) |
333 | 333 | { |
334 | 334 | if (extension_loaded('igbinary')) { |
@@ -339,9 +339,9 @@ discard block |
||
339 | 339 | } |
340 | 340 | |
341 | 341 | /** |
342 | - * Unserialize the course with the best serializer available |
|
343 | - * @param string $course |
|
344 | - */ |
|
342 | + * Unserialize the course with the best serializer available |
|
343 | + * @param string $course |
|
344 | + */ |
|
345 | 345 | public static function unserialize($course) |
346 | 346 | { |
347 | 347 | if (extension_loaded('igbinary')) { |
@@ -66,19 +66,19 @@ |
||
66 | 66 | $attachment_comment = null, |
67 | 67 | $all_day = 0 |
68 | 68 | ) { |
69 | - parent::__construct($id, RESOURCE_EVENT); |
|
69 | + parent::__construct($id, RESOURCE_EVENT); |
|
70 | 70 | |
71 | - $this->title = $title; |
|
72 | - $this->content = $content; |
|
73 | - $this->start_date = $start_date; |
|
74 | - $this->end_date = $end_date; |
|
75 | - $this->all_day = $all_day; |
|
71 | + $this->title = $title; |
|
72 | + $this->content = $content; |
|
73 | + $this->start_date = $start_date; |
|
74 | + $this->end_date = $end_date; |
|
75 | + $this->all_day = $all_day; |
|
76 | 76 | |
77 | - $this->attachment_path = $attachment_path; |
|
78 | - $this->attachment_filename = $attachment_filename; |
|
79 | - $this->attachment_size = $attachment_size; |
|
80 | - $this->attachment_comment = $attachment_comment; |
|
81 | - } |
|
77 | + $this->attachment_path = $attachment_path; |
|
78 | + $this->attachment_filename = $attachment_filename; |
|
79 | + $this->attachment_size = $attachment_size; |
|
80 | + $this->attachment_comment = $attachment_comment; |
|
81 | + } |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Show this Event |
@@ -84,120 +84,120 @@ |
||
84 | 84 | */ |
85 | 85 | public $author; |
86 | 86 | |
87 | - /** |
|
88 | - * Author's image |
|
89 | - */ |
|
90 | - public $preview_image; |
|
87 | + /** |
|
88 | + * Author's image |
|
89 | + */ |
|
90 | + public $preview_image; |
|
91 | 91 | |
92 | - /** |
|
93 | - * Create a new learnpath |
|
94 | - * @param integer ID |
|
95 | - * @param integer Type (1,2,3,...) |
|
96 | - * @param string $name |
|
97 | - * @param string $path |
|
98 | - * @param string $ref |
|
99 | - * @param string $description |
|
100 | - * @param string $content_local |
|
101 | - * @param string $default_encoding |
|
102 | - * @param string $default_view_mode |
|
103 | - * @param bool $prevent_reinit |
|
104 | - * @param bool $force_commit |
|
105 | - * @param string $content_maker |
|
106 | - * @param integer $display_order |
|
107 | - * @param string $js_lib |
|
108 | - * @param string $content_license |
|
109 | - * @param integer $debug |
|
110 | - * @param string $visibility |
|
111 | - * @param array $items |
|
112 | - */ |
|
113 | - public function __construct( |
|
114 | - $id, |
|
115 | - $type, |
|
116 | - $name, |
|
117 | - $path, |
|
118 | - $ref, |
|
119 | - $description, |
|
120 | - $content_local, |
|
121 | - $default_encoding, |
|
122 | - $default_view_mode, |
|
123 | - $prevent_reinit, |
|
124 | - $force_commit, |
|
125 | - $content_maker, |
|
126 | - $display_order, |
|
127 | - $js_lib, |
|
128 | - $content_license, |
|
129 | - $debug, |
|
130 | - $visibility, |
|
131 | - $author, |
|
132 | - $preview_image, |
|
133 | - $use_max_score, |
|
134 | - $autolaunch, |
|
135 | - $created_on, |
|
136 | - $modified_on, |
|
137 | - $publicated_on, |
|
138 | - $expired_on, |
|
139 | - $session_id, |
|
140 | - $items |
|
141 | - ) { |
|
142 | - parent::__construct($id, RESOURCE_LEARNPATH); |
|
143 | - $this->lp_type = $type; |
|
144 | - $this->name = $name; |
|
145 | - $this->path = $path; |
|
146 | - $this->ref = $ref; |
|
147 | - $this->description = $description; |
|
148 | - $this->content_local = $content_local; |
|
149 | - $this->default_encoding = $default_encoding; |
|
150 | - $this->default_view_mod = $default_view_mode; |
|
151 | - $this->prevent_reinit = $prevent_reinit; |
|
152 | - $this->force_commit = $force_commit; |
|
153 | - $this->content_maker = $content_maker; |
|
154 | - $this->display_order = $display_order; |
|
155 | - $this->js_lib = $js_lib; |
|
156 | - $this->content_license = $content_license; |
|
157 | - $this->debug = $debug; |
|
158 | - $this->visibility=$visibility; |
|
92 | + /** |
|
93 | + * Create a new learnpath |
|
94 | + * @param integer ID |
|
95 | + * @param integer Type (1,2,3,...) |
|
96 | + * @param string $name |
|
97 | + * @param string $path |
|
98 | + * @param string $ref |
|
99 | + * @param string $description |
|
100 | + * @param string $content_local |
|
101 | + * @param string $default_encoding |
|
102 | + * @param string $default_view_mode |
|
103 | + * @param bool $prevent_reinit |
|
104 | + * @param bool $force_commit |
|
105 | + * @param string $content_maker |
|
106 | + * @param integer $display_order |
|
107 | + * @param string $js_lib |
|
108 | + * @param string $content_license |
|
109 | + * @param integer $debug |
|
110 | + * @param string $visibility |
|
111 | + * @param array $items |
|
112 | + */ |
|
113 | + public function __construct( |
|
114 | + $id, |
|
115 | + $type, |
|
116 | + $name, |
|
117 | + $path, |
|
118 | + $ref, |
|
119 | + $description, |
|
120 | + $content_local, |
|
121 | + $default_encoding, |
|
122 | + $default_view_mode, |
|
123 | + $prevent_reinit, |
|
124 | + $force_commit, |
|
125 | + $content_maker, |
|
126 | + $display_order, |
|
127 | + $js_lib, |
|
128 | + $content_license, |
|
129 | + $debug, |
|
130 | + $visibility, |
|
131 | + $author, |
|
132 | + $preview_image, |
|
133 | + $use_max_score, |
|
134 | + $autolaunch, |
|
135 | + $created_on, |
|
136 | + $modified_on, |
|
137 | + $publicated_on, |
|
138 | + $expired_on, |
|
139 | + $session_id, |
|
140 | + $items |
|
141 | + ) { |
|
142 | + parent::__construct($id, RESOURCE_LEARNPATH); |
|
143 | + $this->lp_type = $type; |
|
144 | + $this->name = $name; |
|
145 | + $this->path = $path; |
|
146 | + $this->ref = $ref; |
|
147 | + $this->description = $description; |
|
148 | + $this->content_local = $content_local; |
|
149 | + $this->default_encoding = $default_encoding; |
|
150 | + $this->default_view_mod = $default_view_mode; |
|
151 | + $this->prevent_reinit = $prevent_reinit; |
|
152 | + $this->force_commit = $force_commit; |
|
153 | + $this->content_maker = $content_maker; |
|
154 | + $this->display_order = $display_order; |
|
155 | + $this->js_lib = $js_lib; |
|
156 | + $this->content_license = $content_license; |
|
157 | + $this->debug = $debug; |
|
158 | + $this->visibility=$visibility; |
|
159 | 159 | |
160 | - $this->use_max_score=$use_max_score; |
|
161 | - $this->autolaunch=$autolaunch; |
|
162 | - $this->created_on=$created_on; |
|
163 | - $this->modified_on=$modified_on; |
|
164 | - $this->publicated_on=$publicated_on; |
|
165 | - $this->expired_on=$expired_on; |
|
166 | - $this->session_id=$session_id; |
|
160 | + $this->use_max_score=$use_max_score; |
|
161 | + $this->autolaunch=$autolaunch; |
|
162 | + $this->created_on=$created_on; |
|
163 | + $this->modified_on=$modified_on; |
|
164 | + $this->publicated_on=$publicated_on; |
|
165 | + $this->expired_on=$expired_on; |
|
166 | + $this->session_id=$session_id; |
|
167 | 167 | |
168 | - $this->author= $author; |
|
169 | - $this->preview_image= $preview_image; |
|
168 | + $this->author= $author; |
|
169 | + $this->preview_image= $preview_image; |
|
170 | 170 | |
171 | - $this->items = $items; |
|
172 | - } |
|
173 | - /** |
|
174 | - * Get the items |
|
175 | - */ |
|
176 | - function get_items() |
|
177 | - { |
|
178 | - return $this->items; |
|
179 | - } |
|
171 | + $this->items = $items; |
|
172 | + } |
|
173 | + /** |
|
174 | + * Get the items |
|
175 | + */ |
|
176 | + function get_items() |
|
177 | + { |
|
178 | + return $this->items; |
|
179 | + } |
|
180 | 180 | |
181 | - /** |
|
182 | - * Check if a given resource is used as an item in this chapter |
|
183 | - */ |
|
184 | - function has_item($resource) |
|
185 | - { |
|
186 | - foreach ($this->items as $item) { |
|
187 | - if ($item['id'] == $resource->get_id() && |
|
188 | - isset($item['type']) && $item['type'] == $resource->get_type() |
|
189 | - ) { |
|
190 | - return true; |
|
191 | - } |
|
192 | - } |
|
193 | - return false; |
|
194 | - } |
|
181 | + /** |
|
182 | + * Check if a given resource is used as an item in this chapter |
|
183 | + */ |
|
184 | + function has_item($resource) |
|
185 | + { |
|
186 | + foreach ($this->items as $item) { |
|
187 | + if ($item['id'] == $resource->get_id() && |
|
188 | + isset($item['type']) && $item['type'] == $resource->get_type() |
|
189 | + ) { |
|
190 | + return true; |
|
191 | + } |
|
192 | + } |
|
193 | + return false; |
|
194 | + } |
|
195 | 195 | |
196 | - /** |
|
197 | - * Show this learnpath |
|
198 | - */ |
|
199 | - function show() { |
|
200 | - parent::show(); |
|
201 | - echo $this->name; |
|
202 | - } |
|
196 | + /** |
|
197 | + * Show this learnpath |
|
198 | + */ |
|
199 | + function show() { |
|
200 | + parent::show(); |
|
201 | + echo $this->name; |
|
202 | + } |
|
203 | 203 | } |