You are here

private function WebformInvitationDownloadForm::xlsCell in Webform Invitation 8

Same name and namespace in other branches
  1. 2.0.x src/Form/WebformInvitationDownloadForm.php \Drupal\webform_invitation\Form\WebformInvitationDownloadForm::xlsCell()

Format single cell.

1 call to WebformInvitationDownloadForm::xlsCell()
WebformInvitationDownloadForm::submitForm in src/Form/WebformInvitationDownloadForm.php
Form submission handler.

File

src/Form/WebformInvitationDownloadForm.php, line 119

Class

WebformInvitationDownloadForm
Allows to download the list of generated codes.

Namespace

Drupal\webform_invitation\Form

Code

private function xlsCell($row, $col, $val) {
  $len = strlen($val);
  return pack("s*", 0x204, 8 + $len, $row, $col, 0x0, $len) . $val;
}