You are here

class views_pdf_plugin_style_unformatted in Views PDF 6

Same name and namespace in other branches
  1. 7.3 views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted
  2. 7 views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted
  3. 7.2 plugins/views_pdf_plugin_style_unformatted.inc \views_pdf_plugin_style_unformatted

This class holds all the funtionality used for the unformatted style plugin.

Hierarchy

Expanded class hierarchy of views_pdf_plugin_style_unformatted

1 string reference to 'views_pdf_plugin_style_unformatted'
views_pdf_views_plugins in ./views_pdf.views.inc
Implementation of hook_views_plugins().

File

./views_pdf_plugin_style_unformatted.inc, line 13
Unformatted PDF style

View source
class views_pdf_plugin_style_unformatted extends views_plugin_style {

  /**
   * Rendering function
   */
  function render() {
    if ($this
      ->uses_row_plugin() && empty($this->row_plugin)) {
      vpr('views_plugin_style_default: Missing row plugin');
      return;
    }
    $output = '';
    $this->view->numberOfRecords = count($this->view->result);
    if ($this
      ->uses_row_plugin()) {
      $this->row_plugin
        ->render($this->view->result);
    }
    return $output;
  }

  /**
   * Attach this view to another display as a feed.
   *
   * Provide basic functionality for all export style views like attaching a
   * feed image link.
   */
  function attach_to($display_id, $path, $title) {
    $display = $this->view->display[$display_id]->handler;
    $url_options = array();
    $input = $this->view
      ->get_exposed_input();
    if ($input) {
      $url_options['query'] = $input;
    }
    $url = url($this->view
      ->get_url(NULL, $path), $url_options);
    if (empty($this->view->feed_icon)) {
      $this->view->feed_icon = '';
    }
    $this->view->feed_icon .= theme('views_pdf_icon', $url, $title);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
views_pdf_plugin_style_unformatted::attach_to function Attach this view to another display as a feed.
views_pdf_plugin_style_unformatted::render function Rendering function