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

checkConnection() public method

public checkConnection ( ) : boolean
return boolean
    public function checkConnection()
    {
        $connection = false;
        $urls = array();
        $urls[] = new \Oara\Curl\Request('http://www.afiliant.com/publisher/index.php', array());
        $exportReport = $this->_client->get($urls);
        if (!\preg_match("/index.php?a=logout/", $exportReport[0], $matches)) {
            $connection = true;
        }
        return $connection;
    }