@@ -18,7 +18,6 @@ discard block |
||
18 | 18 | * if (!$ssh->login('username', 'password')) { |
19 | 19 | * exit('bad login'); |
20 | 20 | * } |
21 | - |
|
22 | 21 | * $scp = new Net_SCP($ssh); |
23 | 22 | * $scp->put('abcd', str_repeat('x', 1024*1024)); |
24 | 23 | * ?> |
@@ -284,7 +283,7 @@ discard block |
||
284 | 283 | case NET_SCP_SSH1: |
285 | 284 | $data = pack('CNa*', NET_SSH1_CMSG_STDIN_DATA, strlen($data), $data); |
286 | 285 | $this->ssh->_send_binary_packet($data); |
287 | - } |
|
286 | + } |
|
288 | 287 | } |
289 | 288 | |
290 | 289 | /** |
@@ -320,7 +319,7 @@ discard block |
||
320 | 319 | return false; |
321 | 320 | } |
322 | 321 | } |
323 | - } |
|
322 | + } |
|
324 | 323 | } |
325 | 324 | |
326 | 325 | /** |
@@ -336,6 +335,6 @@ discard block |
||
336 | 335 | break; |
337 | 336 | case NET_SCP_SSH1: |
338 | 337 | $this->ssh->disconnect(); |
339 | - } |
|
338 | + } |
|
340 | 339 | } |
341 | 340 | } |
@@ -339,9 +339,9 @@ discard block |
||
339 | 339 | } |
340 | 340 | |
341 | 341 | /** |
342 | - * This function shows the content of a table in a grid. |
|
343 | - * Should not be use to edit information (edit/delete rows) only. |
|
344 | - **/ |
|
342 | + * This function shows the content of a table in a grid. |
|
343 | + * Should not be use to edit information (edit/delete rows) only. |
|
344 | + **/ |
|
345 | 345 | public function display_grid() |
346 | 346 | { |
347 | 347 | |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | //$param[$tablename.'_direction'] = $_GET[$tablename.'_direction']; |
791 | 791 | $my_get_direction = $_GET[$tablename.'_direction']; |
792 | 792 | if (!in_array($my_get_direction, array('ASC', 'DESC'))) { |
793 | - $param[$tablename.'_direction'] = 'ASC'; |
|
793 | + $param[$tablename.'_direction'] = 'ASC'; |
|
794 | 794 | } else { |
795 | 795 | $param[$tablename.'_direction'] = $my_get_direction; |
796 | 796 | } |
@@ -917,7 +917,7 @@ discard block |
||
917 | 917 | if (is_array($row)) { |
918 | 918 | foreach ($row as & $value) { |
919 | 919 | if (empty($value)) { |
920 | - $value = '-'; |
|
920 | + $value = '-'; |
|
921 | 921 | } |
922 | 922 | } |
923 | 923 | } |
@@ -50,15 +50,15 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Displays the title + grid |
52 | 52 | */ |
53 | - public function display() |
|
53 | + public function display() |
|
54 | 54 | { |
55 | - // action links |
|
56 | - echo '<div class="actions" style="margin-bottom:20px">'; |
|
55 | + // action links |
|
56 | + echo '<div class="actions" style="margin-bottom:20px">'; |
|
57 | 57 | echo '<a href="grade_models.php">'.Display::return_icon('back.png',get_lang('Back'),'','32').'</a>'; |
58 | - echo '<a href="'.api_get_self().'?action=add">'.Display::return_icon('add.png',get_lang('Add'),'','32').'</a>'; |
|
59 | - echo '</div>'; |
|
58 | + echo '<a href="'.api_get_self().'?action=add">'.Display::return_icon('add.png',get_lang('Add'),'','32').'</a>'; |
|
59 | + echo '</div>'; |
|
60 | 60 | echo Display::grid_html('grade_model'); |
61 | - } |
|
61 | + } |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Returns a Form validator Obj |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | } |
116 | 116 | |
117 | 117 | $form->addElement('hidden', 'maxvalue', '100'); |
118 | - $form->addElement('hidden', 'minvalue', '0'); |
|
118 | + $form->addElement('hidden', 'minvalue', '0'); |
|
119 | 119 | $renderer = & $form->defaultRenderer(); |
120 | 120 | |
121 | 121 | $component_array = array(); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $form->addElement('text', 'components['.$i.'][title]', null); |
128 | 128 | $form->addElement('hidden', 'components['.$i.'][id]', null); |
129 | 129 | |
130 | - $template_percentage = |
|
130 | + $template_percentage = |
|
131 | 131 | '<div id=' . $i . ' style="display: '.(($i<=$nr_items)?'inline':'none').';" class="control-group"> |
132 | 132 | <p> |
133 | 133 | <label class="control-label">{label}</label> |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | // Setting the rules |
193 | 193 | $form->addRule('name', get_lang('ThisFieldIsRequired'), 'required'); |
194 | 194 | |
195 | - return $form; |
|
195 | + return $form; |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | public function get_components($id) |
@@ -206,8 +206,8 @@ discard block |
||
206 | 206 | |
207 | 207 | public function save($params, $show_query = false) |
208 | 208 | { |
209 | - $id = parent::save($params, $show_query); |
|
210 | - if (!empty($id)) { |
|
209 | + $id = parent::save($params, $show_query); |
|
210 | + if (!empty($id)) { |
|
211 | 211 | foreach ($params['components'] as $component) { |
212 | 212 | if (!empty($component['title']) && !empty($component['percentage']) && !empty($component['acronym'])) { |
213 | 213 | $obj = new GradeModelComponents(); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | //event_system(LOG_CAREER_CREATE, LOG_CAREER_ID, $id, api_get_utc_datetime(), api_get_user_id()); |
221 | - return $id; |
|
221 | + return $id; |
|
222 | 222 | } |
223 | 223 | |
224 | 224 | /** |
@@ -244,8 +244,8 @@ discard block |
||
244 | 244 | |
245 | 245 | public function delete($id) |
246 | 246 | { |
247 | - parent::delete($id); |
|
248 | - //event_system(LOG_CAREER_DELETE, LOG_CAREER_ID, $id, api_get_utc_datetime(), api_get_user_id()); |
|
247 | + parent::delete($id); |
|
248 | + //event_system(LOG_CAREER_DELETE, LOG_CAREER_ID, $id, api_get_utc_datetime(), api_get_user_id()); |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | public function fill_grade_model_select_in_form(&$form, $name = 'gradebook_model_id', $default_value = null) |
@@ -290,14 +290,14 @@ discard block |
||
290 | 290 | public $table; |
291 | 291 | public $columns = array('id', 'title', 'percentage', 'acronym', 'grade_model_id'); |
292 | 292 | |
293 | - public function __construct() |
|
293 | + public function __construct() |
|
294 | 294 | { |
295 | 295 | $this->table = Database::get_main_table(TABLE_GRADE_MODEL_COMPONENTS); |
296 | - } |
|
296 | + } |
|
297 | 297 | |
298 | 298 | public function save($params, $show_query = false) |
299 | 299 | { |
300 | - $id = parent::save($params, $show_query); |
|
300 | + $id = parent::save($params, $show_query); |
|
301 | 301 | return $id; |
302 | 302 | } |
303 | 303 | } |
@@ -1,23 +1,23 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * Definition of the Accessurleditsessiontourl class |
|
5 | - * @package chamilo.library |
|
6 | - */ |
|
4 | + * Definition of the Accessurleditsessiontourl class |
|
5 | + * @package chamilo.library |
|
6 | + */ |
|
7 | 7 | /** |
8 | - * Init |
|
9 | - */ |
|
8 | + * Init |
|
9 | + */ |
|
10 | 10 | require_once ('xajax/xajax.inc.php'); |
11 | 11 | /** |
12 | - * Accessurleditsessiontourl class |
|
13 | - * Contains several functions dealing with displaying, |
|
14 | - * editing,... of a Access_url_edit_session_to_url_functions |
|
15 | - * |
|
16 | - * @version 1.0 |
|
17 | - * @author Toon Keppens <[email protected]> |
|
18 | - * @author Julio Montoya - Cleaning code |
|
19 | - * @author Ricardo Rodriguez - Separated the function and code |
|
20 | - */ |
|
12 | + * Accessurleditsessiontourl class |
|
13 | + * Contains several functions dealing with displaying, |
|
14 | + * editing,... of a Access_url_edit_session_to_url_functions |
|
15 | + * |
|
16 | + * @version 1.0 |
|
17 | + * @author Toon Keppens <[email protected]> |
|
18 | + * @author Julio Montoya - Cleaning code |
|
19 | + * @author Ricardo Rodriguez - Separated the function and code |
|
20 | + */ |
|
21 | 21 | class Accessurleditsessionstourl |
22 | 22 | { |
23 | 23 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | while ($session = Database :: fetch_array($rs)) { |
49 | 49 | $i++; |
50 | 50 | if ($i<=10) { |
51 | - $return .= '<a href="#" onclick="add_user_to_url(\''.addslashes($session['id']).'\',\''.addslashes($session['name']).' ('.addslashes($session['id']).')'.'\')">'.$session['name'].' </a><br />'; |
|
51 | + $return .= '<a href="#" onclick="add_user_to_url(\''.addslashes($session['id']).'\',\''.addslashes($session['name']).' ('.addslashes($session['id']).')'.'\')">'.$session['name'].' </a><br />'; |
|
52 | 52 | } else { |
53 | 53 | $return .= '...<br />'; |
54 | 54 | } |
@@ -610,7 +610,6 @@ discard block |
||
610 | 610 | * The other configuration parameters have not been changed. |
611 | 611 | * |
612 | 612 | * This is how we can get most used paths, for common purpose: |
613 | - |
|
614 | 613 | * api_get_path(REL_PATH) /chamilo/ |
615 | 614 | * api_get_path(REL_COURSE_PATH) /chamilo/courses/ |
616 | 615 | * api_get_path(REL_CODE_PATH) /chamilo/main/ |
@@ -1789,7 +1788,6 @@ discard block |
||
1789 | 1788 | |
1790 | 1789 | /** |
1791 | 1790 | * Returns the current course info array. |
1792 | - |
|
1793 | 1791 | * Now if the course_code is given, the returned array gives info about that |
1794 | 1792 | * particular course, not specially the current one. |
1795 | 1793 | * @param int $id Numeric ID of the course |
@@ -2723,7 +2721,7 @@ discard block |
||
2723 | 2721 | switch ($session_user_status) { |
2724 | 2722 | case 0: |
2725 | 2723 | $session_status['status'] = 'student'; |
2726 | - break; |
|
2724 | + break; |
|
2727 | 2725 | case 2: |
2728 | 2726 | $session_status['status'] = 'coach'; |
2729 | 2727 | break; |
@@ -6475,7 +6473,7 @@ discard block |
||
6475 | 6473 | function api_get_jquery_ui_js($include_jqgrid = false) { |
6476 | 6474 | $libraries = array(); |
6477 | 6475 | if ($include_jqgrid) { |
6478 | - $libraries[]='jqgrid'; |
|
6476 | + $libraries[]='jqgrid'; |
|
6479 | 6477 | } |
6480 | 6478 | return api_get_jquery_libraries_js($libraries); |
6481 | 6479 | } |
@@ -6683,10 +6681,10 @@ discard block |
||
6683 | 6681 | } |
6684 | 6682 | } |
6685 | 6683 | /** |
6686 | - * Checks the PHP version installed is enough to run Chamilo |
|
6687 | - * @param string Include path (used to load the error page) |
|
6688 | - * @return void |
|
6689 | - */ |
|
6684 | + * Checks the PHP version installed is enough to run Chamilo |
|
6685 | + * @param string Include path (used to load the error page) |
|
6686 | + * @return void |
|
6687 | + */ |
|
6690 | 6688 | function api_check_php_version($my_inc_path = null) { |
6691 | 6689 | if (!function_exists('version_compare') || version_compare( phpversion(), REQUIRED_PHP_VERSION, '<')) { |
6692 | 6690 | $global_error_code = 1; |
@@ -6699,9 +6697,9 @@ discard block |
||
6699 | 6697 | } |
6700 | 6698 | } |
6701 | 6699 | /** |
6702 | - * Checks whether the Archive directory is present and writeable. If not, |
|
6703 | - * prints a warning message. |
|
6704 | - */ |
|
6700 | + * Checks whether the Archive directory is present and writeable. If not, |
|
6701 | + * prints a warning message. |
|
6702 | + */ |
|
6705 | 6703 | function api_check_archive_dir() { |
6706 | 6704 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) { |
6707 | 6705 | $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning'); |
@@ -6709,10 +6707,10 @@ discard block |
||
6709 | 6707 | } |
6710 | 6708 | } |
6711 | 6709 | /** |
6712 | - * Returns an array of global configuration settings which should be ignored |
|
6713 | - * when printing the configuration settings screens |
|
6714 | - * @return array Array of strings, each identifying one of the excluded settings |
|
6715 | - */ |
|
6710 | + * Returns an array of global configuration settings which should be ignored |
|
6711 | + * when printing the configuration settings screens |
|
6712 | + * @return array Array of strings, each identifying one of the excluded settings |
|
6713 | + */ |
|
6716 | 6714 | function api_get_locked_settings() { |
6717 | 6715 | return array( |
6718 | 6716 | 'server_type', |
@@ -9,8 +9,8 @@ |
||
9 | 9 | * @package chamilo.portfolio |
10 | 10 | */ |
11 | 11 | /** |
12 | - * Init |
|
13 | - */ |
|
12 | + * Init |
|
13 | + */ |
|
14 | 14 | use Model\Document; |
15 | 15 | use Model\Course; |
16 | 16 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * This file contains Hook observer interface for notification content |
|
5 | - * @package chamilo.library.hook |
|
6 | - */ |
|
4 | + * This file contains Hook observer interface for notification content |
|
5 | + * @package chamilo.library.hook |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Interface HookNotificationContentObserverInterface |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * This file contains Hook event interface for notification content |
|
5 | - * @package chamilo.library.hook |
|
6 | - */ |
|
4 | + * This file contains Hook event interface for notification content |
|
5 | + * @package chamilo.library.hook |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Interface HookNotificationContentEventInterface |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * This file contains Hook event interface for notification title |
|
5 | - * @package chamilo.library.hook |
|
6 | - */ |
|
4 | + * This file contains Hook event interface for notification title |
|
5 | + * @package chamilo.library.hook |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Interface HookNotificationTitleEventInterface |