Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MoJOs It then processes interactions without going beyond the users mobile device. This essentially caches all the required data on the mobile device increasing speed and decreasing data transmission delays.

 

Table of Contents

$t->addControlMessage( )

 A Journey Object (JO) or Data Suitcase is an XML file stored on the Blinkmobile server. This mADL function allows you to add a personal Data Suitcase into a device. You must ensure your source file is correctly formatted XML You can validate your source file at http://validator.w3.org/

...

Return Values   

 
$t->result
Structured data / XML is returned to the variable $t

 

Code Block
themeRDark
languagephp
linenumberstrue
$t

...

 

->addControlMessage(array('mojoTarget' => 'mymojo', 'mojoXML' => $dmojodata->saveXML()));

 

 

$t->getjourneyobject( )

Parameters   

 
 $mojoTarget
A String containing the data suitcase name.

...

Code Block
themeRDark
languagephp
linenumberstrue
$theProgram=$t->getjourneyobject("theProgram");
echo $theProgram; 

 

$t->setjourneyobject( )

 

...

 

Parameters   

 
 $mojoTarget
A String containing the data suitcase name.
$mojoData
A String of data to add to the data suitcase.

 

...

Return Values   

 
$t->result
Structured data / XML is returned to the variable $t

...

 

 

Code Block
themeRDark
languagephp
linenumberstrue
$t->fetch('http://www.v8supercars.com.au/ajax.aspxfeed=TeamDrivers&seriesid=1&seasonid=11');
$t->setJourneyObject('V8s', $t->result);
return('MoJo Uploaded Successfully');

 

 

 

 

 

$t->deletejourneyobject( )

 

Parameters   

 
 $mojoTarget
A String containing the Journey Object name.

...

Return Values   

 
$t->result
Structured data / XML is returned to the variable $t
Code Block
themeRDark
languagephp
linenumberstrue
$t->deletejourneyobject("V8s");
return $t->result; 

 

 

 

$t->listjourneyobject( )

Parameters   

 
 
None

Return Values   

 
$t->result
Structured data / XML is returned to the variable $t
Code Block
themeRDark
languagephp
linenumberstrue
$listjo=$t->listJourneyObjects();
print_r($listjo);