MDL-24321 switching to stdClass in /webservice/

This commit is contained in:
Petr Skoda
2010-09-21 08:28:15 +00:00
parent bf718f50ac
commit 7a424cc4f2
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -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);