Moodle for mobile

wsAvailable function

 
Picture of Salim BOUDRAA
wsAvailable function
 

hello, 

is there anyone who can tell me where i could find the wsAvailable function that is in the file /www/core/components/courses/services/courses.js, at this line exactly 

self.isSelfEnrolmentEnabled = function() {

        return $mmSite.wsAvailable('enrol_self_enrol_user');

}; 


thank you


 
Average of ratings: -
Picture of sam marshall
Re: wsAvailable function
Core developersPlugin developersTesters

src/clases/site.ts, line 688 in my checkout (might not be latest).

You should probably get an IDE with global search feature. smile

--sam

 
Average of ratings: -
Picture of Salim BOUDRAA
Re: wsAvailable function
 

I am using versione 3.3.2 of moodle mobile and so I can not find the file src/clases/site.ts

someone can help me ??

thank you

 
Average of ratings: -
Picture of Dani Palou
Re: wsAvailable function
 
Average of ratings: -
Picture of Salim BOUDRAA
Re: wsAvailable function
 

thank you Dani, I found it.

I'm trying to integrate the plugin enrol/elediamultikeys mobile moodle, I made some changes already, but now when I made console.log (method.type) in the function getCourse(refresh) I get this error : 

POST https://khabech.com/webservice/rest/server.php?moodlewsrestformat=json net::ERR_TIMED_OUT

can someone explain to me the meaning of the error and how to fix it ?


thank you



 
Average of ratings: -