namespace updates

This commit is contained in:
Mark Baker 2013-06-20 09:44:11 +01:00
parent 143d52ab4e
commit f92cd96d6d
3 changed files with 7 additions and 7 deletions

View File

@ -2243,7 +2243,7 @@ class Worksheet implements IComparable
*/ */
public function getCommentByColumnAndRow($pColumn = 0, $pRow = 1) public function getCommentByColumnAndRow($pColumn = 0, $pRow = 1)
{ {
return $this->getComment(PHPExcel\Cell::stringFromColumnIndex($pColumn) . $pRow); return $this->getComment(Cell::stringFromColumnIndex($pColumn) . $pRow);
} }
/** /**

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
* @category PHPExcel * @category PHPExcel
* @package PHPExcel_Worksheet * @package PHPExcel\Worksheet
* @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE## * @version ##VERSION##, ##DATE##
@ -29,7 +29,7 @@
namespace PHPExcel; namespace PHPExcel;
/** /**
* PHPExcel_Worksheet_Protection * PHPExcel\Worksheet_Protection
* *
* @category PHPExcel * @category PHPExcel
* @package PHPExcel\Worksheet * @package PHPExcel\Worksheet

View File

@ -33,8 +33,8 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel_IOFactory */ /** Include PHPExcel Bootstrap */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once '../Classes/Bootstrap.php';
if (!file_exists("05featuredemo.xlsx")) { if (!file_exists("05featuredemo.xlsx")) {
@ -44,7 +44,7 @@ if (!file_exists("05featuredemo.xlsx")) {
echo date('H:i:s') , " Load from Excel2007 file" , EOL; echo date('H:i:s') , " Load from Excel2007 file" , EOL;
$callStartTime = microtime(true); $callStartTime = microtime(true);
$objPHPExcel = PHPExcel_IOFactory::load("05featuredemo.xlsx"); $objPHPExcel = PHPExcel\IOFactory::load("05featuredemo.xlsx");
$callEndTime = microtime(true); $callEndTime = microtime(true);
$callTime = $callEndTime - $callStartTime; $callTime = $callEndTime - $callStartTime;
@ -56,7 +56,7 @@ echo date('H:i:s') , ' Current memory usage: ' , (memory_get_usage(true) / 1024
echo date('H:i:s') , " Write to Excel2007 format" , EOL; echo date('H:i:s') , " Write to Excel2007 format" , EOL;
$callStartTime = microtime(true); $callStartTime = microtime(true);
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); $objWriter = PHPExcel\IOFactory::createWriter($objPHPExcel, 'Excel2007');
$objWriter->save(str_replace('.php', '.xlsx', __FILE__)); $objWriter->save(str_replace('.php', '.xlsx', __FILE__));
$callEndTime = microtime(true); $callEndTime = microtime(true);