1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
//instanciation
if($this->pageExiste('Garde') == true){
$this->pageGarde = new PageGardeXls($this->file);
}
//debut de la classe incriminée
class PageGardeXls extends Page{
//page de garde
var $type_catalogue_cell = $CELL_TYPE_CATALOGUE_XLS;
var $catalogue_cell = $CELL_CATALOGUE_XLS;
var $commentaire_cell = $CELL_COMMENTAIRE_XLS;
var $version_cell = $CELL_VERSION_XLS;
//constructeur
public function __construct($fichier, $index) {
parent::__construct($fichier);
$objReader = PHPExcel_IOFactory::createReader('Excel5');
$objReader->setReadDataOnly(true);
$objPHPExcel = $objReader->load($this->file);
$this->objWorkSheet = $objPHPExcel->getSheet($index);
} |
Partager