protected function getResult(array $job, array $result = array())
    {
        $result += array(
            'done' => 0,
            'errors' => 0,
            'progress' => 0,
            'finish' => false,
            'message' => $job['message']['process']
        );

        if (!empty($result['finish'])) {
            $this->setFinishData($result, $job);
        }

        $this->setSession($job);
        return $result;
    }
protected function getResult(array $job, array $result = array())
    {
        $result += array(
            'done' => 0,
            'errors' => 0,
            'progress' => 0,
            'finish' => false,
            'message' => $job['message']['process']
        );

        if (!empty($result['finish'])) {
            $this->setFinishData($result, $job);
        }

        $this->setSession($job);
        return $result;
    }
protected function getResult ( array $ job , array $ result = array ( ) ) { $ result += array ( 'done' => 0 , 'errors' => 0 , 'progress' => 0 , 'finish' => false , 'message' => $ job [ 'message' ] [ 'process' ] ) ; if ( ! empty ( $ result [ 'finish' ] ) ) { $ this -> setFinishData ( $ result , $ job ) ; } $ this -> setSession ( $ job ) ; return $ result ; }
Returns an array of data to be send to the user
@param array $job
@param array $result
@return array
Returns an array of data to be send to the user