MDL-24321 switching to stdClass in /webservice/
This commit is contained in:
@@ -3,13 +3,13 @@ require "../../../config.php";
|
||||
|
||||
$PAGE->set_url('/webservice/amf/testclient/index.php');
|
||||
|
||||
$flashvars = new object();
|
||||
$flashvars = new stdClass();
|
||||
$flashvars->rooturl =$CFG->wwwroot;
|
||||
|
||||
|
||||
$PAGE->requires->js('/lib/swfobject/swfobject.js', true);
|
||||
|
||||
$PAGE->requires->js_function_call('swfobject.embedSWF',
|
||||
$PAGE->requires->js_function_call('swfobject.embedSWF',
|
||||
array($CFG->wwwroot.'/webservice/amf/testclient/AMFTester.swf', //movie
|
||||
'moodletestclient', // div id
|
||||
'100%', // width
|
||||
|
||||
+2
-2
@@ -149,7 +149,7 @@ class webservice {
|
||||
foreach ($serviceidlist as $serviceid) {
|
||||
if (!in_array($serviceid, $tokenizedservice)) {
|
||||
//create the token for this service
|
||||
$newtoken = new object();
|
||||
$newtoken = new stdClass();
|
||||
$newtoken->token = md5(uniqid(rand(),1));
|
||||
//check that the user has capability on this service
|
||||
$newtoken->tokentype = EXTERNAL_TOKEN_PERMANENT;
|
||||
@@ -408,7 +408,7 @@ class webservice {
|
||||
*/
|
||||
public function add_external_function_to_service($functionname, $serviceid) {
|
||||
global $DB;
|
||||
$addedfunction = new object();
|
||||
$addedfunction = new stdClass();
|
||||
$addedfunction->externalserviceid = $serviceid;
|
||||
$addedfunction->functionname = $functionname;
|
||||
$DB->insert_record('external_services_functions', $addedfunction);
|
||||
|
||||
Reference in New Issue
Block a user