Completed
Push — master ( a9b78e...742c1d )
by Daniel Neis
04:53
created
auth.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      *
81 81
      * @param progress_trace $trace
82 82
      * @param bool $do_updates  Optional: set to true to force an update of existing accounts
83
-     * @return int 0 means success, 1 means failure
83
+     * @return boolean 0 means success, 1 means failure
84 84
      */
85 85
     function sync_users(progress_trace $trace, $do_updates=false) {
86 86
         return true;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
         $functionname = $this->config->auth_function;
67 67
         $params  = array($this->config->auth_function_username_paramname => $username,
68
-                         $this->config->auth_function_password_paramname => $password);
68
+                            $this->config->auth_function_password_paramname => $password);
69 69
 
70 70
 
71 71
         $result = $this->call_ws($this->config->auth_serverurl, $functionname, $params);
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     function user_login($username, $password) {
65 65
 
66 66
         $functionname = $this->config->auth_function;
67
-        $params  = array($this->config->auth_function_username_paramname => $username,
67
+        $params = array($this->config->auth_function_username_paramname => $username,
68 68
                          $this->config->auth_function_password_paramname => $password);
69 69
 
70 70
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param bool $do_updates  Optional: set to true to force an update of existing accounts
83 83
      * @return int 0 means success, 1 means failure
84 84
      */
85
-    function sync_users(progress_trace $trace, $do_updates=false) {
85
+    function sync_users(progress_trace $trace, $do_updates = false) {
86 86
         return true;
87 87
     }
88 88
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     private function call_ws($serverurl, $functionname, $params = array()) {
94 94
 
95
-        $serverurl = $serverurl . '?wsdl';
95
+        $serverurl = $serverurl.'?wsdl';
96 96
 
97 97
         $params = array_merge($this->config->ws_default_params, $params);
98 98
 
@@ -235,16 +235,16 @@  discard block
 block discarded – undo
235 235
         }
236 236
 
237 237
         // Save settings.
238
-        set_config('protocol',                         $config->protocol,                         'auth/ws');
239
-        set_config('auth_serverurl',                   $config->auth_serverurl,                   'auth/ws');
240
-        set_config('default_params',                   $config->default_params,                   'auth/ws');
241
-        set_config('auth_function',                    $config->auth_function,                    'auth/ws');
238
+        set_config('protocol', $config->protocol, 'auth/ws');
239
+        set_config('auth_serverurl', $config->auth_serverurl, 'auth/ws');
240
+        set_config('default_params', $config->default_params, 'auth/ws');
241
+        set_config('auth_function', $config->auth_function, 'auth/ws');
242 242
         set_config('auth_function_username_paramname', $config->auth_function_username_paramname, 'auth/ws');
243 243
         set_config('auth_function_password_paramname', $config->auth_function_password_paramname, 'auth/ws');
244
-        set_config('auth_function_resultClass',        $config->auth_function_resultClass,        'auth/ws');
245
-        set_config('auth_function_resultField',        $config->auth_function_resultField,        'auth/ws');
246
-        set_config('removeuser',                       $config->removeuser,                       'auth/ws');
247
-        set_config('changepasswordurl',                $config->changepasswordurl,                'auth/ws');
244
+        set_config('auth_function_resultClass', $config->auth_function_resultClass, 'auth/ws');
245
+        set_config('auth_function_resultField', $config->auth_function_resultField, 'auth/ws');
246
+        set_config('removeuser', $config->removeuser, 'auth/ws');
247
+        set_config('changepasswordurl', $config->changepasswordurl, 'auth/ws');
248 248
 
249 249
         return true;
250 250
     }
Please login to merge, or discard this patch.
lang/en/auth_ws.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 $string['auth_function_password_paramname'] = 'Password parameter name';
29 29
 $string['auth_function_password_paramname_desc'] = 'Name of the paramater to send password as to the webservice.';
30 30
 $string['auth_function_resultClass'] = 'Result Class';
31
-$string['auth_function_resultClass_desc'] ='The name of the class containing the result of webservice.';
31
+$string['auth_function_resultClass_desc'] = 'The name of the class containing the result of webservice.';
32 32
 $string['auth_function_resultField'] = 'Result Field';
33
-$string['auth_function_resultField_desc'] ='The field of the class containing boolean the result of webservice.';
33
+$string['auth_function_resultField_desc'] = 'The field of the class containing boolean the result of webservice.';
34 34
 $string['auth_function_username_paramname'] = 'Username parameter name (authenticate)';
35 35
 $string['auth_function_username_paramname_desc'] = 'Name of the paramater to send username as to the webservice.';
36 36
 $string['auth_serverurl'] = 'Auth Server URL';
Please login to merge, or discard this patch.
lang/pt_br/auth_ws.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 $string['auth_function_password_paramname'] = 'Parâmetro para senha';
29 29
 $string['auth_function_password_paramname_desc'] = 'Nome do parâmetro esperado pelo webservice para receber a senha.';
30 30
 $string['auth_function_resultClass'] = 'Classe do resultado';
31
-$string['auth_function_resultClass_desc'] ='O nome da classe contendo o resultado do webservice.';
31
+$string['auth_function_resultClass_desc'] = 'O nome da classe contendo o resultado do webservice.';
32 32
 $string['auth_function_resultField'] = 'Campo do resultado';
33
-$string['auth_function_resultField_desc'] ='O campo (ou atributo) da classe contendo o resultado booleano do webservice.';
33
+$string['auth_function_resultField_desc'] = 'O campo (ou atributo) da classe contendo o resultado booleano do webservice.';
34 34
 $string['auth_function_username_paramname'] = 'Parâmetro para identificação do usuário)';
35 35
 $string['auth_function_username_paramname_desc'] = 'Nome do parâmetro esperado pelo webservice para receber a identificação do usuário (username).';
36 36
 $string['auth_serverurl'] = 'URL do webservice';
Please login to merge, or discard this patch.
version.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
 
25 25
 defined('MOODLE_INTERNAL') || die();
26 26
 
27
-$plugin->version   = 2013110500;        // The current plugin version (Date: YYYYMMDDXX)
28
-$plugin->requires  = 2012010000;        // Requires this Moodle version
29
-$plugin->component = 'auth_ws';         // Full name of the plugin (used for diagnostics)
27
+$plugin->version   = 2013110500; // The current plugin version (Date: YYYYMMDDXX)
28
+$plugin->requires  = 2012010000; // Requires this Moodle version
29
+$plugin->component = 'auth_ws'; // Full name of the plugin (used for diagnostics)
Please login to merge, or discard this patch.