Oara\Network\Publisher\FoxTransfer::checkConnection PHP Method

checkConnection() public method

public checkConnection ( ) : boolean
return boolean
    public function checkConnection()
    {
        //If not login properly the construct launch an exception
        $connection = true;
        $urls = array();
        $urls[] = new \Oara\Curl\Request('https://foxtransfer.eu/index.php?language=1', array());
        $exportReport = $this->_client->get($urls);
        if (!\preg_match("/Log Out/", $exportReport[0], $match)) {
            $connection = false;
        }
        return $connection;
    }