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

checkConnection() public method

public checkConnection ( ) : boolean
return boolean
    public function checkConnection()
    {
        //If not login properly the construct launch an exception
        $connection = false;
        $urls = array();
        $urls[] = new \Oara\Curl\Request('https://partnerprogramma.bol.com/partner/index.do?', array());
        $exportReport = $this->_client->get($urls);
        if (\preg_match('/partner\\/logout\\.do/', $exportReport[0], $match)) {
            $connection = true;
        }
        return $connection;
    }