public function setup()
    {
        //====================================================================//
        // Read Parameters
        $this->id = Splash::configuration()->WsIdentifier;
        $this->key = Splash::configuration()->WsEncryptionKey;

        //====================================================================//
        // If Another Host is Defined => Allow Overide of Server Host Address
        if (!empty(Splash::configuration()->WsHost)) {
            $this->host = Splash::configuration()->WsHost;
        } else {
            $this->host = self::SPLASHHOST;
        }

        //====================================================================//
        // If Http Auth is Required => Setup User & Password
        if (isset(Splash::configuration()->HttpAuth) && !empty(Splash::configuration()->HttpAuth)) {
            $this->httpAuth = true;
        }
        if ($this->httpAuth && isset(Splash::configuration()->HttpUser)) {
            $this->httpUser = Splash::configuration()->HttpUser;
        }
        if ($this->httpAuth && isset(Splash::configuration()->HttpPassword)) {
            $this->httpPassword = Splash::configuration()->HttpPassword;
        }

        //====================================================================//
        // Safety Check
        if (!$this->verify()) {
            return false;
        }

        return Splash::log()->deb('MsgWsSetParams');
    }
public function setup()
    {
        //====================================================================//
        // Read Parameters
        $this->id = Splash::configuration()->WsIdentifier;
        $this->key = Splash::configuration()->WsEncryptionKey;

        //====================================================================//
        // If Another Host is Defined => Allow Overide of Server Host Address
        if (!empty(Splash::configuration()->WsHost)) {
            $this->host = Splash::configuration()->WsHost;
        } else {
            $this->host = self::SPLASHHOST;
        }

        //====================================================================//
        // If Http Auth is Required => Setup User & Password
        if (isset(Splash::configuration()->HttpAuth) && !empty(Splash::configuration()->HttpAuth)) {
            $this->httpAuth = true;
        }
        if ($this->httpAuth && isset(Splash::configuration()->HttpUser)) {
            $this->httpUser = Splash::configuration()->HttpUser;
        }
        if ($this->httpAuth && isset(Splash::configuration()->HttpPassword)) {
            $this->httpPassword = Splash::configuration()->HttpPassword;
        }

        //====================================================================//
        // Safety Check
        if (!$this->verify()) {
            return false;
        }

        return Splash::log()->deb('MsgWsSetParams');
    }
public function setup ( ) { //====================================================================// // Read Parameters $ this -> id = Splash :: configuration ( ) -> WsIdentifier ; $ this -> key = Splash :: configuration ( ) -> WsEncryptionKey ; //====================================================================// // If Another Host is Defined => Allow Overide of Server Host Address if ( ! empty ( Splash :: configuration ( ) -> WsHost ) ) { $ this -> host = Splash :: configuration ( ) -> WsHost ; } else { $ this -> host = self :: SPLASHHOST ; } //====================================================================// // If Http Auth is Required => Setup User & Password if ( isset ( Splash :: configuration ( ) -> HttpAuth ) && ! empty ( Splash :: configuration ( ) -> HttpAuth ) ) { $ this -> httpAuth = true ; } if ( $ this -> httpAuth && isset ( Splash :: configuration ( ) -> HttpUser ) ) { $ this -> httpUser = Splash :: configuration ( ) -> HttpUser ; } if ( $ this -> httpAuth && isset ( Splash :: configuration ( ) -> HttpPassword ) ) { $ this -> httpPassword = Splash :: configuration ( ) -> HttpPassword ; } //====================================================================// // Safety Check if ( ! $ this -> verify ( ) ) { return false ; } return Splash :: log ( ) -> deb ( 'MsgWsSetParams' ) ; }
Initialise Class with webservice parameters

@return bool
Initialise Class with webservice parameters