usage
Sushee_shell->execute( { string outputType } )
parameters
outputType: optional parameter. Possible values : query, xml, text, echo, return. Default value is return.
query returns the query executed, in XML, and stops the script.
xml returns the result of the query, in XML, and stop the script.
text returns the result of the query, in rough text, and stop the script.
echo prints the result of the query, in rough text, and continues the execution.
return returns the result, nothing is printed on the screen.
examples
include_once('../sushee/common.php');
$shell = new Sushee_shell();
$shell->addCommand(
'<GET>
<CONTACT ID="1857"/>
</GET>'
);
$shell->addCommand(
'<GET>
<MEDIA ID="'.$_GET['ID'].'"/>
</GET>'
);
$shell->execute();