public function simulate($service, $tasks = null, $isUncrypted = false, $clean = true)
    {
        //====================================================================//
        // WebService Call =>> Initialisation
        if (!$this->init($service)) {
            return false;
        }
        //====================================================================//
        // WebService Call =>> Add Tasks
        if (!$this->addTasks($tasks)) {
            return false;
        }
        //====================================================================//
        //   Execute Action From Splash Server to Module
        $response = SplashServer::$service(
            Splash::configuration()->WsIdentifier,
            $this->pack($this->outputs, $isUncrypted)
        );
        //====================================================================//
        // If required, lean _Out buffer parameters before exit
        if ($clean) {
            $this->cleanOut();
        }

        return $response;
    }
public function simulate($service, $tasks = null, $isUncrypted = false, $clean = true)
    {
        //====================================================================//
        // WebService Call =>> Initialisation
        if (!$this->init($service)) {
            return false;
        }
        //====================================================================//
        // WebService Call =>> Add Tasks
        if (!$this->addTasks($tasks)) {
            return false;
        }
        //====================================================================//
        //   Execute Action From Splash Server to Module
        $response = SplashServer::$service(
            Splash::configuration()->WsIdentifier,
            $this->pack($this->outputs, $isUncrypted)
        );
        //====================================================================//
        // If required, lean _Out buffer parameters before exit
        if ($clean) {
            $this->cleanOut();
        }

        return $response;
    }
public function simulate ( $ service , $ tasks = null , $ isUncrypted = false , $ clean = true ) { //====================================================================// // WebService Call =>> Initialisation if ( ! $ this -> init ( $ service ) ) { return false ; } //====================================================================// // WebService Call =>> Add Tasks if ( ! $ this -> addTasks ( $ tasks ) ) { return false ; } //====================================================================// //   Execute Action From Splash Server to Module $ response = SplashServer :: $ service ( Splash :: configuration ( ) -> WsIdentifier , $ this -> pack ( $ this -> outputs , $ isUncrypted ) ) ; //====================================================================// // If required, lean _Out buffer parameters before exit if ( $ clean ) { $ this -> cleanOut ( ) ; } return $ response ; }
Simulate operation on Local WebService Client

@param string $service     server method to use
@param array  $tasks       List of task to perform inside this request.
If NULL, internal task list is used.
@param bool   $isUncrypted Force message not to be crypted (Used for Ping Only)
@param bool   $clean       Clean task buffer at the end of this function

@return false|string
Simulate operation on Local WebService Client