Oara\Network\Publisher\WebHostingHub::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;
        $session = new \Gpf_Api_Session("http://ref.webhostinghub.com/scripts/server.php");
        if (!@$session->login($this->_credentials["user"], $this->_credentials["password"], \Gpf_Api_Session::AFFILIATE)) {
            $connection = false;
        }
        $this->_session = $session;
        return $connection;
    }