A Mobile Object Journey Object (MOJO) or now known as Data Suitcase is an XML file stored on the Blinkmobile server.
...
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/
Parameters | |
---|---|
$mojoTarget | A String containing the data suitcase name. |
$mojoData | A String containing the data suitcase data. |
Return Values | |
---|---|
$t->result | Structured data / XML is returned to the variable $t |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
$t->addControlMessage(array('mojoTarget' => 'mymojo', 'mojoXML' => $dmojodata->saveXML())); |
$t->getjourneyobject( )
Parameters | |
---|---|
$mojoTarget | A String containing the data suitcase name. |
Return Values | |
---|---|
$t->result | Structured data / XML is returned to the variable $t |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
$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 | ||||||
---|---|---|---|---|---|---|
| ||||||
$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 | ||||||
---|---|---|---|---|---|---|
| ||||||
$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 | ||||||
---|---|---|---|---|---|---|
| ||||||
$listjo=$t->listJourneyObjects();
print_r($listjo); |