You are here

class custom_pagers_plugin_style_php_array in Custom Pagers 6

Same name and namespace in other branches
  1. 7 views/custom_pagers_plugin_style_php_array.inc \custom_pagers_plugin_style_php_array

@file Handler for 'custom_pagers_php_array' style.

Hierarchy

Expanded class hierarchy of custom_pagers_plugin_style_php_array

1 string reference to 'custom_pagers_plugin_style_php_array'
custom_pagers_views_plugins in views/custom_pagers.views.inc
Implementation of hook_views_plugins.

File

views/custom_pagers_plugin_style_php_array.inc, line 7
Handler for 'custom_pagers_php_array' style.

View source
class custom_pagers_plugin_style_php_array extends views_plugin_style {
  function render() {
    $results = array();

    // Group the rows according to the grouping field, if specified.
    $sets = $this
      ->render_grouping($this->view->result, $this->options['grouping']);
    $base_field = $this->view->base_field;
    foreach ($sets as $title => $records) {
      foreach ($records as $label => $row) {
        $results[] = $row->{$base_field};
      }
    }
    return $results;
  }

}

Members