public function call($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;
        }
        //====================================================================//
        // Prepare Raw Request Data
        //====================================================================//
        $this->rawOut = array(
            'id' => $this->id,
            'data' => $this->pack($this->outputs, $isUncrypted), );
        //====================================================================//
        // Prepare Webservice Client
        //====================================================================//
        if (false === $this->buildClient()) {
            return false;
        }
        //====================================================================//
        // Call Execution
        $this->rawIn = Splash::com()->call($this->outputs->service, $this->rawOut);
        //====================================================================//
        // Analyze & Decode Response
        //====================================================================//
        if (!$this->decodeResponse($isUncrypted)) {
            return false;
        }
        //====================================================================//
        // If required, lean _Out buffer parameters before exit
        if ($clean) {
            $this->cleanOut();
        }

        return $this->inputs;
    }
public function call($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;
        }
        //====================================================================//
        // Prepare Raw Request Data
        //====================================================================//
        $this->rawOut = array(
            'id' => $this->id,
            'data' => $this->pack($this->outputs, $isUncrypted), );
        //====================================================================//
        // Prepare Webservice Client
        //====================================================================//
        if (false === $this->buildClient()) {
            return false;
        }
        //====================================================================//
        // Call Execution
        $this->rawIn = Splash::com()->call($this->outputs->service, $this->rawOut);
        //====================================================================//
        // Analyze & Decode Response
        //====================================================================//
        if (!$this->decodeResponse($isUncrypted)) {
            return false;
        }
        //====================================================================//
        // If required, lean _Out buffer parameters before exit
        if ($clean) {
            $this->cleanOut();
        }

        return $this->inputs;
    }
public function call ( $ 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 ; } //====================================================================// // Prepare Raw Request Data //====================================================================// $ this -> rawOut = array ( 'id' => $ this -> id , 'data' => $ this -> pack ( $ this -> outputs , $ isUncrypted ) , ) ; //====================================================================// // Prepare Webservice Client //====================================================================// if ( false === $ this -> buildClient ( ) ) { return false ; } //====================================================================// // Call Execution $ this -> rawIn = Splash :: com ( ) -> call ( $ this -> outputs -> service , $ this -> rawOut ) ; //====================================================================// // Analyze & Decode Response //====================================================================// if ( ! $ this -> decodeResponse ( $ isUncrypted ) ) { return false ; } //====================================================================// // If required, lean _Out buffer parameters before exit if ( $ clean ) { $ this -> cleanOut ( ) ; } return $ this -> inputs ; }
Perform operation with 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 ArrayObject|false
Perform operation with WebService Client