4 error_reporting(E_ALL);
5 ini_set(
'display_errors', TRUE);
6 ini_set(
'display_startup_errors', TRUE);
7 date_default_timezone_set(
'Europe/London');
9 define(
'EOL',(PHP_SAPI ==
'cli') ?
PHP_EOL :
'<br />');
11 date_default_timezone_set(
'Europe/London');
40 require_once dirname(__FILE__) .
'/../Classes/PHPExcel.php';
47 array(
'', 2010, 2011, 2012),
48 array(
'Jan', 47, 45, 71),
49 array(
'Feb', 56, 73, 86),
50 array(
'Mar', 52, 61, 69),
51 array(
'Apr', 40, 52, 60),
52 array(
'May', 42, 55, 71),
53 array(
'Jun', 58, 63, 76),
54 array(
'Jul', 53, 61, 89),
55 array(
'Aug', 46, 69, 85),
56 array(
'Sep', 62, 75, 81),
57 array(
'Oct', 51, 70, 96),
58 array(
'Nov', 55, 66, 89),
59 array(
'Dec', 68, 62, 0),
134 $chart->setTopLeftPosition(
'F2');
135 $chart->setBottomRightPosition(
'M15');
145 $objWriter->save(str_replace(
'.php',
'.xlsx', __FILE__));
146 echo date(
'H:i:s') ,
" File written to " , str_replace(
'.php',
'.xlsx', pathinfo(__FILE__, PATHINFO_BASENAME)) ,
EOL;
150 echo date(
'H:i:s') ,
" Peak memory usage: " , (memory_get_peak_usage(
true) / 1024 / 1024) ,
" MB" , EOL;
154 echo 'File has been created in ' , getcwd() ,
EOL;
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
Create styles array
The data for the language used.