protected function process_data(&$signal) { parent::process_data($signal); if ($this->core->browser->xfer($this->uri, $this->params, $this->files, $this->mustbeposted)) { $data = $this->xferred_data($signal); $type = $this->content_type($signal); $result = $this->set_fetched_element($signal, $data, $type); } else { $result = !$this->stop_on_fail; } $extra_params = array('uri' => $uri, 'params' => $params, 'files' => $files, 'mustbeposted' => $mustbeposted); if (isset($this->content_type)) { $extra_params['content_type'] = $this->content_type; } $this->set_jobdata($result, $extra_params, $exclude_params); return $result; }
protected function process_data(&$signal) { if (!parent::process_data($signal)) { return false; } $title = $signal->data_title($this->default_data_key); if (is_null($title)) { return false; } $filename = $this->core->info->title_filename($title); $file = $this->read_file_from_wfstorage($filename, $this->wfstorages); if ($file === false) { return false; } $result = $this->set_fetched_element($signal, $file, "object/file"); $this->set_jobdata($result, array('filename' => $filename)); return $result; }