public function addTask($name, $params, $desc = 'No Description')
    {
        //====================================================================//
        // Create a new task
        $task = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
        //====================================================================//
        // Prepare Task Id
        $taskId = $this->tasks->count() + 1;
        //====================================================================//
        // Fill task with informations
        $task['id'] = $taskId;
        $task['name'] = $name;
        $task['desc'] = $desc;
        $task['params'] = $params;
        //====================================================================//
        // Add Task to Tasks list
        $this->tasks[$taskId] = $task;
        //====================================================================//
        // Debug
        Splash::log()->deb('TasksAdd', $task['name'], $task['desc']);

        return $this;
    }
public function addTask($name, $params, $desc = 'No Description')
    {
        //====================================================================//
        // Create a new task
        $task = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
        //====================================================================//
        // Prepare Task Id
        $taskId = $this->tasks->count() + 1;
        //====================================================================//
        // Fill task with informations
        $task['id'] = $taskId;
        $task['name'] = $name;
        $task['desc'] = $desc;
        $task['params'] = $params;
        //====================================================================//
        // Add Task to Tasks list
        $this->tasks[$taskId] = $task;
        //====================================================================//
        // Debug
        Splash::log()->deb('TasksAdd', $task['name'], $task['desc']);

        return $this;
    }
public function addTask ( $ name , $ params , $ desc = 'No Description' ) { //====================================================================// // Create a new task $ task = new ArrayObject ( array ( ) , ArrayObject :: ARRAY_AS_PROPS ) ; //====================================================================// // Prepare Task Id $ taskId = $ this -> tasks -> count ( ) + 1 ; //====================================================================// // Fill task with informations $ task [ 'id' ] = $ taskId ; $ task [ 'name' ] = $ name ; $ task [ 'desc' ] = $ desc ; $ task [ 'params' ] = $ params ; //====================================================================// // Add Task to Tasks list $ this -> tasks [ $ taskId ] = $ task ; //====================================================================// // Debug Splash :: log ( ) -> deb ( 'TasksAdd' , $ task [ 'name' ] , $ task [ 'desc' ] ) ; return $ this ; }
Add a new task for NuSOAP Call Request

@param string            $name   Task Identifier Name (Listed in OsWs.inc.php)
@param array|ArrayObject $params Task Parameters
@param string            $desc   Task Name/Description

@return $this
Add a new task for NuSOAP Call Request