Mam taką klase:
<?php class MySPLFileObject extends SplFileObject { public $fp; function __construct($file){ $this->fp = new SplFileObject($file); $this->stats = $this->fp->fstat(); } public function getFilename(){ return $this->fp->getFilename(); } public function getFileSize(){ return $this->stats['size']; } public function getCreateTime(){ } public function getAccessTime(){ } public function getModifyTime(){ } } $info = new MySPLFileObject('arrayObject.php'); "|=== Plik <strong> %s </strong> =============| <br />". "|| <br />". "|| ---> Rozmiar [B]: %s <br />". "|| ---> Utworzony: %s <br />". "|| ---> Urzywany: %s <br />". "|| ---> Zmodyfikowany: %s <br />". "|| <br />". "|=====================================|", $info->getFilename(), $info->getFileSize(), $info->getCreateTime(), $info->getAccessTime(), $info->getModifyTime() ); ?>
Kiedy wywołuje metody klasy SPLFileObject to pojawia mi się informacja o pobraniu pliku?
Mam w kodzie jakiś błąd?