private function addTasks($tasks = null)
    {
        //====================================================================//
        // No tasks to Add
        if (is_null($tasks) && empty($this->tasks)) {
            return true;
        }

        //====================================================================//
        // Prepare Tasks To Perform
        //====================================================================//

        //====================================================================//
        // Add Internal Tasks to buffer
        if (!empty($this->tasks)) {
            $this->outputs->tasks = $this->tasks;
            $this->outputs->taskscount = count($this->outputs->tasks);
            Splash::log()->deb('[WS] Call Loaded '.$this->outputs->tasks->count().' Internal tasks');
        } else {
            $this->outputs->tasks = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
        }

        //====================================================================//
        // Add External Tasks to the request
        if (!empty($tasks)) {
            $this->outputs->tasks->append($tasks);
            $this->outputs->taskscount = count($tasks);
            Splash::log()->deb('[WS] Call Loaded '.count($tasks).' External tasks');
        }

        return true;
    }
private function addTasks($tasks = null)
    {
        //====================================================================//
        // No tasks to Add
        if (is_null($tasks) && empty($this->tasks)) {
            return true;
        }

        //====================================================================//
        // Prepare Tasks To Perform
        //====================================================================//

        //====================================================================//
        // Add Internal Tasks to buffer
        if (!empty($this->tasks)) {
            $this->outputs->tasks = $this->tasks;
            $this->outputs->taskscount = count($this->outputs->tasks);
            Splash::log()->deb('[WS] Call Loaded '.$this->outputs->tasks->count().' Internal tasks');
        } else {
            $this->outputs->tasks = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
        }

        //====================================================================//
        // Add External Tasks to the request
        if (!empty($tasks)) {
            $this->outputs->tasks->append($tasks);
            $this->outputs->taskscount = count($tasks);
            Splash::log()->deb('[WS] Call Loaded '.count($tasks).' External tasks');
        }

        return true;
    }
private function addTasks ( $ tasks = null ) { //====================================================================// // No tasks to Add if ( is_null ( $ tasks ) && empty ( $ this -> tasks ) ) { return true ; } //====================================================================// // Prepare Tasks To Perform //====================================================================// //====================================================================// // Add Internal Tasks to buffer if ( ! empty ( $ this -> tasks ) ) { $ this -> outputs -> tasks = $ this -> tasks ; $ this -> outputs -> taskscount = count ( $ this -> outputs -> tasks ) ; Splash :: log ( ) -> deb ( '[WS] Call Loaded ' . $ this -> outputs -> tasks -> count ( ) . ' Internal tasks' ) ; } else { $ this -> outputs -> tasks = new ArrayObject ( array ( ) , ArrayObject :: ARRAY_AS_PROPS ) ; } //====================================================================// // Add External Tasks to the request if ( ! empty ( $ tasks ) ) { $ this -> outputs -> tasks -> append ( $ tasks ) ; $ this -> outputs -> taskscount = count ( $ tasks ) ; Splash :: log ( ) -> deb ( '[WS] Call Loaded ' . count ( $ tasks ) . ' External tasks' ) ; } return true ; }
Add Tasks to WebService Request

@param array $tasks List of task to perform inside this request.
If NULL, internal task list is used.

@return bool
Add Tasks to WebService Request