src/ShopRatingServiceBundle/objects/TPkgShopRatingService_EkomiEndPoint.class.php
protected function FetchCSVFile()
    {
        $bFileWritten = false;

        $sCSVData = file_get_contents($this->fieldRatingUrl);

        if (!empty($sCSVData)) {
            if (false !== file_put_contents($this->sCsvFilePath, $sCSVData)) {
                $bFileWritten = true;
            } else {
                $this->WriteLogEntry('Could not read CSV from '.$this->fieldRatingUrl, __LINE__);
            }
        } else {
            $this->WriteLogEntry($this->sCsvFilePath.' could not be written.', __LINE__);
        }

        return $bFileWritten;
    }
protected function FetchCSVFile()
    {
        $bFileWritten = false;

        $sCSVData = file_get_contents($this->fieldRatingUrl);

        if (!empty($sCSVData)) {
            if (false !== file_put_contents($this->sCsvFilePath, $sCSVData)) {
                $bFileWritten = true;
            } else {
                $this->WriteLogEntry('Could not read CSV from '.$this->fieldRatingUrl, __LINE__);
            }
        } else {
            $this->WriteLogEntry($this->sCsvFilePath.' could not be written.', __LINE__);
        }

        return $bFileWritten;
    }
protected function FetchCSVFile ( ) { $ bFileWritten = false ; $ sCSVData = file_get_contents ( $ this -> fieldRatingUrl ) ; if ( ! empty ( $ sCSVData ) ) { if ( false !== file_put_contents ( $ this -> sCsvFilePath , $ sCSVData ) ) { $ bFileWritten = true ; } else { $ this -> WriteLogEntry ( 'Could not read CSV from ' . $ this -> fieldRatingUrl , __LINE__ ) ; } } else { $ this -> WriteLogEntry ( $ this -> sCsvFilePath . ' could not be written.' , __LINE__ ) ; } return $ bFileWritten ; }
Fetches the csv data from the api and saves it to the rating cache.

@return bool
Fetches the csv data from the api and saves it to the rating cache .