source/Setup/View.php
public function isDeletedSetup($aSetupConfig, $aDemoConfig)
    {
        /** @var Utilities $oUtils */
        $oUtils = $this->getInstance("Utilities");
        $sPath = getShopBasePath();

        if (!isset($aDemoConfig['dbiDemoData']) || $aDemoConfig['dbiDemoData'] != '1') {
            // "/generated" cleanup
            $oUtils->removeDir($sPath . "out/pictures/generated", true);

            // "/master" cleanup, leaving nopic
            $oUtils->removeDir($sPath . "out/pictures/master", true, 1, ["nopic.jpg"]);
        }

        if (isset($aSetupConfig['blDelSetupDir']) && $aSetupConfig['blDelSetupDir']) {
            // removing setup files
            $blDeleted = $oUtils->removeDir($sPath . EditionPathProvider::SETUP_DIRECTORY, true);
        } else {
            $blDeleted = false;
        }

        return $blDeleted;
    }
public function isDeletedSetup($aSetupConfig, $aDemoConfig)
    {
        /** @var Utilities $oUtils */
        $oUtils = $this->getInstance("Utilities");
        $sPath = getShopBasePath();

        if (!isset($aDemoConfig['dbiDemoData']) || $aDemoConfig['dbiDemoData'] != '1') {
            // "/generated" cleanup
            $oUtils->removeDir($sPath . "out/pictures/generated", true);

            // "/master" cleanup, leaving nopic
            $oUtils->removeDir($sPath . "out/pictures/master", true, 1, ["nopic.jpg"]);
        }

        if (isset($aSetupConfig['blDelSetupDir']) && $aSetupConfig['blDelSetupDir']) {
            // removing setup files
            $blDeleted = $oUtils->removeDir($sPath . EditionPathProvider::SETUP_DIRECTORY, true);
        } else {
            $blDeleted = false;
        }

        return $blDeleted;
    }
public function isDeletedSetup ( $ aSetupConfig , $ aDemoConfig ) { /** @var Utilities $oUtils */ $ oUtils = $ this -> getInstance ( "Utilities" ) ; $ sPath = getShopBasePath ( ) ; if ( ! isset ( $ aDemoConfig [ 'dbiDemoData' ] ) || $ aDemoConfig [ 'dbiDemoData' ] != '1' ) { // "/generated" cleanup $ oUtils -> removeDir ( $ sPath . "out/pictures/generated" , true ) ; // "/master" cleanup, leaving nopic $ oUtils -> removeDir ( $ sPath . "out/pictures/master" , true , 1 , [ "nopic.jpg" ] ) ; } if ( isset ( $ aSetupConfig [ 'blDelSetupDir' ] ) && $ aSetupConfig [ 'blDelSetupDir' ] ) { // removing setup files $ blDeleted = $ oUtils -> removeDir ( $ sPath . EditionPathProvider :: SETUP_DIRECTORY , true ) ; } else { $ blDeleted = false ; } return $ blDeleted ; }
If demo data installation is OFF, tries to delete demo pictures also
checks if setup deletion is ON and deletes setup files if possible,
return deletion status

@param array $aSetupConfig if to delete setup directory.
@param array $aDemoConfig  database and demo data configuration.

@return bool
If demo data installation is OFF tries to delete demo pictures also checks if setup deletion is ON and deletes setup files if possible return deletion status