@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * Init |
10 | 10 | */ |
11 | 11 | |
12 | -require_once __DIR__ . '/../config.php'; |
|
12 | +require_once __DIR__.'/../config.php'; |
|
13 | 13 | $plugin = AdvancedSubscriptionPlugin::create(); |
14 | 14 | $now = api_get_utc_datetime(); |
15 | 15 | $weekAgo = api_get_utc_datetime('-1 week'); |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Get session list |
20 | 20 | */ |
21 | -$joinTables = Database::get_main_table(TABLE_MAIN_SESSION) . ' s INNER JOIN ' . |
|
22 | - Database::get_main_table(TABLE_MAIN_SESSION_USER) . ' su ON s.id = su.session_id INNER JOIN ' . |
|
23 | - Database::get_main_table(TABLE_MAIN_USER_REL_USER) . ' uu ON su.user_id = uu.user_id INNER JOIN ' . |
|
24 | - Database::get_main_table(TABLE_ADVANCED_SUBSCRIPTION_QUEUE) . ' asq ON su.session_id = asq.session_id AND su.user_id = asq.user_id'; |
|
21 | +$joinTables = Database::get_main_table(TABLE_MAIN_SESSION).' s INNER JOIN '. |
|
22 | + Database::get_main_table(TABLE_MAIN_SESSION_USER).' su ON s.id = su.session_id INNER JOIN '. |
|
23 | + Database::get_main_table(TABLE_MAIN_USER_REL_USER).' uu ON su.user_id = uu.user_id INNER JOIN '. |
|
24 | + Database::get_main_table(TABLE_ADVANCED_SUBSCRIPTION_QUEUE).' asq ON su.session_id = asq.session_id AND su.user_id = asq.user_id'; |
|
25 | 25 | $columns = 's.id AS session_id, uu.friend_user_id AS superior_id, uu.user_id AS student_id, asq.id AS queue_id, asq.status AS status'; |
26 | 26 | $conditions = array( |
27 | 27 | 'where' => array( |
@@ -133,8 +133,7 @@ discard block |
||
133 | 133 | $isWesternNameOrder = api_is_western_name_order(); |
134 | 134 | foreach ($admins as &$admin) { |
135 | 135 | $admin['complete_name'] = $isWesternNameOrder ? |
136 | - $admin['firstname'] . ', ' . $admin['lastname'] : |
|
137 | - $admin['lastname'] . ', ' . $admin['firstname'] |
|
136 | + $admin['firstname'].', '.$admin['lastname'] : $admin['lastname'].', '.$admin['firstname'] |
|
138 | 137 | ; |
139 | 138 | } |
140 | 139 | unset($admin); |
@@ -149,8 +148,8 @@ discard block |
||
149 | 148 | ); |
150 | 149 | foreach ($queueByAdmin as $sessionId => $studentInfo) { |
151 | 150 | $data['sessionId'] = $sessionId; |
152 | - $data['admin_view_url'] = api_get_path(WEB_PLUGIN_PATH) . |
|
153 | - 'advanced_subscription/src/admin_view.php?s=' . $data['sessionId']; |
|
151 | + $data['admin_view_url'] = api_get_path(WEB_PLUGIN_PATH). |
|
152 | + 'advanced_subscription/src/admin_view.php?s='.$data['sessionId']; |
|
154 | 153 | $data['session'] = $sessionInfoList[$sessionId]; |
155 | 154 | $data['students'] = $studentInfo['students']; |
156 | 155 | $plugin->sendMail($data, ADVANCED_SUBSCRIPTION_ACTION_REMINDER_ADMIN); |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For license terms, see /license.txt */ |
3 | 3 | /** |
4 | - * This script generates four session categories. |
|
5 | - * @package chamilo.plugin.advanced_subscription |
|
6 | - */ |
|
4 | + * This script generates four session categories. |
|
5 | + * @package chamilo.plugin.advanced_subscription |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Init |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $resubscriptionLimit = Resubscription::create()->get('resubscription_limit'); |
33 | 33 | |
34 | - // Initialize variables as a calendar year by default |
|
34 | + // Initialize variables as a calendar year by default |
|
35 | 35 | $limitDateFormat = 'Y-01-01'; |
36 | 36 | $limitDate = gmdate($limitDateFormat); |
37 | 37 | $resubscriptionOffset = "1 year"; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | $resubscriptionDate = gmdate($limitDateFormat, strtotime($endDate." +$resubscriptionOffset")); |
102 | 102 | $icon = Display::return_icon('students.gif', get_lang('Student')); |
103 | 103 | $canResubscribeFrom = sprintf(get_plugin_lang('CanResubscribeFromX', 'resubscription'), $resubscriptionDate); |
104 | - throw new Exception(Display::label($icon . ' ' . $canResubscribeFrom, "info")); |
|
104 | + throw new Exception(Display::label($icon.' '.$canResubscribeFrom, "info")); |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | } |
@@ -17,4 +17,4 @@ |
||
17 | 17 | // The plugin author. |
18 | 18 | $plugin_info['author'] = 'Julio Montoya'; |
19 | 19 | // For bigger icons change this value to addthis_32x32_style |
20 | -$plugin_info['icon_class'] = ''; |
|
20 | +$plugin_info['icon_class'] = ''; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $plugin_info['templates'] = array('template.tpl'); |
24 | 24 | |
25 | 25 | //For bigger icons change this value to addthis_32x32_style |
26 | -$plugin_info['icon_class'] = ''; |
|
26 | +$plugin_info['icon_class'] = ''; |
|
27 | 27 | |
28 | 28 | //To use vertical alignment change this value to |
29 | -$plugin_info['position'] = 'addthis_default_style'; //addthis_vertical_style |
|
29 | +$plugin_info['position'] = 'addthis_default_style'; //addthis_vertical_style |
@@ -18,7 +18,7 @@ |
||
18 | 18 | // the comm |
19 | 19 | $comm_label = api_htmlentities( |
20 | 20 | $plugin_info['settings']['add_cas_login_button_cas_button_comment'] |
21 | - );; |
|
21 | + ); ; |
|
22 | 22 | // URL of the image |
23 | 23 | $url_label = $plugin_info['settings']['add_cas_login_button_cas_image_url']; |
24 | 24 |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | //the plugin title |
13 | -$plugin_info['title'] = 'Add a button to login using CAS'; |
|
13 | +$plugin_info['title'] = 'Add a button to login using CAS'; |
|
14 | 14 | |
15 | 15 | //the comments that go with the plugin |
16 | 16 | $plugin_info['comment'] = "If CAS is activated, this plugin add a text and a button on the login page to login with CAS. Configure plugin to add title, comment and logo."; |
@@ -38,4 +38,4 @@ discard block |
||
38 | 38 | $plugin_info['settings_form'] = $form; |
39 | 39 | |
40 | 40 | //set the templates that are going to be used |
41 | -$plugin_info['templates'] = array('template.tpl'); |
|
41 | +$plugin_info['templates'] = array('template.tpl'); |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different). |
|
4 | - * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins) |
|
5 | - * @package chamilo.plugin |
|
6 | - * @author Julio Montoya <[email protected]> |
|
7 | - */ |
|
3 | + * This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different). |
|
4 | + * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins) |
|
5 | + * @package chamilo.plugin |
|
6 | + * @author Julio Montoya <[email protected]> |
|
7 | + */ |
|
8 | 8 | /** |
9 | - * Plugin details (must be present) |
|
10 | - */ |
|
9 | + * Plugin details (must be present) |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | //the plugin title |
13 | 13 | $plugin_info['title'] = 'Add a button to logout from CAS'; |
@@ -6,4 +6,4 @@ |
||
6 | 6 | * @package chamilo.plugin.skype |
7 | 7 | */ |
8 | 8 | |
9 | -require_once api_get_path(SYS_PATH) . 'main/inc/global.inc.php'; |
|
9 | +require_once api_get_path(SYS_PATH).'main/inc/global.inc.php'; |
@@ -5,6 +5,6 @@ |
||
5 | 5 | * @author Imanol Losada Oriol <[email protected]> |
6 | 6 | * @package chamilo.plugin.skype |
7 | 7 | */ |
8 | -require_once __DIR__ . '/config.php'; |
|
8 | +require_once __DIR__.'/config.php'; |
|
9 | 9 | |
10 | 10 | Skype::create()->install(); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Definition of OpenMeetings session class |
|
4 | - * @package chamilo.plugin.openmeetings |
|
5 | - */ |
|
3 | + * Definition of OpenMeetings session class |
|
4 | + * @package chamilo.plugin.openmeetings |
|
5 | + */ |
|
6 | 6 | namespace Chamilo\Plugin\OpenMeetings; |
7 | 7 | |
8 | 8 | /** |