You are here

protected function TMGMTFileFormatHTML::decodeIdSafeBase64 in Translation Management Tool 7

Returns decoded id safe base64 data.

1 call to TMGMTFileFormatHTML::decodeIdSafeBase64()
TMGMTFileFormatHTML::import in translators/file/tmgmt_file.format.html.inc
Converts an exported file content back to the translated data.

File

translators/file/tmgmt_file.format.html.inc, line 19

Class

TMGMTFileFormatHTML
Export into HTML.

Code

protected function decodeIdSafeBase64($data) {

  // Remove prefixed b.
  $data = substr($data, 1);
  return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
}