Subversion Repositories eFlore/Applications.cel

Rev

Rev 3574 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3574 Rev 3577
Line 441... Line 441...
441
		} else {
441
		} else {
442
			$this->meta = $this->decoderMetadonneesBasique($cheminImage);
442
			$this->meta = $this->decoderMetadonneesBasique($cheminImage);
443
		}
443
		}
Line 444... Line 444...
444
 
444
 
445
		$metadonnees = array();
445
		$metadonnees = array();
446
		$metadonnees['date_shot'] = $this->obtenirDatePriseDeVue() ?: (new DateTime())->format('Y-m-d H:i:s');
446
		$metadonnees['date_shot'] = $this->obtenirDatePriseDeVue() ?: null;
447
		$metadonnees['size'] = filesize($cheminImage);
447
		$metadonnees['size'] = filesize($cheminImage);
448
		return $metadonnees;
448
		return $metadonnees;
Line 449... Line 449...
449
	}
449
	}
Line 520... Line 520...
520
	private function obtenirDatePriseDeVue() {
520
	private function obtenirDatePriseDeVue() {
521
		$date = isset($this->meta['EXIF']['DateTimeOriginal']) ? $this->meta['EXIF']['DateTimeOriginal']['valeur'] : '';
521
		$date = isset($this->meta['EXIF']['DateTimeOriginal']) ? $this->meta['EXIF']['DateTimeOriginal']['valeur'] : '';
522
		return $date;
522
		return $date;
523
	}
523
	}
Line 524... Line -...
524
 
-
 
525
}
524
 
-
 
525
}