src/Vatsimphp/VatsimData.php
protected function prepareSync()
    {
        if (!empty($this->statusSync)) {
            return $this->statusSync;
        }
        LoggerFactory::$file = $this->config['logFile'];
        LoggerFactory::$level = $this->config['logLevel'];
        $this->statusSync = $this->getStatusSync();
        $this->statusSync->setDefaults();
        $this->statusSync->cacheDir = $this->config['cacheDir'];
        $this->statusSync->refreshInterval = $this->config['statusRefresh'];
        if (!empty($this->config['statusUrl'])) {
            $this->statusSync->registerUrl($this->config['statusUrl'], true);
        }

        return $this->statusSync;
    }
protected function prepareSync()
    {
        if (!empty($this->statusSync)) {
            return $this->statusSync;
        }
        LoggerFactory::$file = $this->config['logFile'];
        LoggerFactory::$level = $this->config['logLevel'];
        $this->statusSync = $this->getStatusSync();
        $this->statusSync->setDefaults();
        $this->statusSync->cacheDir = $this->config['cacheDir'];
        $this->statusSync->refreshInterval = $this->config['statusRefresh'];
        if (!empty($this->config['statusUrl'])) {
            $this->statusSync->registerUrl($this->config['statusUrl'], true);
        }

        return $this->statusSync;
    }
protected function prepareSync ( ) { if ( ! empty ( $ this -> statusSync ) ) { return $ this -> statusSync ; } LoggerFactory :: $ file = $ this -> config [ 'logFile' ] ; LoggerFactory :: $ level = $ this -> config [ 'logLevel' ] ; $ this -> statusSync = $ this -> getStatusSync ( ) ; $ this -> statusSync -> setDefaults ( ) ; $ this -> statusSync -> cacheDir = $ this -> config [ 'cacheDir' ] ; $ this -> statusSync -> refreshInterval = $ this -> config [ 'statusRefresh' ] ; if ( ! empty ( $ this -> config [ 'statusUrl' ] ) ) { $ this -> statusSync -> registerUrl ( $ this -> config [ 'statusUrl' ] , true ) ; } return $ this -> statusSync ; }
Prepare StatusSync object for reusage.

@return StatusSync
Prepare StatusSync object for reusage .