1
0
mirror of https://github.com/shuchkin/simplexlsxgen.git synced 2023-08-10 21:12:59 +03:00
This commit is contained in:
Sergey Shuchkin 2022-02-12 03:04:46 +06:00
parent 121f1222c2
commit f0cbc32af9
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
## 1.1.11 (2022-02-05)
* sheet name maximum length is 31 chars, mb_substr used now
* license fixed
## 1.1.10 (2022-02-05) ## 1.1.10 (2022-02-05)
* namespace added, use Shuchkin\SimpleXLSXGen * namespace added, use Shuchkin\SimpleXLSXGen

View File

@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2014 Lukas Martinelli Copyright (c) 2020-2022 Sergey Shuchkin sergey.shuchkin@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -120,6 +120,7 @@ class SimpleXLSXGen {
if ( $name === null ) { // autogenerated sheet names if ( $name === null ) { // autogenerated sheet names
$name = 'Sheet'.($this->curSheet+1); $name = 'Sheet'.($this->curSheet+1);
} else { } else {
$name = mb_substr($name, 0, 31);
$names = []; $names = [];
foreach( $this->sheets as $sh ) { foreach( $this->sheets as $sh ) {
$names[ mb_strtoupper( $sh['name']) ] = 1; $names[ mb_strtoupper( $sh['name']) ] = 1;