protected function processNewFiles(array $files)
    {
        foreach ($files as $file) {
            if (!file_exists($file)) {
                //This is bad
                throw new Exception('Cant find File: '.$file);
            }
            include $file;
            
            if (!isset($arrUpdate)) {
                throw new Exception('Array $arrUpdate does not exist in '.$file);
            }
            
            try {
                $this->processArray($arrUpdate);
                $this->addFileToProcessedList($file);
            } catch (Exception $ex) {
                echo $ex->getMessage();
            }
            
            unset($arrUpdate);
        }
    }
protected function processNewFiles(array $files)
    {
        foreach ($files as $file) {
            if (!file_exists($file)) {
                //This is bad
                throw new Exception('Cant find File: '.$file);
            }
            include $file;
            
            if (!isset($arrUpdate)) {
                throw new Exception('Array $arrUpdate does not exist in '.$file);
            }
            
            try {
                $this->processArray($arrUpdate);
                $this->addFileToProcessedList($file);
            } catch (Exception $ex) {
                echo $ex->getMessage();
            }
            
            unset($arrUpdate);
        }
    }
protected function processNewFiles ( array $ files ) { foreach ( $ files as $ file ) { if ( ! file_exists ( $ file ) ) { //This is bad throw new Exception ( 'Cant find File: ' . $ file ) ; } include $ file ; if ( ! isset ( $ arrUpdate ) ) { throw new Exception ( 'Array $arrUpdate does not exist in ' . $ file ) ; } try { $ this -> processArray ( $ arrUpdate ) ; $ this -> addFileToProcessedList ( $ file ) ; } catch ( Exception $ ex ) { echo $ ex -> getMessage ( ) ; } unset ( $ arrUpdate ) ; } }
Reads the Update Files and triggers the Update
@param array $files
@throws Exception
Reads the Update Files and triggers the Update