Documentation
getResponse
usage
XML = Sushee_Shell->getResponse();
returns
The result of the query, as a string.
examples
include_once('../sushee/common.php');
$shell = new Sushee_Shell();
$shell->addCommand(
'<SEARCH name="news">
<MEDIA mediatype="News"/>
</SEARCH>'
);
$shell->addCommand(
'<SEARCH name="sections">
<MEDIA mediatype="Section"/>
</SEARCH>'
);
$response = $shell->getResponse();
// saving the result in a file
$file = new TempFile();
$file->setExtension('xsu');
$file->save($response);
$file->forceDownload();