Commit Graph

1073 Commits

Author SHA1 Message Date
Mark Baker d5ce069cfc minor performance tweak
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85749 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-26 00:53:20 +00:00
Mark Baker 7b8f646880 Tests for PHP date/time stamp and DateTime object returns
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85748 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-26 00:50:24 +00:00
Mark Baker bed8ef21b4 Removal of redundant code: break after return in case statements
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85747 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-26 00:49:34 +00:00
Mark Baker 9c2ceed08d Minor performance tweaks
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85743 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-25 23:07:22 +00:00
Mark Baker 2cce9b754d Minor performance tweaks and adjustments to Excel functions to handle a few envelope test cases
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85742 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-25 22:07:35 +00:00
Mark Baker a77c44d4e6 Unit Test scripts
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85741 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-25 22:05:38 +00:00
Mark Baker f3ceef434c Data files for Unit Tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85740 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-25 22:04:53 +00:00
Mark Baker 7429a98174 PHPUnit Extensions (custom assert for Complex numbers)
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85691 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-23 23:42:32 +00:00
Mark Baker 166311bf69 Unit Test scripts
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85690 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-23 23:41:37 +00:00
Mark Baker 7ac3ddd7f9 Data files for Unit Tests
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85689 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-23 23:40:50 +00:00
Mark Baker 54a6125d76 Unit Test scripts
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85688 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-23 23:38:58 +00:00
Mark Baker f9e719dc52 Minor tweaks to Excel functions to handle envelope cases
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85631 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-22 19:00:42 +00:00
Mark Baker 508be392e7 Minor performance tweaks
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85527 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-19 22:36:22 +00:00
Mark Baker 34f3e8b706 Initial phpunit unit test scripts
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85526 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-19 22:32:58 +00:00
Mark Baker 9bec4af001 Fix to inappropriate replacement of count() with empty().... there may be others I've not spotted yet.
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85438 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-18 17:55:51 +00:00
Mark Baker 414209c03d Fix to inappropriate replacement of count() with empty().... there may be others I've not spotted yet.
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85437 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-18 17:51:53 +00:00
Mark Baker 21cce674c8 Fix to inappropriate replacement of count() with empty().... there may be others I've not spotted yet.
Improved debuglog in calculation engine.

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85403 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-17 21:57:06 +00:00
Mark Baker 24a9eb285c Use of empty() rather than count() to test if arrays are empty or not - simple performance tweak... empty() is over twice as fast as count()
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85344 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-16 12:34:22 +00:00
Mark Baker ac37b8ae8d Bugfix: Work item 17262 - Named Range definition in .xls when sheet reeference is quote wrapped
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85313 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-15 12:06:04 +00:00
Mark Baker a22e46f328 Bugfix: Work item 17199 - Indexed colors should be consistent with Excel and start from 1 (current indexing of the default palette array starts at 0)
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85260 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-14 10:51:29 +00:00
Mark Baker 0b515ff07d Configuration options for Chart and PDF rendering, in preparation for chart handling and making the PDF writer confugrable via a choice of 3rd party external libraries
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85115 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-11 11:30:33 +00:00
Mark Baker 438bc9da60 Bugfix: Work item 17166 - Indexed colors do not refer to Excel's indexed colors?
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@84644 2327b42d-5241-43d6-9e2a-de5ac946f064
2012-01-02 00:12:09 +00:00
Mark Baker cb6839b24a Fix for cell or cell range styling, misinterpreting column reference
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@84608 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-31 16:19:50 +00:00
Mark Baker 6ea0ff9bfd Performance tweaks
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@84523 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-30 01:08:05 +00:00
Mark Baker 86db0b8535 General: Change iterators to implement Iterator rather than extend CachingIterator, as a fix for PHP 5.4. changes in SPL
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@84516 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-30 00:04:06 +00:00
Mark Baker 24bd9b5e8a Feature: Additional row iterator options: allow a start row to be defined in the constructor; seek(), and prev() methods added.
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@84512 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-29 22:59:24 +00:00
Mark Baker b235c531a7 Experimental - Added getHighestDataColumn(), getHighestDataRow(), getHighestRowAndColumn() and calculateWorksheetDataDimension() methods for the worksheet that return the highest row and column that have cell records
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83932 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-16 16:01:21 +00:00
Mark Baker 0924d0a4ca Bugfix: (fauvel) Work item 16958 - Cell::getFormattedValue returns RichText object instead of string
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83890 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-14 23:00:45 +00:00
Mark Baker 7fce476f0c General: (atz) Work item 17024 - Unknown codepage: 10007
Additional Mac codepages

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83889 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-14 22:48:09 +00:00
Mark Baker 5cf4740204 Fix to cache factory getInstance() if initialize() has been called explicitly by a user call
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83748 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-09 14:55:47 +00:00
Mark Baker fc62320de8 modify cell cache getInstance() method to validate response from initialize() if it hasn't been called explicitly by a user call
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83743 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-09 12:19:54 +00:00
Mark Baker cd7f0a1c51 Added a cacheMethodIsAvailable() method to all cell cache classes, making it easier to identify if all the necessary classes/functions are available for each caching option.
Renamed the factory getCacheStorageMethods() method to getAllCacheStorageMethods(), returning all cache options in the library.
Wrote a new factory getCacheStorageMethods() method to return an array of those cache methods that are available with the current build of PHP (extensions tested, etc).
Refactored factory initialize() method to use the cacheMethodIsAvailable(), so factoring the logic for testing methods out of the factory.

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83741 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-09 12:10:46 +00:00
Mark Baker 93e8a05780 Feature - initial version of Igbinary (serialized) cell caching
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83657 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-05 23:42:39 +00:00
Mark Baker 86d2a5291f Feature - initial version of Igbinary (serialized) cell caching
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83656 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-05 23:41:49 +00:00
Mark Baker 5fb3ffceb0 Performance improvement for readers that reduces overheads when setting titles in multi-worksheet workbooks, by avoiding re-iterating through all worksheet/cells whenever a sheet title is set
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83603 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-04 11:24:59 +00:00
Mark Baker c345c0e8ca Exception handling for SQLite3 cell caching
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83592 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-03 20:16:57 +00:00
Mark Baker 91f74c5893 Exception handling for SQLite cell caching
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83587 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-03 18:49:27 +00:00
Mark Baker bde593557d Minor performance optimisation: use $x+=3 instead of $x=$x+3
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83576 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-03 10:02:24 +00:00
Mark Baker 11c87c19ad Feature - initial version of SQLite cell caching
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83558 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-03 00:32:01 +00:00
Mark Baker 07e56b5a60 Feature - initial version of SQLite cell caching
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83557 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-03 00:24:44 +00:00
Mark Baker ee028c165d General: Work item 16028 - Fix for projects that still use old autoloaders
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83541 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-02 14:16:23 +00:00
Mark Baker 969c409ba1 Bugfix: Work item 16266 - PHPExcel_Style::applyFromArray() returns null rather than style object in advanced mode
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83539 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-02 13:59:57 +00:00
Mark Baker 207f6f5818 General: Work item 16359 - [Patch] faster stringFromColumnIndex()
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83538 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-12-02 13:40:40 +00:00
Mark Baker bbc73039e6 General: Ensure use of system temp directory for all temporary work files, unless explicitly specified
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83403 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-28 14:44:28 +00:00
Mark Baker a083de817e Use PHPExcel_Shared_File::sys_get_temp_dir() for temporary files directory where not explicitly specified
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83402 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-28 14:41:17 +00:00
Mark Baker 135c0185f5 Use PHPExcel_Shared_File::sys_get_temp_dir() for temporary zip file directory rather than ./
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83400 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-28 14:13:08 +00:00
Mark Baker 87c735a212 Bugfix: Work item 16956 - External links in Excel2010 files cause Fatal error
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83265 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-25 15:45:34 +00:00
Mark Baker 68a0930f67 Bugfix: Work item 16960 - Previous calculation engine error conditions trigger cyclic reference errors
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83263 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-25 14:37:47 +00:00
Mark Baker 6e7b84ef97 Bugfix: Work item 16956 - External links in Excel2010 files cause Fatal error
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83262 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-25 14:30:02 +00:00
Mark Baker f2076cde3f Bugfix: Work item 16956 - External links in Excel2010 files cause Fatal error
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83261 2327b42d-5241-43d6-9e2a-de5ac946f064
2011-11-25 13:34:08 +00:00