@@ -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', |
@@ -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 |
@@ -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 title |
|
5 | - * @package chamilo.library.hook |
|
6 | - */ |
|
4 | + * This file contains Hook observer interface for notification title |
|
5 | + * @package chamilo.library.hook |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Interface HookNotificationTitleObserverInterface |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * This file contains all Hook interfaces and their relation. |
|
5 | - * They are used for Hook classes |
|
6 | - * @package chamilo.library.hook |
|
7 | - */ |
|
4 | + * This file contains all Hook interfaces and their relation. |
|
5 | + * They are used for Hook classes |
|
6 | + * @package chamilo.library.hook |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Interface SkypeHookInterface |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | /** |
4 | - * This file contains an abstract Hook observer class |
|
5 | - * Used for Hook Observers in plugins, called when a hook event happens |
|
6 | - * (e.g Create user, Webservice registration) |
|
7 | - * @package chamilo.library.hook |
|
8 | - */ |
|
4 | + * This file contains an abstract Hook observer class |
|
5 | + * Used for Hook Observers in plugins, called when a hook event happens |
|
6 | + * (e.g Create user, Webservice registration) |
|
7 | + * @package chamilo.library.hook |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class HookObserver |