• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/barcode/barcodegenerator.php
  • Класс: BitrixUIBarcodeBarcodeGenerator
  • Вызов: BarcodeGenerator::dmtx_ec_interleave
private function dmtx_ec_interleave($blocks) {
	$data = array();
	$num_blocks = count($blocks);
	for ($offset = 0; true; $offset++) {
		$break = true;
		for ($i = 0; $i < $num_blocks; $i++) {
			if (isset($blocks[$i][$offset])) {
				$data[] = $blocks[$i][$offset];
				$break = false;
			}
		}
		if ($break) break;
	}
	return $data;
}