Oara\Network\Publisher\Chegg::checkConnection PHP Метод

checkConnection() публичный Метод

public checkConnection ( ) : boolean
Результат boolean
    public function checkConnection()
    {
        //If not login properly the construct launch an exception
        $connection = false;
        $urls = array();
        $urls[] = new \Oara\Curl\Request('http://cheggaffiliateprogram.com/Home.aspx?', array());
        $exportReport = $this->_client->get($urls);
        if (\preg_match('/Welcome\\/Logout\\.aspx/', $exportReport[0])) {
            $connection = true;
        }
        return $connection;
    }