removeOldFile() защищенный Метод

This will remove the old file, can be extended to add extra functionality
protected removeOldFile ( )
Пример #1
0
 /**
  * This will remove the old image and if needed the generated thumbnails
  */
 protected function removeOldFile()
 {
     if (static::GENERATE_THUMBNAILS && is_dir($this->getUploadRootDir())) {
         Model::deleteThumbnails($this->getUploadRootDir(), $this->oldFileName);
         return;
     }
     parent::removeOldFile();
 }