function PHPExcel_Writer_Excel5_Parser::_convertRef2d in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php \PHPExcel_Writer_Excel5_Parser::_convertRef2d()
* Convert an Excel reference such as A1, $B2, C$3 or $D$4 to a ptgRefV. * * @access private *
Parameters
string $cell An Excel cell reference: * @return string The cell in packed() format with the corresponding ptg
1 call to PHPExcel_Writer_Excel5_Parser::_convertRef2d()
- PHPExcel_Writer_Excel5_Parser::_convert in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php - * Convert a token to the proper ptg value. * * @access private *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Parser.php, line 718
Class
- PHPExcel_Writer_Excel5_Parser
- PHPExcel_Writer_Excel5_Parser
Code
function _convertRef2d($cell) {
// $class = 2; // as far as I know, this is magick.
// Convert the cell reference
$cell_array = $this
->_cellToPackedRowcol($cell);
list($row, $col) = $cell_array;
// The ptg value depends on the class of the ptg.
// if ($class == 0) {
// $ptgRef = pack("C", $this->ptg['ptgRef']);
// } elseif ($class == 1) {
// $ptgRef = pack("C", $this->ptg['ptgRefV']);
// } elseif ($class == 2) {
$ptgRef = pack("C", $this->ptg['ptgRefA']);
// } else {
// // TODO: use real error codes
// throw new PHPExcel_Writer_Exception("Unknown class $class");
// }
return $ptgRef . $row . $col;
}