|
|
@@ -55,18 +55,18 @@ class CsController extends BaseController
|
|
|
|
|
|
//print_r($objPHPExcel->getActiveSheet()->toArray());
|
|
|
|
|
|
- echo 'Custom Properties:' , EOL;
|
|
|
+ echo 'Custom Properties:';
|
|
|
$customProperties = $objPHPExcel->getProperties()->getCustomProperties();
|
|
|
foreach($customProperties as $customProperty) {
|
|
|
$propertyValue = $objPHPExcel->getProperties()->getCustomPropertyValue($customProperty);
|
|
|
$propertyType = $objPHPExcel->getProperties()->getCustomPropertyType($customProperty);
|
|
|
echo ' ' , $customProperty , ' - (' , $propertyType , ') - ';
|
|
|
- if ($propertyType == PHPExcel_DocumentProperties::PROPERTY_TYPE_DATE) {
|
|
|
- echo date('d-M-Y H:i:s',$propertyValue) , EOL;
|
|
|
- } elseif ($propertyType == PHPExcel_DocumentProperties::PROPERTY_TYPE_BOOLEAN) {
|
|
|
- echo (($propertyValue) ? 'TRUE' : 'FALSE') , EOL;
|
|
|
+ if ($propertyType == \PHPExcel_DocumentProperties::PROPERTY_TYPE_DATE) {
|
|
|
+ echo date('d-M-Y H:i:s',$propertyValue);
|
|
|
+ } elseif ($propertyType == \PHPExcel_DocumentProperties::PROPERTY_TYPE_BOOLEAN) {
|
|
|
+ echo $propertyValue;
|
|
|
} else {
|
|
|
- echo $propertyValue , EOL;
|
|
|
+ echo $propertyValue;
|
|
|
}
|
|
|
}
|
|
|
|