classes/helper/AbstractImportModel.php
protected function removeAllImages()
    {
        //Delete old images
        $obImageList = $this->obModel->images;
        if ($obImageList->isEmpty()) {
            return;
        }

        /** @var \System\Models\File $obFile */
        foreach ($obImageList as $obFile) {
            $obFile->deleteThumbs();
            $obFile->delete();
        }
    }
protected function removeAllImages()
    {
        //Delete old images
        $obImageList = $this->obModel->images;
        if ($obImageList->isEmpty()) {
            return;
        }

        /** @var \System\Models\File $obFile */
        foreach ($obImageList as $obFile) {
            $obFile->deleteThumbs();
            $obFile->delete();
        }
    }
protected function removeAllImages ( ) { //Delete old images $ obImageList = $ this -> obModel -> images ; if ( $ obImageList -> isEmpty ( ) ) { return ; } /** @var \System\Models\File $obFile */ foreach ( $ obImageList as $ obFile ) { $ obFile -> deleteThumbs ( ) ; $ obFile -> delete ( ) ; } }
Remove all images
Remove all images