function socialcalc_save in Sheetnode 5
Same name and namespace in other branches
- 6 socialcalc.inc \socialcalc_save()
- 7.2 socialcalc.inc \socialcalc_save()
- 7 socialcalc.inc \socialcalc_save()
1 call to socialcalc_save()
- _sheetnode_phpexcel_import_do in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.import.inc
File
- ./
socialcalc.inc, line 434 - SocialCalc manipulation functions Translated from socialcalc-3.js and companion files
Code
function socialcalc_save($sc) {
$result = "socialcalc:version:1.0\n" . "MIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=" . SOCIALCALC_MULTIPART_BOUNDARY . "\n" . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . "# SocialCalc Spreadsheet Control Save\nversion:1.0\npart:sheet\npart:edit\npart:audit\n" . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . socialcalc_save_sheet($sc['sheet']) . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . socialcalc_save_edit($sc['edit']) . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "\nContent-type: text/plain; charset=UTF-8\n\n" . socialcalc_save_audit($sc['audit']) . "--" . SOCIALCALC_MULTIPART_BOUNDARY . "--\n";
return $result;
}