You are here

views_php_plugin_query.inc in Views PHP 7

File

plugins/views/views_php_plugin_query.inc
View source
<?php

/**
 * A (fake) pager plugin that wraps around the actual query.
 *
 * @ingroup views_query_plugins
 */
class views_php_plugin_query extends views_php_plugin_wrapper {

  /**
   * Implements views_plugin_query#execute().
   */
  public function execute(&$view) {
    $pager = new views_php_plugin_pager();
    $pager
      ->php_wrap($this->wrapped->pager);
    $this->wrapped
      ->execute($view);
    $pager
      ->php_unwrap();
  }

}

Classes

Namesort descending Description
views_php_plugin_query A (fake) pager plugin that wraps around the actual query.